This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Support for Go to Definition on pytest fixtures when using indirect parametrize #5955
Labels
bug
Something isn't working
Environment data
2024-06-01 04:28:52.343 [info] (Client) Pylance async client (2024.5.1) started with python extension (2024.6.0)
2024-06-01 04:28:53.051 [info] [Info - 4:28:53 AM] (12564) Pylance language server 2024.5.1 (pyright version 1.1.360, commit 4bc8428d) starting
2024-06-01 04:28:53.059 [info] [Info - 4:28:53 AM] (12564) Server root directory: file:///c%3A/Users/Alex/.vscode/extensions/ms-python.vscode-pylance-2024.5.1/dist
2024-06-01 04:28:53.061 [info] [Info - 4:28:53 AM] (12564) Starting service instance "test"
2024-06-01 04:28:53.062 [info] [Info - 4:28:53 AM] (12564) Auto-Indent enabled
2024-06-01 04:28:53.063 [info] [Info - 4:28:53 AM] (12564) Auto format for strings enabled
2024-06-01 04:28:53.068 [info] [Info - 4:28:53 AM] (12564) Background analysis(1) root directory: file:///c%3A/Users/Alex/.vscode/extensions/ms-python.vscode-pylance-2024.5.1/dist
2024-06-01 04:28:53.068 [info] [Info - 4:28:53 AM] (12564) Background analysis(1) started
2024-06-01 04:28:53.084 [info] [Info - 4:28:53 AM] (12564) Setting pythonPath for service "test": "C:\Program Files\Python312\python.exe"
2024-06-01 04:28:53.085 [info] [Info - 4:28:53 AM] (12564) Setting environmentName for service "test": "3.12.3 (global)"
2024-06-01 04:28:53.112 [info] [Info - 4:28:53 AM] (12564) Assuming Python version 3.12.3.final.0
2024-06-01 04:28:53.191 [info] [Info - 4:28:53 AM] (12564) Found 1 source file
2024-06-01 04:28:53.633 [info] [Info - 4:28:53 AM] (12564) Indexer background runner(2) root directory: file:///c%3A/Users/Alex/.vscode/extensions/ms-python.vscode-pylance-2024.5.1/dist (index)
2024-06-01 04:28:53.633 [info] [Info - 4:28:53 AM] (12564) Indexing(2) started
2024-06-01 04:28:53.715 [info] [Info - 4:28:53 AM] (12564) scanned(2) 197 files over 1 exec env
2024-06-01 04:28:53.812 [info] [Info - 4:28:53 AM] (12564) indexed(2) 150 files over 1 exec env
2024-06-01 04:28:53.834 [info] [Info - 4:28:53 AM] (12564) Indexing finished(2).
Code Snippet
Repro Steps
Expected behavior
Navigated to the function definition (def my_fixture(request):)
Actual behavior
Jumped to the string in parametrize (@pytest.mark.parametrize('my_fixture', [1, 2], indirect=True))
Logs
The text was updated successfully, but these errors were encountered: