Skip to content

Can't open the original file for coverage view #24943

@AdrianCert

Description

@AdrianCert

Type: Bug

Behaviour

When I run coverage I can see the origianal file. I received a miss file windows. My assumption is that the mapping is not do correctly.
I runned over test with coverage of this repo https://github.com/pypa/virtualenv

Steps to reproduce:

  1. clone https://github.com/pypa/virtualenv
  2. install all deps needed
uv sync --all-group --all-extras
uv pip install pytest-cov # this is need to the feature to work (not provided by the repo deps)
  1. Configure as pytest with test directory and run test with coverage
  2. On the Test Coverage window any file listen will not be accesible

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Extension version: 2025.2.0
VS Code version: Code 1.98.2 (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)
OS version: Windows_NT x64 10.0.26100
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.2
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions
Extension Name Extension Id Version
apc-extension drc 0.4.1
better-cpp-syntax jef 1.27.1
c-cpp-compile-run dan 1.0.60
cmake twx 0.0.17
cmake-tools ms- 1.20.53
code-runner for 0.12.2
code-spell-checker str 4.0.40
copilot Git 1.293.0
copilot-chat Git 0.25.1
cpp-extentions-pack bou 0.3.0
cpptools ms- 1.23.6
cpptools-extension-pack ms- 1.3.1
cpptools-themes ms- 2.0.0
debugpy ms- 2025.4.1
dependi fil 0.7.13
errorlens use 3.24.0
even-better-toml tam 0.21.2
fastcompare Dav 1.2.1
git-graph mhu 1.30.0
gitlens eam 16.3.3
hexeditor ms- 1.11.1
ide-vscode daf 3.4.4
intellicode-api-usage-examples Vis 0.2.9
jinja who 0.0.8
jinjahtml sam 0.20.0
js-debug ms- 1.97.1
js-debug-companion ms- 1.1.3
jupyter ms- 2025.2.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.1.0
language-plantuml qho 0.0.3
latex-workshop Jam 10.9.0
lean4 lea 0.0.201
MagicPython mag 1.1.0
makefile-tools ms- 0.12.17
markdown-all-in-one yzh 3.6.3
markdown-kroki pom 1.1.2
maude sir 1.0.0
mypy-type-checker ms- 2025.2.0
node-pack Swe 0.1.16
npm-intellisense chr 1.4.5
partial-diff ryu 1.4.3
path-intellisense chr 2.10.0
plantuml cly 0.0.1
platformio-ide pla 3.3.4
powershell ms- 2025.0.0
prettier-vscode esb 11.0.0
pydoctestbtn Noa 1.0.7
python ms- 2025.2.0
python-docstring-highlighter rod 0.2.4
python-extension-pack don 1.7.0
rainbow-csv mec 3.18.0
remote-containers ms- 0.401.0
remote-explorer ms- 0.4.3
remote-server ms- 1.5.2
remote-ssh ms- 0.118.0
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.88.5
ruff cha 2025.22.0
rust-analyzer rus 0.3.2353
rust-bundle 1Yi 1.0.0
rust-syntax dus 0.6.1
tauri-vscode tau 0.2.9
teleplot ale 1.1.4
todo-tree Gru 0.0.226
vs-code-bpmn-io bpm 0.22.0
vscode-diff fab 2.1.2
vscode-docker ms- 1.29.4
vscode-eslint dba 3.0.10
vscode-github-actions git 0.27.1
vscode-html-format moh 0.1.6
vscode-js-profile-table ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
vscode-lldb vad 1.11.4
vscode-pbkit pbk 0.0.8
vscode-proto3 zxh 0.5.5
vscode-pylance ms- 2025.3.2
vscode-python-typehint njq 1.5.1
vscode-remote-extensionpack ms- 0.26.0
vscode-reveal evi 4.3.3
vscode-serial-monitor ms- 0.13.1
vscode-todo-highlight way 1.0.5
vscode-versionlens pfl 1.16.3
vscode-wakatime Wak 25.0.0
vscode-xml red 0.28.0
vscode-yaml red 1.17.0
vscode-yarn gam 2.1.0
vscodeintellicode Vis 1.3.2
vsliveshare ms- 1.0.5948
you-complete-me Ric 1.1.0
System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-12700H (20 x 2688)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.73GB (12.81GB free)
Process Argv --crash-reporter-id 79754f28-a06e-4695-8312-8cded63b996c
Screen Reader no
VM 25%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31249601
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
f27dg485:31264363
968h8231:31271074
jda6j935:31233686
pythoneinst12cf:31262606
bgtreat:31268568
fh1c7952:31258891
4gafe986:31271826
31787653:31262186
3e8i5726:31271747
49da9784:31264548

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions