pact
pact copied to clipboard
load with reset works in REPL but not in REPL files
The load function with the reset parameter works as intended when run in repl directly, but fails to find files if run in a repl file. This could be because it resets repl state?
Minimal Example:
fileANoReset.repl
(load "./fileB.repl")
fileAReset.repl
(load "./fileB.repl" true)
fileB.repl
(+ 1 1)
pact> (load "./fileANoReset.repl")
"Loading ./fileANoReset.repl..."
"Loading ./fileB.repl..."
2
pact> (load "./fileAReset.repl")
"Loading ./fileAReset.repl..."
"Loading ./fileB.repl..."
load: file load failed: ./fileB.repl, ./fileB.repl: openBinaryFile: does not exist (No such file or directory)
Thanks Arjun, i'll look into this