epi-project / brane

Programmable Orchestration of Applications and Networking
Apache License 2.0
9 stars 7 forks source link

REPL not properly retaining state in between statements #28

Open Lut99 opened 1 year ago

Lut99 commented 1 year ago

Currently, the BraneScript REPL is very bad at remembering compilation state in between statements.

As a quick example, this works when provided in one go:

let test := null;
test := 42;

But when providing these statements separately in the REPL, you will see compile errors.

Fixing this issue properly would require changing the compilation to be much more aware that the REPL exists. This will be some work.

Lut99 commented 2 weeks ago

This has improved over time, but still occurs sometimes. Please mention in this issue any occurrences of this problem.