-
Notifications
You must be signed in to change notification settings - Fork 463
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
rescript build -w
non-terminating rebuild
#5303
Comments
This is due to that the build system noticed Demo.gen.ts changed (the generated file). CC @cristianoc , besides gen.ts, what other files are generated by gentype |
rescript build -w
循环问题rescript build -w
non-terminating rebuild
@bobzhang Not sure if this is what you asked though. Hopefully it is. |
The default is |
I made a PR that modifies the CLI script can fix this by checking |
According to the code, the issue has been fixed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
在使用 build 的 watch 模式时,如果 .res 文件中有 unused variable,compiler 会陷入无限循环的场景。
Reproduction Repo
https://github.com/ninesunsabiu/rescript-proj-tpl
Steps to reproduce
如果没有直接触发的话,再一次保存 Demo.res 就可以触发。
有怀疑是 gentype 的问题,因为一加上就会报错。
Snapshot
截图上面的操作就是在 watch 模式下,有
@genType
和 没有@genTyp
的控制台输出区别Environment
Thank you for filing! Check list:
The text was updated successfully, but these errors were encountered: