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

recompute env dict on every command #1322

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

EduardoRFS
Copy link
Contributor

@EduardoRFS EduardoRFS commented Jan 4, 2024

Context

Extensions may mutate the process.env this is especially true for https://github.com/direnv/direnv-vscode which will reset every property.

But currently the process.env is copied once during the load of the extension, making so that OCaml Platform and direnv are incompatible or need to be hacked around.

failure while loading OCaml LSP

@smorimoto
Copy link
Collaborator

@EduardoRFS Could you add a change log entry for this?

@smorimoto smorimoto added the type: bug Something isn't working label Jan 5, 2024
@EduardoRFS
Copy link
Contributor Author

@smorimoto done boss, this patch really helps the life of Nix users

@smorimoto smorimoto merged commit 69df56f into ocamllabs:master Jan 5, 2024
7 checks passed
@EduardoRFS EduardoRFS deleted the direnv-fix branch January 5, 2024 16:43
@smorimoto smorimoto mentioned this pull request Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants