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

no-cmx-file warnings generated for jsoo-react modules #149

Open
glennsl opened this issue Feb 22, 2022 · 5 comments
Open

no-cmx-file warnings generated for jsoo-react modules #149

glennsl opened this issue Feb 22, 2022 · 5 comments

Comments

@glennsl
Copy link
Contributor

glennsl commented Feb 22, 2022

I'm now getting these warnings when building a project based on the minimal template:

Warning 58 [no-cmx-file]: no cmx file was found in path for module React__Dom_html, and its interface was not compiled with -opaque
Warning 58 [no-cmx-file]: no cmx file was found in path for module React__Dom_svg, and its interface was not compiled with -opaque
Warning 58 [no-cmx-file]: no cmx file was found in path for module React, and its interface was not compiled with -opaque

I've updated to the latest master and created some child projects, amongst other things, but otherwise don't do anything sophisticated and have added no other OCaml dependencies. Any idea what this could be about? If nothing obvious comes to mind I can try to create a minimal repro for it.

@jchavarri
Copy link
Collaborator

I tried building the template as it was, and also updated it to latest commit and I can't reproduce. 😕

Is the issue happening when running make build on the template?

@glennsl
Copy link
Contributor Author

glennsl commented Feb 23, 2022

Thanks for trying! Yeah it happens on make build, or make watch. My guess is that it has something to do with using sub projects then. I'll try to make a repro later today.

@glennsl
Copy link
Contributor Author

glennsl commented Feb 23, 2022

Repro here: https://github.com/glennsl/jsoo-react-no-cmx-file-repro. Apparently creating a very basic nested library somehow causes this warning to be emitted,

@glennsl
Copy link
Contributor Author

glennsl commented Feb 23, 2022

Steps to reproduce:

git clone git@github.com:glennsl/jsoo-react-no-cmx-file-repro
cd jsoo-react-no-cmx-file-repro
make create-switch
make init
make build

@glennsl
Copy link
Contributor Author

glennsl commented Feb 24, 2022

Seems to be a dune bug. Created an issue for it at ocaml/dune#5486

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