Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new-parser] Parser errors do not have line numbers #5719

Closed
yurloc opened this issue Feb 21, 2024 · 1 comment
Closed

[new-parser] Parser errors do not have line numbers #5719

yurloc opened this issue Feb 21, 2024 · 1 comment

Comments

@yurloc
Copy link
Contributor

yurloc commented Feb 21, 2024

Parent issue

Failing tests

  • org.drools.model.codegen.execmodel.CompilationFailuresTest#testMaxIntegerResultOnDoublePatternShouldntCompile

Notes

  • Both STANDARD_FROM_DRL and PATTERN_DSL.

Rule code snippet

$max : Double() from accumulate ( $num : Integer(); max($num) )

Error output

### parse : ANTLR4_PARSER_ENABLED = true
21:45:12.129 [main] ERROR o.d.c.k.b.impl.AbstractKieProject.buildKnowledgePackages:280 - Unable to build KieBaseModel:defaultKieBase
InvalidExpressionErrorResult: Pattern of type: '[ClassObjectType class=java.lang.Double]' on rule 'X' is not compatible with type java.lang.Integer returned by accumulate function.

The parser fails correctly, but the error message's line property is unset (-1).

@yurloc
Copy link
Contributor Author

yurloc commented Mar 25, 2024

/take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant