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

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.(SerializedATN.java:22)

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

at org.antlr.v4.codegen.model.Lexer.(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.

can you run first

$ mvn clean install -DskipTests

Hi Slim,

Works like a charm.

Thanks.

2017년 9월 18일 월요일 오후 11시 45분 4초 UTC+9, Slim Bouguerra 님의 말: