Move to new window hangs xed for up to 10 minutes when underlying file has changed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start by tracing how Xed handles external file changes and moves a tab between windows; the issue does not name a source file or test. Reproduce the sequence with a file modified externally before moving its tab, then check that the move does not hang and that Xed reports the changed contents so they can be reloaded without overwriting them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
xed - Version 3.8.9 on x86-64 Linux Mint 22.3 Zena
The problem replicates consistently on my system:
- Open a file with xed (e.g. a file on a NAS server)
- Modify the file (e.g. externally via another NAS client)
- Move the tab to another window before the message appears to reload the file
result: Xed hangs for up to 10 minutes.
Fortunately, if you are patient and click many times on "wait" instead of "terminate", xed ultimately recovers with the desired outcome: the tab has moved to a new window and no work has been lost. In my case, the file captures the output of failed background kernel compilations, part of git workflows, so very unpredicatable.
EDIT: forgot to mention that the new window contains the original, non-modified version of the file and won't display a message that the file has changed anymore. There seems no way to reload the modified contents (no refresh/reload button). The only indication you get is a message warning you to overwrite the file when using the "save" function. Never a message to reload the file, even when the file is modified a second time. Hitting "save" a second time, gives no more message and destroys the file.
It is quite annoying because one has generally no idea that the file been has modified and unless you understand what is happening and have the patience, the expected reaction is to terminate the editor and start all over which can cause both "lots and loss" of work.
Happy to look into the code and file a PR, but need some help to figure out where to start cause I have never looked at Xed source code.
- Ngôn ngữ chính
- C
- Star
- 558
- Fork
- 117
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của linuxmint/xed
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Allow pkexec xedĐang mởFEATURE REQUEST
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 47/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
xed 3.8.9 hangs at startup when GTK4 is installed: Python plugins load Gtk-4.0 typelib into a GTK3 processCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Tất cả issue của linuxmint/xed
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
polhenarejos/pico-fido#302 ·
-
开发板墙缺少 ESP32_S31_MOSAICOĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
espressif/esp-vision#16 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
libsdl-org/SDL#16577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
halt_error adds a trailing newline for non-string input, contrary to the manualCó thể đã có người làm @Huang-404-Q đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày