Skip to content

'Go to definition' not working #5199

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

Closed
windless0530 opened this issue Apr 11, 2019 · 5 comments
Closed

'Go to definition' not working #5199

windless0530 opened this issue Apr 11, 2019 · 5 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@windless0530
Copy link

Environment data

  • VS Code version: 1.31.1
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: macOS Mojave 10.14.4
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): None
  • Relevant/affected Python packages and their versions: None

Expected behaviour

There is 'go to definition' in short cut menu, and press shortcut key defined in Visual Studio Code can lead to expected position.

Actual behaviour

No 'go to definition' in short cut menu, and press shortcut key defined in Visual Studio Code leads to nothing happens.
image
image
image

Steps to reproduce:

None

Logs

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

Only startup logs:

Starting Microsoft Python language server.
[Info  - 下午1:47:15] GetCurrentSearchPaths /usr/local/bin/python3 
[Info  - 下午1:47:15] Python search paths:
[Info  - 下午1:47:15]     /private/var/folders/2t/zb3hw5b57yb77y58sshrxgx00000gn/T/bhgynxvd.okh
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pycrypto-2.6.1-py3.7-macosx-10.14-x86_64.egg
[Info  - 下午1:47:15] Configuration search paths:
[Info  - 下午1:47:15]     /
[Info  - 下午1:47:15]     /Users/zhangyi/Downloads/package/setuptools-28.6.0/build/bdist.macosx-10.11-intel/egg
[Info  - 下午1:47:15]     /Users/zhangyi/Downloads/package/caffe/python
[Info  - 下午1:47:15]     /Users/zhangyi/work/opera-news-antispam
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python37.zip
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
[Info  - 下午1:47:15]     /usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pycrypto-2.6.1-py3.7-macosx-10.14-x86_64.egg
[Info  - 下午1:47:15]     /Users/zhangyi/Downloads/package/setuptools-28.6.0/build/bdist.macosx-10.11-intel/egg
[Info  - 下午1:47:15]     /Users/zhangyi/Downloads/package/caffe/python
[Info  - 下午1:47:15]     /Users/zhangyi/work/opera-news-antispam
[Info  - 下午1:47:15]     /Users/zhangyi/Downloads/package/setuptools-28.6.0/build/bdist.macosx-10.11-intel/egg
[Info  - 下午1:47:15]     /Users/zhangyi/Downloads/package/caffe/python
[Info  - 下午1:47:15]     /Users/zhangyi/work/opera-news-antispam
[Info  - 下午1:47:15]     /usr/local/bin

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

None, no output caused by operation.
The following are startup logs.

[Extension Host] debugger listening on port 24601
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3364 Extension Host
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3364 Debugger listening on ws://127.0.0.1:24601/df5d714d-809a-49c7-b935-e07a2432283e
For help, see: https://nodejs.org/en/docs/inspector

