All Questions
Tagged with windows-subsystem-for-linux visual-studio-code
612
questions
1
vote
0
answers
52
views
VSCode on wsl2 cant find gcc/g++
I try to run a .c with vscode on a wsl environment. I have both gcc and g++ installed. I verified that on a vscode terminal as explained in the guide. Í also have all the necessary extensions ...
0
votes
0
answers
19
views
Missing PATH variable on WSL 2 relaunch in VS Code (Ubuntu)
To be more precise, I am facing an issue with PDM. The error is: "Command 'pdm' not found...".
When I run WSL directly from the Windows Start menu, the issue does not occur. I am able to run ...
-1
votes
0
answers
32
views
How is the translation of WSL path to Windows achieved when calling "code ." in a WSL2 instance?
I was looking into Zed as a potential replacement for VSC, one of the key points of annoyance I've found is that even when calling "zed.exe ." inside of a WSL instance: showing WSL directory ...
1
vote
0
answers
94
views
Can not connect VSCode to WSL2 running Ubuntu-22.04
I am setting up a test environment to try the MOJO language in my Windows 11 Pro laptop (V 10.0.22631 Build 22631). Since MOJO doesn't have a Windows SDK available (yet), I installed WSL2 using ...
0
votes
0
answers
18
views
Visual Studio Terminal Error When Connected to Ubuntu 22.04 WSL
I use WSL for development. When I start Visual Studio Code and connect it to an Ubuntu 22.04 WSL instance, I always get this error when launching VS's Terminal:
xargs: unmatched double quote; by ...
0
votes
0
answers
20
views
Saving changes to .scss and .js project files doesn't trigger Parcel's HMR [duplicate]
I'm running a simple test project to learn bundling with Parcel.
OS: Windows 11
Environment: WSL2
Text editor: VS Code
Browser: Google Chrome
This is the file structure I'm running with:
/mnt/d/dev/...
0
votes
0
answers
42
views
WSL2 VSCode setup with Python SDK pointing to docker container
I am trying to set up a new dev environment using WSL, VSCode and docker. I have fixed connectivity issues(company always on VPN). I am able to run both docker compose(fetching images) and docker ...
1
vote
1
answer
58
views
VS Code can't find Python interpreter in WSL after latest update
Following the latest VS Code update I have had some problems with finding my Python interpreter. VS Code seems to be looking in my C drive for my Python install, instead of inside of WSL (Ubuntu).
I ...
0
votes
1
answer
36
views
Command Prompt/ Powershell loads miniconda environments. WSL loads anaconda3 environemts
When I run conda env list on Powershell, I get the following list of environments in miniconda3:
# conda environments:
#
base C:\Users\name\miniconda3
quant C:\...
0
votes
1
answer
75
views
WSL2 vscode black extension isn't formatting on save
I'm having some trouble getting the vscode black extension to work in vscode. I'm using python 3.10.12, ubuntu 22.04.3, vscode 1.90.1
Here's my user settings json (edited 6/26 to reflect answer ...
2
votes
1
answer
105
views
VS Code won't start in WSL due to missing files
Earlier today, I had opened a window in VS Code in WSL. A few hours later, I tried again, but it crashed. At first I figured it was because the first window was still open, and while it did seem odd ...
0
votes
0
answers
61
views
How to set up Scala(Metals) with WSL
I'm trying to use VSCode as an IDE to develop Scala applications in an environment with WSL.
I installed Scala(Metals), but it doesn't work and has no VSCode intellisense feature.
error details
When I ...
0
votes
0
answers
25
views
Task to formate an ipynb notebook using the black command-line tool
I am using vscode on windows and wsl (Ubuntu-22.04).
I am trying to define a task to formate an ipynb file using the black command-line tool (not the vscode extension), to workaround my issue https://...
1
vote
1
answer
363
views
VS Code remote to WSL /bin/code-server: not found
I have recently moved my WSL installation to another drive for disk space sake by using this guide: medium.
After it, when I try to open a remote window on VS Code I get the error:
/mnt/c/Users/User/....
0
votes
0
answers
109
views
VS Code WSL stuck on "Opening Remote..."
I recently started having this issue, that after I open up a (specific) repository for the second time, vs code gets stuck in loading mode, and the status bar shows "Opening Remote..." ...