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

Only use ocaml-env if it is available #978

Merged
merged 1 commit into from
Nov 14, 2022
Merged

Conversation

mnxn
Copy link
Collaborator

@mnxn mnxn commented Jul 1, 2022

Resolves #977

This PR allows the extension to automatically use the Diskuv OCaml Windows executables from the PATH when ocaml-env does not exist.

@jonahbeckford
Copy link
Contributor

Sigh. The code looks good, but I haven't been able to build the code on my Windows machine. Last time I tried successfully was a year ago; the CI for Windows is also broken.

Anyways, LGTM. Thanks!

@mnxn
Copy link
Collaborator Author

mnxn commented Jul 2, 2022

I don't have Diskuv OCaml installed on my Windows computer, but when I removed ocaml-env from my PATH, the extension correctly tried to use opam.exe directly. There shouldn't be any problems if the extension already works when ocaml.useOcamlEnv is false.

I've attached a .vsix package of the extension (inside a .zip) with these changes if you'd like to try them in your environment: test_extension.zip

You can install it through these steps: https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix

Copy link
Contributor

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

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

LGTM. Changes need to be updated.

@mnxn mnxn merged commit e783896 into ocamllabs:master Nov 14, 2022
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.

Supporting Windows (Diskuv OCaml) distribution
3 participants