/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4635 Overwriting grammar scope name to file mapping for scope source.go.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/go/syntaxes/go.tmLanguage.json.
New grammar file: file:///Users/zhangyi/.vscode/extensions/dunstontc.vscode-go-syntax-0.0.18/syntaxes/go.tmLanguage.json
e.register @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4635
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] (node:19017) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: <Uri:/Users/zhangyi/work/ks/ks/krp/python/common/kconf.py>, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:/Users/zhangyi/work/ks/ks/krp/python/common/kconf.py>, Return Value: <Return value cannot be serialized for logging>
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Rule = settings, result = exit
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/zhangyi/work/ks/ks/krp/python>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Executing next rule from windowsRegistry
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Rule = settings, result = exit
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
3/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/zhangyi/work/ks/ks/krp/python>, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.6 and args  failed
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7","fileHash":"dedfceab382c35d62e0a67f228430f5cf7d32352a81cc7deb0b1940dffb5c6c53b3523d9737cd3979e5edddef69cbe864541b351e2c588982b159ae60f28a371","type":"Unknown","cachedEntry":true}
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7","fileHash":"dedfceab382c35d62e0a67f228430f5cf7d32352a81cc7deb0b1940dffb5c6c53b3523d9737cd3979e5edddef69cbe864541b351e2c588982b159ae60f28a371","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.1 64-bit"}
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7","fileHash":"dedfceab382c35d62e0a67f228430f5cf7d32352a81cc7deb0b1940dffb5c6c53b3523d9737cd3979e5edddef69cbe864541b351e2c588982b159ae60f28a371","type":"Unknown","cachedEntry":true}
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7","fileHash":"dedfceab382c35d62e0a67f228430f5cf7d32352a81cc7deb0b1940dffb5c6c53b3523d9737cd3979e5edddef69cbe864541b351e2c588982b159ae60f28a371","type":"Unknown","cachedEntry":true}
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.47"
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, extension-output-#3
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.47"
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/zhangyi/work/ks/ks/krp/python/common/kconf.py
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 0
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7","fileHash":"dedfceab382c35d62e0a67f228430f5cf7d32352a81cc7deb0b1940dffb5c6c53b3523d9737cd3979e5edddef69cbe864541b351e2c588982b159ae60f28a371","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Executing next rule from currentPath
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/zhangyi/work/ks/ks/krp/python>, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7","fileHash":"dedfceab382c35d62e0a67f228430f5cf7d32352a81cc7deb0b1940dffb5c6c53b3523d9737cd3979e5edddef69cbe864541b351e2c588982b159ae60f28a371","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.1 64-bit"}
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.47"
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7","fileHash":"dedfceab382c35d62e0a67f228430f5cf7d32352a81cc7deb0b1940dffb5c6c53b3523d9737cd3979e5edddef69cbe864541b351e2c588982b159ae60f28a371","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/zhangyi/work/ks/ks/krp/python>, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 0
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
3/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 10
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0
3/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 5
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.1-final","major":3,"minor":7,"patch":1,"prerelease":["final"],"build":[],"version":"3.7.1-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7","fileHash":"dedfceab382c35d62e0a67f228430f5cf7d32352a81cc7deb0b1940dffb5c6c53b3523d9737cd3979e5edddef69cbe864541b351e2c588982b159ae60f28a371","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.1 64-bit"}, Arg 2: undefined, Return Value: false
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Rule = system, result = runNextRule
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Executing next rule from system
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/zhangyi/work/ks/ks/krp/python>, Return Value: undefined
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1535  INFO no standard startup: not just one text editor
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:287 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/zhangyi/work/ks/ks/krp/python/app/control_center.py
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Apr 11, 2019
@brettcannon brettcannon added area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. needs upstream fix bug Issue identified by VS Code Team member as probable bug labels Apr 11, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Apr 11, 2019
@jakebailey
Copy link
Member

jakebailey commented Apr 11, 2019

This is #5132, I believe.

@kaushall
Copy link

'Go to Definition' not working after latest update of VSCode 1.33.1

Environment data
VS Code version: 1.33.1
Extension version (ms-python.python): 2019.3.6558
OS and version: Ubuntu 18.04
Python version (& distribution if applicable, e.g. Anaconda): 2.7.15
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
Relevant/affected Python packages and their versions: None

Expected Behaviour:
Visual Studio Code navigate to the definition of the function which resides inside the workspace (Working fine earlier)

Actual Behaviour:
Popup with Message: "No definition found for 'function_name' "

But if you hover the implementation then it will show you the class with function name and all the parameters of the functions that are requested in definition of the function. It's also suggesting the function while implementing. So maybe there is some issue with only "Go to Definition".

Things I've tried:
Tried to reinstall the python extension (ms-python.python) >> Not worked
Tried to install earlier versions of the python extension (ms-python.python) >> Not worked
Closing all the files and reopening of the workspace >> Not worked
Opening the definition file in new tab and tried "Go to definition" >> Not worked

@jakebailey @brettcannon If you guys have any suggestions please help.

@brettcannon
Copy link
Member

brettcannon commented Apr 22, 2019

@ghost ghost removed the needs upstream fix label Apr 22, 2019
@kaushall
Copy link

@brettcannon Can you please tell me how to do it, I'm bit new to github.

@brettcannon
Copy link
Member

@kaushall go to https://github.com/Microsoft/python-language-server/issues, click "New issue", and then fill in your details about your problem.

@lock lock bot locked as resolved and limited conversation to collaborators May 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants