No intellisense for files untitled docs (not saved to disc) when using Language Server but works in Jedi
See original GitHub issueEnvironment data
- VS Code version: 1.30.0 -insider
- Extension version (available under the Extensions sidebar): 2018.11.0-rc
- OS and version: Windows 10
- Python version (& distribution if applicable, e.g. Anaconda): 3.6.5
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Relevant/affected Python packages and their versions:
Actual behavior
No intellisense.
Expected behavior
Intelliense
Steps to reproduce:
- Turn off Jedi
- File new file (do not save to disc)
- Switch to python
- Type ‘import sys’
- Type ‘sys.’
No intellisense comes up.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Starting Microsoft Python language server.
Microsoft Python Language Server version 0.1.65.0
Initializing for C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64\python.exe
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
log.ts:157 INFO no standard startup: panel is active
extensionHost.ts:329 [Extension Host] debugger listening on port 57284
extensionHost.ts:235 Extension Host
extensionHost.ts:236 Debugger listening on ws://127.0.0.1:57284/67413935-dc17-4384-9696-4b314ccc4e95
For help see https://nodejs.org/en/docs/inspector
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: {"$mid":1,"fsPath":"f:\\Training\\SnakePython","external":"file:///f%3A/Training/SnakePython","path":"/f:/Training/SnakePython","scheme":"file"}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\python.exe (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern *\*\python.exe (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Arg 1: {}, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: {"$mid":1,"fsPath":"f:\\Training\\SnakePython","external":"file:///f%3A/Training/SnakePython","path":"/f:/Training/SnakePython","scheme":"file"}, Return Value: UNABLE TO DETERMINE VALUE (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Arg 1: undefined, Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Arg 1: undefined, Return Value: UNABLE TO DETERMINE VALUE (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Get language server folder name, , Return Value: "languageServer.0.1.65" (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Failed to get interpreter information for 'C:\Anaconda\python.exe' Error: spawn C:\Anaconda\python.exe ENOENT
at _errnoException (util.js:1024:11)
at Process.__dirname.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9) (at d.<anonymous> (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:83:286084))
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, , Return Value: (at r.logInformation (C:\Users\rchiodo\.vscode-insiders\extensions\ms-python.python-2018.11.0-rc\out\client\extension.js:1:24943))
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Validation of bundled Extension · Issue #3432 · microsoft/vscode ...
Windows - No intellisense for files untitled docs (not saved to disc) when using Language Server but works in Jedi #3498; Linux. Debugging...
Read more >Visual Studio Code autocomplete/IntelliSense not working ...
To check this, go to Extensions and search for @builtin TypeScript and JavaScript Language Features . This should look something like this: [![ ......
Read more >Language Server Protocol Specification - 3.17
This document describes the 3.17.x version of the language server protocol. An implementation for node of the 3.17.x version of the protocol can...
Read more >Wallaby.js Visual Studio Code Extension - Netlify
Reload Visual Studio Code after enabling the language server ... Alternatively, saving the file with a .m extension, will allow VS Code to...
Read more >November 2021 (version 1.63) - Visual Studio Code
VS Code now ships with TypeScript 4.5. This update brings a number of new language features, along with tooling improvements and bug fixes....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Jedi works in an unsaved file though? Seems like a weird discrepancy.
Yep works if I save the file.