Skip to content

Support for WSL2 #83

@ThomasVitale

Description

@ThomasVitale

Thanks so much for building this extension. I use it on macOS and it's extremely useful!

I'm trying to get it to work on WSL2, but I'm running into some issues. On Linux or macOS, I would use a Nix package to define VSCode+Extensions. However, that doesn't work on WSL2, where the supported way of running VSCode is by installing it on Windows (and it's then available from WSL2 from code .).

Since I can't use the Nix package for it, I tried to use this extension to activate a Flox environment. However, after clicking the button "Activate Environment", the workspace is closed but never restarted.

The steps I follow:

  1. [WSL2] Go into a directory where a Flox environment is defined
  2. [WSL2] Run flox activate
  3. [WSL2] Run code .
  4. [Windows] VSCode is opened automatically on top of the WSL2 file system. However, the session is not running inside the Flox environment even if it was launched from an activated Flox environment.

At that point I try to use the Flox VSCode extension to "Activate Environment", which doesn't work (though, I can activate the environment from a terminal window inside VSCode using the flox CLI, but that would only work from within that shell and not for VSCode).

Metadata

Metadata

Assignees

No one assigned

    Labels

    team-developer-supportIssues to be picked up by @flox/team-developer-support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions