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

syntax error loading ppx_deriving.std in rtop #739

Open
ghost opened this issue Sep 4, 2016 · 4 comments
Open

syntax error loading ppx_deriving.std in rtop #739

ghost opened this issue Sep 4, 2016 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Sep 4, 2016

Is there a way to get ppx_deriving to work in rtop? When I try to load ppx_deriving.std I just get a syntax error:

Reason # #require "ppx_deriving.std";
Error: Syntax error
Reason #
@jordwalke
Copy link
Member

What's interesting is that the following does not cause a syntax error:

 #require "ppx_deriving.asdf";

I wonder if ppx_deriving.std is the code throwing the syntax error? Does everything compile with ppx_deriving.std when not used in the top level?

@ghost
Copy link
Author

ghost commented Sep 5, 2016

Yeah, it seems to work okay if you just do #require "ppx_deriving"; too.

I wonder if ppx_deriving.std is the code throwing the syntax error? Does everything compile with ppx_deriving.std when not used in the top level?

Yeah it works fine if I just compile to a binary and run that way.

@ghost
Copy link
Author

ghost commented Sep 5, 2016

I should clarify that #require "ppx_deriving"; doesn't throw an error, but in fact #require "ppx_deriving.std"; is necessary to load the library I need since it contains the drivers.

Another thing is that if I compile using reason syntax with rebuild but load utop instead everything works okay. So it's definitely something about the interaction between ppx_deriving and rtop.

@jordwalke
Copy link
Member

I see, okay thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants