stedolan/ppx_stage

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

objmagic opened this issue · 2 comments

or use utop-full. See ocaml-community/utop#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.

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.)

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