Repository navigation
Closed
Labels
area-editor-*User-facing catch-allbugIssue identified by VS Code Team member as probable buggood first issue
Milestone
Description
Environment data
VS Code version: 1.20.1
Python Extension version: 2018.1.0
Python Version: 2.7.14
OS and version: MacOS 10.13.3
Actual behavior
${workspaceFolder}/.vscode/tags file is not updated when I save a python file nor if I restart VS Code.
Expected behavior
${workspaceFolder}/.vscode/tags file will be updated when I save a python file or restart VS Code.
Steps to reproduce:
- Verify tags file doesn't exist
- Open a project with python files in VS Code and open a Python source file
- Verify the tags file still doesn't exist (rebuildOnStart hasn't activated)
- Make a change to the Python file and save
- Verify the tags file still doesn't exist (rebuildOnFileSave hasn't activated)
- Perform a global symbol search
- The tags file has been created (this is only created if it doesn't exist, if it already existed it isn't updated with new symbols)
- Add a new function definition to a Python file and save (rebuildOnFileSave hasn't activated)
- Perform a global symbol search for newly added symbol (this fails to find it)
- Run 'Python: Build Workspace Symbols' (this updates tags file)
- Perform a global symbol search for newly added symbol (this succeeds)
Logs
Output from Python output panel (only gets logged when I perform a global symbol search if the tags file doesn't exist, or if I run the 'Python: Build Workspace Symbols' command.)
ctags --options=/XXXXX/.vscode/extensions/ms-python.python-2018.1.0/resources/ctagOptions --languages=Python --exclude=**/site-packages/** --exclude=.history -o /YYYYY/.vscode/tags .
Output from Console window (Help->Developer Tools menu) (I see this on VS Code startup.)
[Extension Host] Python Extension: Failed to get conda info from conda null
t.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:253
Reacted by Swarnendu Biswas, whwkong, Damon Jablons, Greg Flynn, Yuri Bochkarev, Felipe Ojeda, cdsw, Gal Cohen, Nicholas Grisafi, Andrea Vedaldi and 15 more
Metadata
Metadata
Labels
area-editor-*User-facing catch-allbugIssue identified by VS Code Team member as probable buggood first issue
Activity
gregflynn commentedon Apr 5, 2018
Yea been scratching my head as to why goto symbol was always a few lines off, I added the following keybinding as a workaround for me:
{ "key": "ctrl+shift+r", "command": "python.buildWorkspaceSymbols" }1st commentedon Jun 14, 2018
Updated to the very last version of VS Code and still have such issue. Goto Symbol command show nothing in Python files.
I'm using MacOS and just reinstalled
ctagsvia Homebrew and then restarted VS Code. Deleted file ".vscode/tags" and it's not restored (not recreated). Previously when I remove such file it was restored after some period of time. Looks thatctagsdoesn't work anymore for some reason.42 remaining items
karrtikr commentedon Dec 10, 2019
This issue should be fixed in the latest release. Validated.