Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Move to new window hangs xed for up to 10 minutes when underlying file has changed

Aperta
#765 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

xed - Version 3.8.9 on x86-64 Linux Mint 22.3 Zena

The problem replicates consistently on my system:

  1. Open a file with xed (e.g. a file on a NAS server)
  2. Modify the file (e.g. externally via another NAS client)
  3. 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.

Lingua principale
C
Stelle
558
Fork
117
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di linuxmint/xed

Tutte le issue di linuxmint/xed

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.