Skip to content

wsl: allow to run with a non-default user #286

@LuisOsta

Description

@LuisOsta

Issue Type: Bug

As part of my WSL instance, I had to create a user to properly setup nvm for configuring nodejs and npm. I could properly create the user and access it via the provided terminal in remote VS Code but can't open files with 'code-insiders .' or through other means.

I used this tutorial: Developing in the Windows Subsystem For Linux with VS Code to set up the remote development.

Note: by default the VS Code Insiders file explorer shows the root (WSL) folder

Expected

'code-insiders .'
Should open the given directory in the vs code insiders explorer when logged in as a non-root user(w/ sudo privileges)

Actual

'code-insiders .'
code-insiders: command not found

This issue only happens when you're logged in as a given user. It works as expected when you're a root user.

Extension version: 0.34.0
VS Code version: Code - Insiders 1.34.20-insider (57b550c559b945eb9d871dbf2b2e4cb9e31e2551, 2019-05-10T17:36:45.765Z)
OS version: Windows_NT x64 10.0.17134
Remote OS version: Linux x64 4.4.0-17134-Microsoft

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 x 3696)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.91GB (22.40GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote WSL
OS Linux x64 4.4.0-17134-Microsoft
CPUs Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 x 3696)
Memory (System) 31.91GB (22.40GB free)
VM 0%

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityplan-reviewPM-highlighted item determined to be P1 or P2wslIssue in vscode-remote WSL

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions