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

F# client: couldn't create connection to server. when the system env DOTNET_ROOT is not set #1996

Open
sasasqt opened this issue Mar 19, 2024 · 0 comments

Comments

@sasasqt
Copy link

sasasqt commented Mar 19, 2024

Describe the bug

F# client: couldn't create connection to server. when the env DOTNET_ROOT is not set

Steps to reproduce

install dotnet using micromamba/conda in the virtual environment
or
remove DOTNET_ROOT from the system env if installed directly from microsoft.

Link to sample reproduction

Expected behaviour

use fsharp.dotnetroot to set the env DOTNET_ROOT

Screenshots

image

Machine info

  • OS: Windows
  • .NET SDK version: 8.0.100 [~.mamba\envs\fsharp\dotnet\sdk]
  • Ionide version: 7.18.2

Additional context

the dotnet(sdk,rt, etc) instance is installed and managed via micromamba/conda. micromamba/conda does not pollute the system envs and kept different versions of the dotnet separated in different virtual envs & folders, which is what I prefer. The issue now is that the env DOTNET_ROOT is only automatically set when the virtual env is activated and remains unset otherwise.
I can not find any ways to set the env for one specific extension in vscode.
My temporal fix: add one line of code to the fsharp.js
image

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

No branches or pull requests

1 participant