-
Notifications
You must be signed in to change notification settings - Fork 56
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-editor-analysis.exe format breaks code #931
Comments
This looks like you are using an older (globally installed?) version of the formatter. I don't have this behavior. |
Seems like it should not be possible to use a globally installed formatter: rescript-vscode/server/src/utils.ts Lines 91 to 92 in 51b6c46
It shouldn't look outside of the project root for the rescript-vscode/server/src/server.ts Lines 775 to 776 in 51b6c46
|
I've manually run the commands that the extension runs:
So for some reason, in my setup (which is unconventional due to NixOS), |
Not 100 % sure, but I heard the parser itself still defaults to curried output. Also, did you try one of these?
|
When I compile this code with rescript v11.0.1, it works fine.
npx rescript format -all
does not change it:When I use the
Format document
action in VSCode with thev1.38.0
version of the extension, it is changed to this:This does not compile:
The text was updated successfully, but these errors were encountered: