camunda / feel-scala

FEEL parser and interpreter written in Scala
https://camunda.github.io/feel-scala/
Apache License 2.0
120 stars 49 forks source link

FEEL REPL is broken since version 1.17.0 #723

Closed saig0 closed 3 months ago

saig0 commented 10 months ago

Describe the bug The FEEL REPL is broken since version 1.17.0. I can't evaluate expressions anymore.

Screenshot from 2023-09-20 13-45-11

The evaluation reports the following failure message:

java.lang.NoSuchMethodError: 'fastparse.internal.Msgs fastparse.ParsingRun.aggregateMsgs()'
  org.camunda.feel.impl.parser.FeelParser$.fullExpression(FeelParser.scala:134)
  org.camunda.feel.impl.parser.FeelParser$.$anonfun$parseExpression$2(FeelParser.scala:127)
  fastparse.package$.parseInputRaw(package.scala:69)
  fastparse.package$.$anonfun$parse$1(package.scala:35)
  fastparse.ParserInputSource$fromParserInput.parseThrough(ParserInput.scala:25)
  fastparse.package$.parse(package.scala:35)
  org.camunda.feel.impl.parser.FeelParser$.parseExpression(FeelParser.scala:127)
  org.camunda.feel.FeelEngine.$anonfun$parseExpression$1(FeelEngine.scala:286)
  org.camunda.feel.FeelEngine.$anonfun$parse$1(FeelEngine.scala:135)
  scala.util.Try$.apply(Try.scala:210)
  org.camunda.feel.FeelEngine.parse(FeelEngine.scala:135)
  org.camunda.feel.FeelEngine.parseExpression(FeelEngine.scala:286)
  org.camunda.feel.FeelEngine.evalExpression(FeelEngine.scala:221)
  org.camunda.feel.FeelEngine.evalExpression(FeelEngine.scala:213)
  ammonite.predef.FilePredef$.feel(feel-repl.sc:18)
  ammonite.$sess.cmd0$.<clinit>(cmd0.sc:1)

To Reproduce Steps to reproduce the behavior:

  1. Run the following command on main branch:
    amm --predef feel-repl.sc
  2. Type feel("1 + 3") to evaluate an expression
  3. Verify that a failure message is printed

Expected behavior The expression is evaluated successfully.

Environment

saig0 commented 3 months ago

This issue is related to the Ammonite version. It's working again by using the latest Ammonite version (3.0.0-M1). :rocket: