ppx_stage icon indicating copy to clipboard operation
ppx_stage copied to clipboard

utop user needs to manually load `compiler-libs/ocamlcommon.cma`

Open objmagic opened this issue 8 years ago • 2 comments

or use utop-full. See https://github.com/diml/utop/issues/213.

Since README already says to use "standard OCaml toplevel", so I'll just open an issue here for people who try to use utop and see the same error as me.

objmagic avatar Nov 06 '17 18:11 objmagic

Is this issue why I can't try your examples as-is in utop?

# #require "ppx_stage.ppx";;
Error: Reference to undefined global `Ast_helper'

I even tried loading compiler-libs and I still get the same error.

(Thanks for writing this processor! I was hoping MetaOCaml would be released for 4.06, but this seems to be a much better way to add it to the language.)

rneswold avatar Dec 29 '17 18:12 rneswold

Nevermind. I didn't know utop-full was part of the build for utop and the full version loads it fine.

rneswold avatar Dec 29 '17 18:12 rneswold