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

Code compiles but references a non-existent .gen file #5906

Open
jmagaram opened this issue Dec 14, 2022 · 2 comments
Open

Code compiles but references a non-existent .gen file #5906

jmagaram opened this issue Dec 14, 2022 · 2 comments

Comments

@jmagaram
Copy link
Contributor

I've written code that compiles without errors but one of the .bs.js files references a non-existent .gen. So I think there must be a bug in the compiler or GenType. See this very simple repo with just 4 .res files. I tried testing this with the pre-release compiler but couldn't figure out how to install it.

https://github.com/jmagaram/uniqueid

This is reproducible on latest macOS with rescript ^10.0.1 and gentype ^4.5.0.

@cristianoc
Copy link
Collaborator

Gentype has no support for functors. The issue does not seems specific to import. I guess there would be issues also with exporting elements.

As a possible workaround, one can also try to encapsulate ids without using functors.

@cristianoc
Copy link
Collaborator

In general, supporting the module language would be non-trivial. Elements can be added, included, modified, constrained etc. It's unclear how that should behave with gentype annotations.

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