jsoo-react icon indicating copy to clipboard operation
jsoo-react copied to clipboard

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

Open glennsl opened this issue 3 years ago • 5 comments

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.

glennsl avatar Feb 22 '22 15:02 glennsl

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?

jchavarri avatar Feb 22 '22 22:02 jchavarri

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 avatar Feb 23 '22 08:02 glennsl

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 avatar Feb 23 '22 18:02 glennsl

Steps to reproduce:

git clone [email protected]:glennsl/jsoo-react-no-cmx-file-repro
cd jsoo-react-no-cmx-file-repro
make create-switch
make init
make build

glennsl avatar Feb 23 '22 19:02 glennsl

Seems to be a dune bug. Created an issue for it at https://github.com/ocaml/dune/issues/5486

glennsl avatar Feb 24 '22 21:02 glennsl