Skip to content

Testing code lenses don't show for remote sessions to a directory symlink. #7443

@yphillip

Description

@yphillip

Environment 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):
image

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)
image

Steps to reproduce:

  1. Install pytest.
  2. Write a test
  3. Choose the WSL Conda python interpreter
  4. Code adornments not available.
    vs.
  5. Disconnect from WSL
  6. Choose the Windows Conda python interpreter
  7. Code adornments become available

Logs

Output for Python in the Output panel (ViewOutput, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-testingbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions