I have Scala files with the same file name in multiple projects. If my program crashes and stack trace is printed, clicking the link to the source file opens wrong file. It seems that it opens the file from the first project where it finds a file with matching name. The package names are also same but a quick debugging session showed that this also happens if I rename the package.
After closing the other projects, the link opens the correct file.
After closing the other projects, the link opens the correct file.
Leave a comment
on 2014-12-02 00:37 *
By teemu.sirkia
Summary changed from Stack Trace Link Opens Incorrect File to Stack trace link opens wrong file
on 2014-12-06 03:05 *
By Simon Schäfer
The implementation seems to look only for a class that exists with this same but forgets to also look if it is on the classpath.
on 2014-12-15 10:20 *
By Simon Schäfer
This also fails in the Scala editor when one wants to jump to a class definition whose name exists multiple times in the same classpath. The hyperlink doesn't even consider the correct imports.
on 2014-12-15 10:22 *
By Simon Schäfer
Summary changed from Stack trace link opens wrong file to Hyperlinking opens one of multiple existing class definitions if they have the same name
on 2014-12-16 02:14 *
By Iulian Dragos
Can you please provide a self-contained example? It would be good to have two tickets here: one for stack trace hyperlinking, and another one for source file hyperlinks. They take different code paths.
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|