eclipse-archived / ceylon-ide-eclipse

Eclipse Plugin for Ceylon
http://ceylon-lang.org/documentation/ide
Eclipse Public License 1.0
59 stars 29 forks source link

Errors in code can cause the IDE to crash #1895

Open fwgreen opened 6 years ago

fwgreen commented 6 years ago

This only happens in the Ceylon IDE and not JDT, but Ceylon isn't mentioned in the error message. I also haven't experienced this on macOS.

eclipse screenshot

The error message...

An error has occurred. See error log for more details.
Bad type on operand stack
Exception Details:
  Location:
    org/eclipse/gef/dot/internal/ui/language/highlighting/antlr/lexer/CustomHighlightingInternalDotLexer.<init>()V @21: invokespecial
  Reason:
    Type 'org/eclipse/gef/dot/internal/ui/language/highlighting/antlr/lexer/CustomHighlightingInternalDotLexer' (current frame, stack[4]) is not assignable to 'org/antlr/runtime/BaseRecognizer'
  Current Frame:
    bci: @21
    flags: { }
    locals: { 'org/eclipse/gef/dot/internal/ui/language/highlighting/antlr/lexer/CustomHighlightingInternalDotLexer' }
    stack: { 'org/eclipse/gef/dot/internal/ui/language/highlighting/antlr/lexer/CustomHighlightingInternalDotLexer', uninitialized 15, uninitialized 15, 'org/eclipse/gef/dot/internal/ui/language/highlighting/antlr/lexer/CustomHighlightingInternalDotLexer', 'org/eclipse/gef/dot/internal/ui/language/highlighting/antlr/lexer/CustomHighlightingInternalDotLexer' }
  Bytecode:
    0x0000000: 2ab7 0221 2a03 b501 df2a 03b5 01de 2abb
    0x0000010: 017f 592a 2ab7 0220 b501 f32a bb01 7e59
    0x0000020: 2a2a b702 1eb5 01f2 b1                 

Eclipse 4.7.3a, Java 1.8u162, Windows 10

fwgreen commented 6 years ago

Similar problem on Linux. I just noticed that in both cases these were Maven projects. This doesn't seem to happen with regular Ceylon projects.

screenshot from 2018-05-11 16-51-50 Eclipse 4.7.3a, Java 1.8u162, Ubuntu 18.04