Report a WARNING when the package declaration doesn't match the physical location of a source file
It's a known limitation that the package declaration in a source file should match its physical location, or the presentation compiler will eventually get confused.
Currently, several tickets exist which relate to this problem one way or another. The least we should do is reporting a WARNING in the Problem View for each source file that has the above described problem.
We may also want to do something similar for binaries with attached sources.
This was discussed in the scala-ide-ML here: http://groups.google.com/group/scala-ide-dev/browse_thread/thread/11efa5af81fe4a69
Currently, several tickets exist which relate to this problem one way or another. The least we should do is reporting a WARNING in the Problem View for each source file that has the above described problem.
We may also want to do something similar for binaries with attached sources.
This was discussed in the scala-ide-ML here: http://groups.google.com/group/scala-ide-dev/browse_thread/thread/11efa5af81fe4a69
Leave a comment
on 2013-01-08 09:53 *
By Iulian Dragos
Idea: run the check in the Indexer.
on 2013-05-17 20:12 *
By Mirco Dotta
Version changed from 2.1.0-nightly-29 to 3.0.0-210
Assigned to set to Mirco Dotta
on 2013-05-17 20:12 *
By Mirco Dotta
Let's see if I can make this work...
Ticket assignment reverted due to inactivity.
on 2015-03-27 15:34 *
By Simon Schäfer
Version changed from 3.0.0-210 to 4.0.0
Milestone changed from Helium SR1 to Lithium