You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a codegenerator tool that outputs rescript files unformatted. It then runs rescript format -all without running rescript build which happens right at the end.
On his machine (M2 macbook), it seems to happen reliably when there are roughly > 65 .res files or so.
What we've found is that some user's shell environments will completely freeze. Even if you exit the the process, you can no longer run any other npx commands. (Even from a new shell).
Rescript versions tested:
10.1.4, 11.0.1 and 11.1.0-rc.4
Environment:
So far we've only seen this reproduce with 2 users on M1 and M2 apple silicon macbooks.
Steps to reproduce:
clone the repo
install node modules
run rescript format -all WITHOUT building
There is a shell script in the repo for generating more files if need be for testing.
If you build the code before running rescript format -all everything works as expected.
The text was updated successfully, but these errors were encountered:
This should be easy to solve by doing it in batches instead.
However, the question is this shouldn't rather go into rewatch. /cc @jfrolich@rolandpeelen
Happy to patch this if the script will still be used but I assume rewatch will handle it?
How does the issue come about?
We have a codegenerator tool that outputs rescript files unformatted. It then runs
rescript format -all
without runningrescript build
which happens right at the end.We have been able to reproduce it reliably on one of our devs machines using a simple test repo:
https://github.com/enviodev/rescript-format-too-many-files
On his machine (M2 macbook), it seems to happen reliably when there are roughly > 65 .res files or so.
What we've found is that some user's shell environments will completely freeze. Even if you exit the the process, you can no longer run any other npx commands. (Even from a new shell).
Rescript versions tested:
10.1.4, 11.0.1 and 11.1.0-rc.4
Environment:
So far we've only seen this reproduce with 2 users on M1 and M2 apple silicon macbooks.
Steps to reproduce:
rescript format -all
WITHOUT buildingThere is a shell script in the repo for generating more files if need be for testing.
If you build the code before running
rescript format -all
everything works as expected.The text was updated successfully, but these errors were encountered: