enso icon indicating copy to clipboard operation
enso copied to clipboard

Stack trace when Enso script finishes with a Panic is upside down

Open radeusgd opened this issue 9 months ago • 1 comments

Try running the following example file:

from Standard.Base import all

a = b
b = c
c = Panic.throw "foo"

main = a

Actual behaviour

Execution finished with an error: foo
        at <enso> stack-test.main(stack-test.enso:7:8-8)
        at <enso> stack-test.a(stack-test.enso:3:5-5)
        at <enso> stack-test.b(stack-test.enso:4:5-5)
        at <enso> stack-test.c(stack-test.enso:5:5-21)
        at <enso> Panic.throw(Internal)

Expected behaviour

The panic-throw location should be at the top of the trace, the order should be reversed.

Execution finished with an error: foo
        at <enso> Panic.throw(Internal)
        at <enso> stack-test.c(stack-test.enso:5:5-21)
        at <enso> stack-test.b(stack-test.enso:4:5-5)
        at <enso> stack-test.a(stack-test.enso:3:5-5)
        at <enso> stack-test.main(stack-test.enso:7:8-8)

radeusgd avatar May 13 '24 15:05 radeusgd

Probably result of my rewrite to Java - #9810

JaroslavTulach avatar May 14 '24 08:05 JaroslavTulach

Jaroslav Tulach reports a new STANDUP for yesterday (2024-05-14):

Progress: - planning meeting

  • reporting: https://github.com/enso-org/enso/issues/9941
  • travel to Kraków
  • #9934 fixed by https://github.com/enso-org/enso/pull/9954
  • NI & Espresso without JS and Python: https://github.com/enso-org/enso/pull/9866/commits/1933c77b66dabdf970938776206469dcafe9c1a1
  • working on GeeCON presentation & demo with Pavel It should be finished by 2024-05-17.

enso-bot[bot] avatar May 15 '24 03:05 enso-bot[bot]

Jaroslav Tulach reports a new STANDUP for yesterday (2024-05-15):

Progress: - merged stacktrace: https://github.com/enso-org/enso/pull/9954

  • Standard.Base by NI is green: https://github.com/enso-org/enso/pull/9866#issuecomment-2112450583
  • snakeyaml review fixes: https://github.com/snakeyaml/snakeyaml/pull/12#discussion_r1601845060
  • discussing TreeToIr and IrToTruffle with Pavel It should be finished by 2024-05-17.

enso-bot[bot] avatar May 16 '24 04:05 enso-bot[bot]