Cannot import io.druid.math.expr.antlr.*

321 views
Skip to first unread message

Jason Heo

unread,
Sep 18, 2017, 7:14:57 AM9/18/17
to Druid User
Hello,

I'm trying to build Druid from source code.

I'm using Intellij CE on Mac.

But I'm facing an antlr issue like this:



I thought this would be occurred because there was only antlr grammar, So I ran `antlr4 -Dlanguage=Java Expr.g4`, But I got a following error.


$ antlr4 -Dlanguage=Java Expr.g4

warning(156): Expr.g4:20:53: invalid escape sequence

warning(156): Expr.g4:25:23: invalid escape sequence

warning(156): Expr.g4:26:21: invalid escape sequence

Exception in thread "main" java.lang.RuntimeException: set is empty

at org.antlr.v4.runtime.misc.IntervalSet.getMaxElement(IntervalSet.java:421)

at org.antlr.v4.runtime.atn.ATNSerializer.serialize(ATNSerializer.java:169)

at org.antlr.v4.runtime.atn.ATNSerializer.getSerialized(ATNSerializer.java:601)

at org.antlr.v4.codegen.model.SerializedATN.<init>(SerializedATN.java:22)

at org.antlr.v4.codegen.model.Recognizer.<init>(Recognizer.java:64)

at org.antlr.v4.codegen.model.Lexer.<init>(Lexer.java:27)

at org.antlr.v4.codegen.OutputModelController.lexer(OutputModelController.java:151)

at org.antlr.v4.codegen.OutputModelController.buildLexerOutputModel(OutputModelController.java:104)

at org.antlr.v4.codegen.CodeGenerator.generateLexer(CodeGenerator.java:119)

at org.antlr.v4.codegen.CodeGenPipeline.process(CodeGenPipeline.java:54)

at org.antlr.v4.Tool.processNonCombinedGrammar(Tool.java:404)

at org.antlr.v4.Tool.process(Tool.java:354)

at org.antlr.v4.Tool.processGrammarsOnCommandLine(Tool.java:321)

at org.antlr.v4.Tool.main(Tool.java:168)


How can I resolve this problem?


Regards,


Jason.


Slim Bouguerra

unread,
Sep 18, 2017, 10:45:04 AM9/18/17
to druid...@googlegroups.com
can you run  first
$ mvn clean install -DskipTests
-- 

B-Slim
_______/\/\/\_______/\/\/\_______/\/\/\_______/\/\/\_______/\/\/\_______

--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/c7698a0e-984b-4365-a850-b45fc187809b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Heo

unread,
Sep 19, 2017, 12:45:24 AM9/19/17
to Druid User
Hi Slim,

Works like a charm.

Thanks.

2017년 9월 18일 월요일 오후 11시 45분 4초 UTC+9, Slim Bouguerra 님의 말:
Reply all
Reply to author
Forward
0 new messages