You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "yurloc (via GitHub)" <gi...@apache.org> on 2024/02/21 08:01:07 UTC

[I] [new-parser] Parser errors do not have line numbers [incubator-kie-drools]

yurloc opened a new issue, #5719:
URL: https://github.com/apache/incubator-kie-drools/issues/5719

   ## Parent issue
   - #5678 
   
   ## 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).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [new-parser] Parser errors do not have line numbers [incubator-kie-drools]

Posted by "yurloc (via GitHub)" <gi...@apache.org>.
yurloc commented on issue #5719:
URL: https://github.com/apache/incubator-kie-drools/issues/5719#issuecomment-2017859509

   `/take`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [new-parser] Parser errors do not have line numbers [incubator-kie-drools]

Posted by "yurloc (via GitHub)" <gi...@apache.org>.
yurloc closed issue #5719: [new-parser] Parser errors do not have line numbers
URL: https://github.com/apache/incubator-kie-drools/issues/5719


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org