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

Look up and propagate ReScript version #867

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

zth
Copy link
Collaborator

@zth zth commented Dec 15, 2023

So we can default uncurried by default properly.

Ideally this would be done entirely in the analysis bin, but given that I don't want to mess with the logic of finding and executing the ReScript binary, I think it's fine that it's propagated through an env variable for now, given that the logic lives in the LS server itself (so vim and other LS users won't have to have their own logic).

Closes #863

@zth zth requested a review from cristianoc December 15, 2023 10:11
Copy link
Collaborator

@cristianoc cristianoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why an env variable is used. Seems similar to other project config info which I think goes into some config state.

@zth
Copy link
Collaborator Author

zth commented Dec 15, 2023

Curious why an env variable is used. Seems similar to other project config info which I think goes into some config state.

I added some justification in the original description. But I'm not terribly happy with it.

@zth zth merged commit 04ff9aa into master Dec 15, 2023
5 checks passed
@zth zth deleted the lookup-rescript-version-uncurried-by-default branch December 15, 2023 10:49
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

Successfully merging this pull request may close these issues.

Uncurried needs to default to true for ReScript 11
3 participants