eclipse-archived/ceylon-ide-intellij

IntelliJ Ceylon parser lacks consistency

loldrup opened this issue · 7 comments

The IntelliJ Ceylon parser gives different output for same content at different times.

If you look at this screenshot you see an error in the build log:
ceylon error 2017-06-16 13 59 00

But in this screenshot the build commences successfully:
ceylon no error 2017-06-16 13 59 11

However, the only thing I did in between the two screenshots was to click the green 'run' triangle once again.

So the Ceylon parser lacks consistency.

The first screenshot shows errors from the previous build. You fixed the error, clicked the 'run' icon which triggered a new build and started the program. The Messages window shows build errors, not errors related to the current editor. I don't think there is any issue her.

Oh wait no actually the editor is not showing errors because of #639.

Line 14 is not valid, it should be variable String responseString; (annotations must appear before the type).

I guess it must be an incremental build issue:

  • modify a file to introduce an issue
  • incremental build sees a change and reports the error
  • run the build again, no change was made so the incremental build is skipped
  • an old version of your code is run (the last version that compiled successfully)