Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


#148 ErrorList overview doesn't work with symlinks

Alan Ezust
Patrick Eibl

This affects the currently released and trunk versions of ErrorList. To reproduce, with Console/ErrorList installed on linux:
Make sure underline errors option is checked for ErrorList (makes bug more obvious)
Create a file with some text, and a symlink (can be done from jEdit console):
echo hello > ~/myFile
ln -s ~/myFile ~/mySymlink

Trigger an ErrorList error on mySymlink:
echo ~/mySymlink:1:errorMessage

The error appears in ErrorList, but there is no overview or underline if mySymlink is opened as a buffer.

This happens because symlinks are resolved on the buffer path, but not on the ErrorList path, so there will be a mismatch if they are both the same symlink. A solution is this patch, which does resolve symlinks on ErrorList paths. A side effect is that the ErrorList will not show the symlink path that appeared in the original error (it will show the resolved path instead). If there was a desire to fix that as well, then the errors hash would have to be accessed exclusively with symlink-resolved paths, while maintaining the original symlink path as part of the DefaultError state.

Index: errorlist/

--- errorlist/ (revision 22222)
+++ errorlist/ (working copy)
@@ -410,7 +410,7 @@
public void setFilePath(String newPath)
- path = newPath;
+ path = MiscUtilities.resolveSymlinks(newPath);
name = MiscUtilities.getFileName(path);
}// }}}


  • Alan Ezust
    Alan Ezust

    Committed 22506.

  • Alan Ezust
    Alan Ezust

    • assigned_to: nobody --> ezust
    • status: open --> closed-accepted