ceylon-ide-intellij icon indicating copy to clipboard operation
ceylon-ide-intellij copied to clipboard

categorize Ceylon Problems by module

Open gavinking opened this issue 9 years ago • 5 comments

We should add an additional level of categorization.

gavinking avatar Jun 11 '16 14:06 gavinking

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.

gavinking avatar Jun 12 '16 14:06 gavinking

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 avatar Jun 12 '16 14:06 bjansen

@bjansen, you don't need to do that. Let me have a look.

davidfestal avatar Jun 13 '16 07:06 davidfestal

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 avatar Jun 13 '16 08:06 davidfestal

@davidfestal it's probably not worth wasting time on this for 1.2.3.

gavinking avatar Jun 13 '16 18:06 gavinking