ocaml / oloop

Evaluate code through the OCaml toploop for inclusion in educational material.
ISC License
12 stars 5 forks source link

setting working_dir causes oloop to hang #31

Closed agarwal closed 9 years ago

agarwal commented 9 years ago

I pushed 2b1f4956e75b605a49f55786fe2a71e5ff64d413, but the feature doesn't work. Setting working_dir causes oloop to hang.

Chris00 commented 9 years ago

Did you try with oloop being installed or with the local executable. In any case, I cannot reproduce this bug — it either runs (with oloop) or fails (with ./app.native).

Maybe you launched oloop in the devel. dir., in which cases it picks up .ocamlinit? What happens if you pass the additional option -noinit?

Chris00 commented 9 years ago

I think I got it. The check whether toploop exists is done before changing directory (thus succeeds) but the relative executable is not found after the directory change.