-
Couldn't load subscription status.
- Fork 1.3k
Description
Environment data
- VS Code version: 1.30.2
- Extension version (available under the Extensions sidebar): 2018.12.1
- OS and version: 10.14.2
- Python version (& distribution if applicable, e.g. Anaconda): 3.5.5
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv + pyenv
- VSCode settings file: https://gist.github.com/aliev/6134f897587390dec4c3ffe40390d9ab
- Workspace settings (project-root/.vscode):
{
"python.pythonPath": "env/bin/python"
}
Actual behaviour
Go to definition doesn't work. I see infinity loader
Steps to reproduce:
- Install python from pyenv (pyenv install 3.5.5 && pyenv shell 3.5.5)
- Generate simple Django project, create env: python -mvenv env && source env/bin/activate
- Try to create forms / models / views etc
- From views or forms import model
- Try to remove any py file from project:
[Error - 2:38:04 AM] One or more errors occurred. (failed to parse file file:///Users/ali/Projects/aliev/infinity-server/topic/views.py)
after that go to definition stops working
Installed extentions
1.8.0: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
1.1.2: https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode
2018.12.1: https://marketplace.visualstudio.com/items?itemName=ms-python.python
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Log
``` Starting Microsoft Python language server. ##########Linting Output - flake8########## 91,80,E,E501:line too long (91 > 79 characters) 94,80,E,E501:line too long (81 > 79 characters) 97,80,E,E501:line too long (82 > 79 characters) 100,80,E,E501:line too long (83 > 79 characters) Microsoft Python Language Server version 0.1.72.0 Initializing for /Users/ali/Projects/aliev/infinity-server/env/bin/python ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## 92,80,E,E501:line too long (91 > 79 characters) 95,80,E,E501:line too long (81 > 79 characters) 98,80,E,E501:line too long (82 > 79 characters) 101,80,E,E501:line too long (83 > 79 characters) ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## 1,1,F,F401:'django.shortcuts.render' imported but unused ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## 3,1,F,F401:'topic' imported but unused ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## 92,80,E,E501:line too long (91 > 79 characters) 95,80,E,E501:line too long (81 > 79 characters) 98,80,E,E501:line too long (82 > 79 characters) 101,80,E,E501:line too long (83 > 79 characters) ##########Linting Output - flake8########## 91,80,E,E501:line too long (91 > 79 characters) 94,80,E,E501:line too long (81 > 79 characters) 97,80,E,E501:line too long (82 > 79 characters) 100,80,E,E501:line too long (83 > 79 characters) [Error - 11:09:52 PM] One or more errors occurred. (failed to parse file file:///Users/ali/Projects/aliev/infinity-server/hours/mutations.py) ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ##########Linting Output - flake8########## ```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)
Developer Tools
``` [Extension Host] debugger listening on port 17711 extensionService.ts:507 [ms-python.python]: Command `python.datascience.exportoutputasnotebook` appears multiple times in the `commands` section. extensionHost.ts:235 Extension Host extensionHost.ts:236 Debugger listening on ws://127.0.0.1:17711/66b2c4fa-37fa-494a-b72b-19697cc40a5f For help see https://nodejs.org/en/docs/inspectorlog.ts:157 INFO standard startup
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Create file systemwatcher with pattern //python
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: {"$mid":1,"fsPath":"/Users/ali/Projects/aliev/infinity-server","external":"file:///Users/ali/Projects/aliev/infinity-server","path":"/Users/ali/Projects/aliev/infinity-server","scheme":"file"}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Create file systemwatcher with pattern //python
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Notify locators are locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: {"$mid":1,"fsPath":"/Users/ali/Projects/aliev/infinity-server","external":"file:///Users/ali/Projects/aliev/infinity-server","path":"/Users/ali/Projects/aliev/infinity-server","scheme":"file"}, Return Value: UNABLE TO DETERMINE VALUE
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: undefined, Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: undefined, Return Value: UNABLE TO DETERMINE VALUE
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Get Platform Version, , Return Value: {"raw":"18.2.0","major":18,"minor":2,"patch":0,"prerelease":[],"build":[],"version":"18.2.0"}
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Get language server folder name, , Return Value: "languageServer.0.1.72"
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/ali/.pyenv/shims/python3.7' with JSON pyenv: python3.7: command not found
The `python3.7' command exists in these Python versions:
3.7.0 SyntaxError: Unexpected token p in JSON at position 0
at JSON.parse ()
at p. (/Users/ali/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:294533)
at Generator.next ()
at s (/Users/ali/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:293754)
at
t.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303
3/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: All locators have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1504 ERR name must not be falsy: Error: name must not be falsy
at Function.e.validate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:357:869)
at new e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:357:807)
at k (/Users/ali/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:90635)
at Array.map ()
at Object.asDocumentSymbols (/Users/ali/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:94289)
at module.exports.k.registerLanguageProvider.t.sendRequest.then.e (/Users/ali/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:1:131807)
at
11/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1504 ERR Cannot read property 'map' of undefined: TypeError: Cannot read property 'map' of undefined
at asCompletionResult (/Users/ali/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:93433)
at
</details>