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


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(

at org.antlr.v4.runtime.atn.ATNSerializer.serialize(

at org.antlr.v4.runtime.atn.ATNSerializer.getSerialized(

at org.antlr.v4.codegen.model.SerializedATN.(

at org.antlr.v4.codegen.model.Recognizer.(

at org.antlr.v4.codegen.model.Lexer.(

at org.antlr.v4.codegen.OutputModelController.lexer(

at org.antlr.v4.codegen.OutputModelController.buildLexerOutputModel(

at org.antlr.v4.codegen.CodeGenerator.generateLexer(

at org.antlr.v4.codegen.CodeGenPipeline.process(

at org.antlr.v4.Tool.processNonCombinedGrammar(

at org.antlr.v4.Tool.process(

at org.antlr.v4.Tool.processGrammarsOnCommandLine(

at org.antlr.v4.Tool.main(

How can I resolve this problem?



can you run first

$ mvn clean install -DskipTests

Hi Slim,

Works like a charm.


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