-
Notifications
You must be signed in to change notification settings - Fork 765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go to Definition(F12) of the pytest fixture does not work in a workspace project. #5114
Comments
+1 |
This appears to be fixed in our latest prerelease build (2023.12.100). Can you give it a try? |
Still doesn't work. May be I can provide some logs or anything else?
|
@qmmp123, can you provide source code that reproduces what you're seeing? Also please confirm that you have |
Thanks. I'm able to repro it now. I'll investigate. |
Sorry, I was wrong. I can't reproduce what you're seeing. It's pretty odd that hover says the type of the parameter is @yakkle, can you try 2023.12.100 and see if your issue is fixed? I'm pretty sure that what @qmmp123 is seeing is unrelated. @qmmp123, without a repro we can't fix this. Could you give me temporary access to your repo? If not, could you reduce your repro case to something simple and shareable? |
I will try to do it |
I've reproduced it. That problem caused by code-workspace file. Try it https://github.com/qmmp123/sandbox . UPD: |
Thanks. I still can't reproduce it. Maybe it's settings related? Can you provide your user |
settings.json{
"workbench.colorTheme": "GitHub Dark",
"window.titleBarStyle": "custom",
"window.customMenuBarAltFocus": false,
"cmake.configureOnOpen": true,
"explorer.autoReveal": false,
"workbench.colorCustomizations": {
"statusBar.background": "#005f5f",
"statusBar.noFolderBackground": "#005f5f",
"statusBar.debuggingBackground": "#005f5f"
},
"vscode-neovim.logPath": "~/.vscode-neovim.log",
"vscode-neovim.neovimExecutablePaths.linux": "/usr/bin/nvim",
"vscode-neovim.neovimInitVimPaths.linux": "~/.config/nvim/init-vscode.vim",
"editor.lineNumbers": "relative",
"workbench.iconTheme": "material-icon-theme",
"python.analysis.diagnosticSeverityOverrides": {
"reportUndefinedVariable": "warning"
},
"vscode-neovim.neovimExecutablePaths.darwin": "/usr/local/bin/nvim",
"vscode-neovim.neovimInitVimPaths.darwin": "~/.config/nvim/init-vscode.vim",
"editor.minimap.enabled": false,
"problems.showCurrentInStatus": true,
"editor.suggest.showStatusBar": true,
"editor.unicodeHighlight.ambiguousCharacters": false,
"python.analysis.useLibraryCodeForTypes": true,
"workbench.editor.enablePreview": false,
"editor.suggest.showColors": true,
"editor.suggest.showWords": true,
"python.analysis.autoImportCompletions": false,
"editor.suggest.preview": true,
"editor.suggest.localityBonus": true,
"explorer.confirmDelete": false,
"editor.largeFileOptimizations": false,
"workbench.editor.empty.hint": "hidden",
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1
},
"python.languageServer": "Pylance",
"python.analysis.typeCheckingMode": "basic",
"python.analysis.inlayHints.pytestParameters": true,
"python.testing.pytestEnabled": true,
"git.autofetch": true,
} |
@debonte I will try with |
The pylance
2023.09.30
version works, but later versions do not.Works when a single project, but not when changed to a workspace project.
Environment data
Code Snippet
Repro Steps
conftest.py
with above sample code.cmd + click
orF12
on parameterfoo
in fixturebar
Expected behavior
Go to definition of fixture
foo
#3727
Actual behavior
Go to
print(foo)
in fixturebar
The text was updated successfully, but these errors were encountered: