ceylon-ide-intellij
ceylon-ide-intellij copied to clipboard
categorize Ceylon Problems by module
We should add an additional level of categorization.
I can't do this until @davidfestal or @bjansen can suggest to me a way to get the Module associated with a SourceFileMessage. I do have an IntelliJ VirtualFile, but I don't know what to do with it.
You should modify SourceFileMessage and SourceFileWarning to also hold the projectPhasedUnit (see retrieveErrors() in CeylonProjectBuild.ceylon). With the PU you have access to the package and the Ceylon module.
@bjansen, you don't need to do that. Let me have a look.
I think we should simply have the SourceFileMessage classes reference the FileVirtualFile instead of the NativeFile. This gives a direct access to all needed information. I'll try to do it today.
@davidfestal it's probably not worth wasting time on this for 1.2.3.