-
Notifications
You must be signed in to change notification settings - Fork 40
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
The examples do not work outside of the bonsai project #41
Comments
I will make a reference to #24 here but that issue is over a year old and, I think, somewhat unrelated to current problems. |
Hello! Does changing them to intead use My current understanding of how I am not fully confident this fixes the build for your case (I'd still need to reproduce this locally), but please let us know/follow up if it does/doesn't. [1] https://github.com/janestreet/bonsai/blob/master/ppx_bonsai/src/dune |
Thanks for the tip. I made those changes and some others and got the hello world example to work in my project. Notice I had to add |
As I think that your question has been answered, I will be closing this issue. Please feel free to re-open it if you have anything follow up question/want to re-open discussion. Thanks! |
I think it would be good to have clear examples that compile and work. That problem isn't solved and there isn't a ticket for it. @Enoumy |
The examples build if you're building them out of this repository. They do not work if you copy them into your own project. This is because they have different names that you can use to reference them in dune, and you just kinda need to know this. I agree it's not great, but it's not clear what changes should be made on our end. |
Here's the simplest example:
./examples/hello_world
to your own project.You'll end up with errors like the following:

The text was updated successfully, but these errors were encountered: