Skip to content

Exception catching is broken in JIT mode #759

@yfinkelstein

Description

@yfinkelstein
try: 
	raise RuntimeError("exception is thrown")

except Exception as e:
	print(f"caught exception {e=}")


codon run excepton_test.codon

RuntimeError: exception is thrown

Raised from: 
.../exception_test.codon:2:2

Backtrace:
Aborted

However, if built first then it works:

codon build excepton_test.codon
./excepton_test.codon

caught exception e=exception is thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions