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:
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.
--- errorlist/DefaultErrorSource.java (revision 22222)
+++ errorlist/DefaultErrorSource.java (working copy)
@@ -410,7 +410,7 @@
public void setFilePath(String newPath)
- path = newPath;
+ path = MiscUtilities.resolveSymlinks(newPath);
name = MiscUtilities.getFileName(path);