Testing code lenses don't show for remote sessions to a directory symlink.
See original GitHub issueEnvironment data
- VS Code version: 1.38.1
- Extension version: 2019.9.34911
- OS and version: WSL (Windows 10.0.18362 Build 18362)
- Python version: Conda 3.7.4
- Type of virtual environment used: Conda
- Relevant/affected Python packages and their versions: pytest-5.0.1
Expected behaviour
I am using python in a conda environment in WSL. I configured VS Code to use the correct WSL python interpreter, and I expected that the code adornments would be available.
Actual behaviour
VSCode discovers the test and it can be run , but there is no visible adornment.
WSL (no code adornments):
Interestingly, I installed conda/python on Windows, and when I switch over to that interpreter in VS Code, the code adornments are available.
Windows (code adornments available)
Steps to reproduce:
- Install pytest.
- Write a test
- Choose the WSL Conda python interpreter
- Code adornments not available. vs.
- Disconnect from WSL
- Choose the Windows Conda python interpreter
- Code adornments become available
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
> ~/miniconda3/envs/APT/bin/python ~/.vscode-server/extensions/ms-python.python-2019.9.34911/pythonFiles/testing_tools/run_adapter.py discover pytest -- -s .
cwd: ~/PhillipYen/Desktop/project1
> conda info --json
> ~/miniconda3/envs/APT/bin/python ~/.vscode-server/extensions/ms-python.python-2019.9.34911/pythonFiles/testing_tools/run_adapter.py discover pytest -- -s --cache-clear .
cwd: ~/PhillipYen/Desktop/project1
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
User and Workspace Settings - Visual Studio Code
User settings - Apply globally to all VS Code instances. Remote settings - Apply to a remote machine opened by a user. Workspace...
Read more >Understanding and Exploiting Symbolic links in Windows
One noticeable problem in exploiting these conditions is following: The program first create the directory/file and then try to write/delete it ...
Read more >How to get the fully resolved path of a symbolic link in ...
This prints the absolute path to the file with all symbolic links resolved (i.e. it's equivalent to GNU readlink -f , not to...
Read more >How do you get PHP, Symlinks and __FILE__ to work ...
Where symlink is a symbolic link to /trunk/.../plugins/ . Basically, this is because I need to test multiple WordPress installs and set them...
Read more >Wyze cam website
8MM 110-degree wide angle lens for recording clear video in 1920x1080p ... One of the most important items revolves around how you check...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi Don,
To be more explicit, I do the following:
I also have the Remote - WSL v0.39.5 Extension installed.
Is what you mean when you say open VSCode inside WSL?
Thanks, Phil
On Tue, Sep 17, 2019 at 12:35 PM Don Jayamanne notifications@github.com wrote:
In our upcoming test provider we won’t have codelenses, but there will be gutter icons which do work under e.g. WSL.