This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271145 - NullPointerException at org.antlr.works.editor.grammar.experimental.CurrentRuleContextParserTask.parse
Summary: NullPointerException at org.antlr.works.editor.grammar.experimental.CurrentRu...
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-23 17:44 UTC by mklaehn
Modified: 2017-09-19 10:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212709


Attachments
stacktrace (1.15 KB, text/plain)
2017-07-23 17:44 UTC, mklaehn
Details
stacktrace (1.15 KB, text/plain)
2017-09-19 10:26 UTC, erlangga95
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mklaehn 2017-07-23 17:44:08 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.141-b15, Java(TM) SE Runtime Environment, 1.8.0_141-b15
OS: Mac OS X

User Comments:
mklaehn: editing a grammar. the editor marks several lines as error notations ("error(100): line:column: syntax error: antlr: NoViableAltException(69@[])"

this happens for example at the following rule:
globalStatement
    :
        KEYWORD_GLOBAL
        (
            IDENTIFIER
            CHAR_COMMA?
        )+?
    ;
with the question mark underlined

here:
// newline
NL
    :
        (
            '\r'?
            '\n'
        )-> channel(HIDDEN)
    ;

with channel(HIDDEN) underlined

or at the following rule:
// white space to be ignored
WS
    :
        (
            ' '
        |
            '\t'
        ) -> skip
    ;
with skip underlined

GUEST: when creating new rules or moving to rules per navigator

GUEST: Opening a antlr3 grammar file

GUEST: -

GUEST: error

GUEST: Anytime I Open the grammar file, this exception occurs.




Stacktrace: 
java.lang.NullPointerException
   at org.antlr.works.editor.grammar.experimental.CurrentRuleContextParserTask.parse(CurrentRuleContextParserTask.java:83)
   at org.antlr.netbeans.parsing.spi.impl.ParserTaskManagerImpl$UpdateDataCallable.callImpl(ParserTaskManagerImpl.java:662)
   at org.antlr.netbeans.parsing.spi.impl.ParserTaskManagerImpl$UpdateDataCallable.callImpl(ParserTaskManagerImpl.java:618)
   at org.antlr.netbeans.parsing.spi.impl.ParserTaskManagerImpl$UpdateCallable.call(ParserTaskManagerImpl.java:607)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
Comment 1 mklaehn 2017-07-23 17:44:11 UTC
Created attachment 164814 [details]
stacktrace
Comment 2 erlangga95 2017-09-19 10:26:33 UTC
Created attachment 165146 [details]
stacktrace

Error on ANTLR  Plugin