#3746 IO Tasks from opening (large) files not cancellable


Currently, when jEdit is given a large file to open (either during runtime or on startup, e.g. when the perspective.xml file specifies a large file), it may take a very long time, during which jEdit is not responsive. jEdit should catch this (like firefox realizing that a slow script is running) and ask what to do - cancel the loading of the file, or maybe other things.
The criteria of file size is not good enough. Two files with the same size can take a very different time for loading.


  • Alan Ezust

    Alan Ezust - 2013-04-05

    why special processing? If it just opened every file in a background task and showed it in the task monitor, so you could cancel it, and only added the buffer to the buffersets and allowed the user to see it after it is finished loading, that would be even better, no?

  • Alan Ezust

    Alan Ezust - 2013-04-23
    • summary: Support for special processing of slow operations --> Cancel opening of (large) file from task monitor
  • Alan Ezust

    Alan Ezust - 2013-04-23
    • summary: Cancel opening of (large) file from task monitor --> IO Tasks from opening (large) files not cancellable
    • labels: 871558 -->
  • Alan Ezust

    Alan Ezust - 2013-04-23

    Tried to use the cancel button in the task monitor, does not work for this kind of io task.
    Moving to bugs.

  • Thomas Meyer

    Thomas Meyer - 2013-04-23


    the problem is that temporary buffers are loaded on the EDT and so are not cancelable. The code in org.gjt.sp.jedit.io.VFS.load(View, Buffer, String) and org.gjt.sp.jedit.Buffer.load(View, boolean) checks for a temporary buffer and runs them on the EDT. when in startup mode all files are opened temporary and are later on "commited" to full buffers.

    When jEdit is already running, all IO tasks are scheduled as background tasks.

    The code in VFS.load says that Hypersearch is faster with this special handling:

    // this makes HyperSearch much faster

    It would be easy to change this to always schedule IO tasks in the background. Somebody should test the impact on Hypersearch...


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks