pact icon indicating copy to clipboard operation
pact copied to clipboard

load with reset works in REPL but not in REPL files

Open arjunbaokar opened this issue 6 years ago • 1 comments

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)

arjunbaokar avatar Nov 07 '19 18:11 arjunbaokar

Thanks Arjun, i'll look into this

emilypi avatar Nov 07 '19 20:11 emilypi