Re: conflict with inmemantlr-api
Peter Cheung <[email protected]> Sat, 12 Aug 2017 22:05:11 +0000
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <ME1PR01MB0260E9472D05CB564836279EB58E0@ME1PR01MB0260.ausprd01.prod.outlook.com> |
Not working, because i am using maven. ________________________________ From: Enrico Scantamburlo <[email protected]> Sent: Monday, July 31, 2017 10:59 PM To: [email protected] Subject: [platform-dev] Re: conflict with inmemantlr-api Try to add antlr 4.7 as a library inside the module: Properties/Libraries/Add New Library... Il 31/lug/2017 05:22, "Peter Cheung" <[email protected]<mailto:[email protected]>> ha scritto: Dear All I want to use inmemantlr-api (https://github.com/julianthome/inmemantlr). It needs antlr 4.7 runtime so org-netbeans-libs-antlr4-runtime can’t help, because it is antlr 4.5.3. If i just add antlr4-runtime:3.7 without adding org-netbeans-libs-antlr4-runtime, i got these error: ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7org.snt.inmemantlr.exceptions.CompilationErrorException: ---------- 1. ERROR in /CalculatorLexer.java (at line 2) import org.antlr.v4.runtime.Lexer; ^^^^^^^^^ The import org.antlr cannot be resolved ---------- 2. ERROR in /CalculatorLexer.java (at line 3) import org.antlr.v4.runtime.CharStream; ^^^^^^^^^ The import org.antlr cannot be resolved ---------- 3. ERROR in /CalculatorLexer.java (at line 4) import org.antlr.v4.runtime.Token; ^^^^^^^^^ The import org.antlr cannot be resolved ————— If I don’t add BOTH org-netbeans-libs-antlr4-runtime but not antlr4-runtime:3.7, i got: org.snt.inmemantlr.exceptions.CompilationErrorException: ---------- 1. ERROR in /CalculatorLexer.java (at line 2) import org.antlr.v4.runtime.Lexer; ^^^^^^^^^ The import org.antlr cannot be resolved ---------- 2. ERROR in /CalculatorLexer.java (at line 3) import org.antlr.v4.runtime.CharStream; ^^^^^^^^^ The import org.antlr cannot be resolved ---------- 3. ERROR in /CalculatorLexer.java (at line 4) import org.antlr.v4.runtime.Token; ^^^^^^^^^ The import org.antlr cannot be resolved Please help thanks Peter