-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Ctags - Neither rebuildOnFileSave nor rebuildOnStart work #793
Comments
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"
} |
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 |
In my case I found few issues those I solved to make my VS Code working again as expected. Pylint didn't workAfter upgrade the macOS my virtualenvs becomes to be broken. I tried to execute something like this:
And the same path have been used by VS Code to run my Python. I've deleted this virtual env and initiated new one. Then I've installed Used old unsupported ctags implementationI found that
It's exist alternative version of it https://github.com/universal-ctags/homebrew-universal-ctags
I see that it fixes some well known issues like this: universal-ctags/ctags#750 Anyway it didn't help me to restore Go To symbols. But it's few steps towards it at least. |
OK, finally it started work SolutionAfter doing what I said above, I find next things. Go To Symbol in FileIt started to work, showing me the list of functions in the Python file. but Go To Symbol in WorkspaceWhen I desired to try jump to a symbol inside a workspace - it started the process of creating the
As I can see - the |
@1st we're actually working on a new language server which should do away with the need of ctags, so it might not be fixed in the next release, but we are working on improving this. |
I'd still like to have ctags as a simple fallback mechanism for navigation... |
@balta2ar no decision has been made, but I wouldn't count on us supporting two separate approaches due to the maintenance burden. |
@brettcannon I think that this problem can be avoided if you can make change to the file
If you can change the |
Hello everyone! Could you please schedule it in a milestone? |
Done! :)
… On 4 Jul 2019, at 21:36, Brett Cannon ***@***.***> wrote:
@1st <https://github.com/1st> do note that #3517 <#3517> asked for the exact opposite of what you're after. 😄
@mgsergio <https://github.com/mgsergio> no progress. Please 👍 the issue to help bump up its priority.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#793?email_source=notifications&email_token=ABSZXK6Y6WHXOXBZO74F67LP5Y7MTA5CNFSM4EQ5JHIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZH64AQ#issuecomment-508554754>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABSZXK6SVUSJ7XZ3TNXA743P5Y7MTANCNFSM4EQ5JHIA>.
|
https://code.visualstudio.com/docs/python/settings-reference#_workspace-symbol-tags-settings
|
|
This issue should be fixed in the latest release. Validated. |
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:
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.)Output from
Console window
(Help->Developer Tools menu) (I see this on VS Code startup.)The text was updated successfully, but these errors were encountered: