Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camlp4 + toplevel = hang #48

Closed
xiey8 opened this issue Sep 10, 2014 · 2 comments
Closed

camlp4 + toplevel = hang #48

xiey8 opened this issue Sep 10, 2014 · 2 comments

Comments

@xiey8
Copy link

xiey8 commented Sep 10, 2014

I ran into the following problem after upgrading to 4.02. As soon as I load the
camlp4o.cma in the toplevel, it doesn't seem to want to parse statements as
they're typed in anymore -- ";;" has no effect and I had to type several ^D in a
row to get the statement parsed.

4.01 is fine. Utop is fine. It's only been a problem for me under plain
toplevel since 4.02.

Thanks!

Steps to Reproduce:

        OCaml version 4.02.1+dev0-2014-08-29

# #load "dynlink.cma";;
# #load "camlp4o.cma";;
        Camlp4 Parsing version 4.02.1+dev0-2014-08-29

#1;;
  3;;




^D
^D
^D
^D
^D
^D
^D
- : int = 1
@rand00
Copy link

rand00 commented Sep 26, 2014

I have the same issue where the toplevel hangs after loading camlp4 - I load camlp4 with topfind in utop.

My .ocamlinit that produces the freeze:

let () =
  try Topdirs.dir_directory (Sys.getenv "OCAML_TOPLEVEL_PATH")
  with Not_found -> ()
;;
#use "topfind" ;;
#camlp4o ;;

I have also tried to #require "camlp4";; etc before calling #camlp4o, and using ocaml instead of utop.

ghost pushed a commit that referenced this issue Oct 21, 2014
@ghost
Copy link

ghost commented Oct 21, 2014

This should be fixed. I'll do a release soon.

@ghost ghost closed this as completed Oct 21, 2014
ghost pushed a commit that referenced this issue Oct 23, 2014
damiendoligez pushed a commit to damiendoligez/camlp4 that referenced this issue May 26, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants