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

[I] [new-parser] ReteOOWaltzTest 'end' detection issue [incubator-kie-drools]

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

   ## Parent issue
   - #5678 
   
   ## Failing tests
   - `org.drools.compiler.integrationtests..waltz.ReteOOWaltzTest`
   
   ## Rule code snippet
   ```
   //If the duplicate flag is set, and there is still a line in WM, delete the line
   //and add two edges. One edge runs from p1 to p2 and the other runs from p2 to
   //p1.  We then plot the edge.
   rule "reverse edges"
       when
           Stage(value == Stage.DUPLICATE)
           $line : Line ( $p1:p1, $p2:p2 )
       then
           //sysout.println("Draw "+$p1+" "+$p2);
           insert( new Edge ( $p1, $p2, false, Edge.NIL, false ) );
           insert( new Edge ( $p2, $p1, false, Edge.NIL, false ) );
           delete( $line );
   end
   
   //If the duplicating flag is set, and there are no more lines, then remove the
   //duplicating flag and set the make junctions flag.
   rule "reversing done" salience -10
       when
   ...
   ```
   
   ## Error output
   ```
   17:42:10.148 [Time-limited test] ERROR o.d.c.k.b.impl.AbstractKieProject.buildKnowledgePackages:280 - Unable to build KieBaseModel:KieBaseModelName
   Unable to resolve type end:
   Unable to find class 'end' : [Rule name='reverse edges']
   
   Rule Compilation error : [Rule name='reverse edges']
   	end cannot be resolved to a type
   	Syntax error on token ""reversing done"", = expected
   	salience cannot be resolved to a variable
   	Syntax error on token "when", ; expected
   	value cannot be resolved to a variable
   	Syntax error, insert ";" to complete Statement
   	The method Line() is undefined for the type Rule_reverse_edges719376997
   	Syntax error on token "then", ; expected
   	$stage cannot be resolved to a variable
   	The method setValue(int) is undefined for the type Object
   ```
   


-- 
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] ReteOOWaltzTest 'end' detection issue [incubator-kie-drools]

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

   `/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] ReteOOWaltzTest 'end' detection issue [incubator-kie-drools]

Posted by "tkobayas (via GitHub)" <gi...@apache.org>.
tkobayas closed issue #5908: [new-parser] ReteOOWaltzTest 'end' detection issue
URL: https://github.com/apache/incubator-kie-drools/issues/5908


-- 
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] ReteOOWaltzTest 'end' detection issue [incubator-kie-drools]

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

   Fixed by https://github.com/apache/incubator-kie-drools/pull/5913


-- 
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