Skip to content
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

"Python extension loading..." #6687

Closed
tburd opened this issue Jul 24, 2019 · 16 comments
Closed

"Python extension loading..." #6687

tburd opened this issue Jul 24, 2019 · 16 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@tburd
Copy link

tburd commented Jul 24, 2019

Environment data

  • VS Code version: 1.36.1 (user setup)
  • Extension version (available under the Extensions sidebar): 2019.6.24221
  • OS and version: Windows 7 Enterprise
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.0 64 bits & Anaconda
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A

Expected Behavior

The "Python extension loading..." message at the bottom should disappear and the extension should be usable

Actual behavior

The message last forever and the extension isn't usable
Additional info:

Steps to reproduce:

  • Install the Python extension
  • Sometimes it works right after, sometimes not.
  • Than restart VS Code & extension is not properly loaded.

Logs

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

User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment'
Starting Microsoft Python language server.

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)

[Extension Host] debugger listening on port 53531
console.ts:134 [Extension Host] (node:39752) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Notify locators are locating, Class name = p, completed in 2ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Create file systemwatcher with pattern *\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Create file systemwatcher with pattern *\*\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Register Intepreter Watcher, Class name = p, completed in 15ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked\db_to_csv.py>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Build the workspace interpreter watcher, Class name = h, completed in 17ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked\db_to_csv.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Executing next rule from settings
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:39: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:40: Detection of Python Interpreter for Command python3.7 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:40: Detection of Python Interpreter for Command python3.6 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:40: Detection of Python Interpreter for Command python3 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:40: Detection of Python Interpreter for Command python2 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:41: Detection of Python Interpreter for Command py and args -3.7 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:41: Detection of Python Interpreter for Command py and args -3 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:41: Detection of Python Interpreter for Command py and args -3.6 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:41: Detection of Python Interpreter for Command py and args -2 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Current value for rule system is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true,"displayName":"Python 3.6.0 64-bit"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Current value for rule currentPath is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Executing next rule from settings
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:42: Executing next rule from workspaceEnvs
extensionHost.ts:201 Extension Host
extensionHost.ts:202 Debugger attached.
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Current value for rule system is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true,"displayName":"Python 3.6.0 64-bit"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Current value for rule currentPath is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Interpreters returned by VirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: setGlobalInterpreter, Class name = f, completed in 1652ms, Arg 1: {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Rule = cachedInterpreters, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: autoSelectInterpreter, Class name = f, completed in 4800ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: autoSelectInterpreter, Class name = f, completed in 4804ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: autoSelectInterpreter, Class name = f, completed in 4805ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
2
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Cached data exists getEnvironmentVariables, j:\ROOT\0. Topics\python\batch_data_BLR_stacked
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Executing next rule from settings
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Build the workspace interpreter watcher, Class name = h, completed in 6ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked\db_to_csv.py>, Return Value: <Return value cannot be serialized for logging>
2
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: autoSelectInterpreter, Class name = f, completed in 9ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Current value for rule system is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true,"displayName":"Python 3.6.0 64-bit"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Current value for rule currentPath is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:44: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Selected Interpreter from system, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true,"displayName":"Python 3.6.0 64-bit"}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Get language server folder name, Class name = f, completed in 1922ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked\db_to_csv.py>, Return Value: "languageServer.0.3.39"
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Terminal name 'powershell' identified as shell 'powershell'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Shell identified as 'powershell'
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Cached data exists getEnvironmentVariables, j:\ROOT\0. Topics\python\batch_data_BLR_stacked
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Interpreters returned by KnownPathsService are of count 1
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: setGlobalInterpreter, Class name = f, completed in 2213ms, Arg 1: {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: setGlobalInterpreter, Class name = f, completed in 1940ms, Arg 1: {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: setGlobalInterpreter, Class name = f, completed in 1939ms, Arg 1: {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: setGlobalInterpreter, Class name = f, completed in 1935ms, Arg 1: {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Rule = cachedInterpreters, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Executing next rule from currentPath
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: autoSelectInterpreter, Class name = f, completed in 3520ms, Arg 1: <Uri:tasks>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: autoSelectInterpreter, Class name = f, completed in 3521ms, Arg 1: <Uri:tasks>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: autoSelectInterpreter, Class name = f, completed in 1963ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked>, Return Value: undefined
2
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: autoSelectInterpreter, Class name = f, completed in 1964ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\batch_data_BLR_stacked>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: autoSelectInterpreter, Class name = f, completed in 3524ms, Arg 1: <Uri:tasks>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
2
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Cached data exists getEnvironmentVariables, tasks
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Executing next rule from settings
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: autoSelectInterpreter, Class name = f, completed in 2ms, Arg 1: <Uri:tasks>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: autoSelectInterpreter, Class name = f, completed in 3ms, Arg 1: <Uri:tasks>, Return Value: undefined
extensionHost.ts:201 Extension Host
extensionHost.ts:202 Debugger attached.
2
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:46: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:47: Cached data exists getEnvironmentVariables, j:\ROOT\0. Topics\python\batch_data_BLR_stacked
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:48: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:48: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets\\Scripts\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3\\envs\\evoflask_sockets","fileHash":"5e240b7d23e4e72d6c643ebb6f4553d8476bd252ce487898665ac63e0b7774ee889047fcafb0d885ede8e7902ffdb1404d823e86a513fa49ecc4b912917c424e","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:48: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:48: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:48: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:48: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:48: Create file systemwatcher with pattern *\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:48: Create file systemwatcher with pattern *\*\python.exe

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Jul 24, 2019
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jul 25, 2019
@ericsnowcurrently
Copy link
Member

Thanks for letting us know about this, @tburd. The information you've provided is useful. We're reviewing the log. In the meantime...

Do you see the problem with a minimal workspace (a folder with a single basic .py file, e.g. print('hello'))?

Also, what do you have in your user settings.json and your workspace settings.json?

@ericsnowcurrently
Copy link
Member

The only thing I find suspicious is the following part of the log:

...
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:40: Detection of Python Interpreter for Command python3.7 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:40: Detection of Python Interpreter for Command python3.6 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:40: Detection of Python Interpreter for Command python3 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:40: Detection of Python Interpreter for Command python2 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:41: Detection of Python Interpreter for Command py and args -3.7 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:41: Detection of Python Interpreter for Command py and args -3 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:41: Detection of Python Interpreter for Command py and args -3.6 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-07-24 16:37:41: Detection of Python Interpreter for Command py and args -2 failed
...

The rest seems okay. The extension found Anaconda. There isn't any extra work going on.

What happens if you switch over to Jedi ("python.jediEnabled": true)?

@ericsnowcurrently ericsnowcurrently added info-needed Issue requires more information from poster feature-* labels Jul 31, 2019
@tburd
Copy link
Author

tburd commented Aug 2, 2019

Hi Eric,
Some additional info that I did not mention before.
I had a system installation of VScode 1.11.
Without unistalling that version, I installed the version 1.36.1 (user setup) on top - Right now I have both installations.
If I try to open v1.11 I see the interface of v1.36.

I performed the test you mentioned:

  1. Created a new folder
  2. Created a new file: test.py
  3. Content: print("hello")
  4. Extension was loaded promptly - NO ISSUES

Remarks:

  • Before doing the test I had the VScode open in a "normal & old" project folder (create in the time os VScode v1.11) and the extension was trying to load for more than 10 minutes.
  • I had realized that there be a conflict with new and "old" folders. Therefore I went to every folder I have with python scripts and deleted the .vscode folder, for some it worked in the first run, but afterwards I had the same problem no matter which folder I was using.

@tburd
Copy link
Author

tburd commented Aug 2, 2019

@ericsnowcurrently
I did the test with "python.jediEnabled": true.

Outcome:

  • Several attemps (opening VScode v1.36 user setup in a folder containing my .py files) were successful (e.g. 10 folders, twice each folder)
  • After some time, I only see the "Python extension loading..."

I was quite happy for some moments 😄

settings.json

{
    "update.channel": "none",
    "workbench.welcome.enabled": false,
    "workbench.tips.enabled": false,
    "telemetry.enableTelemetry": false,
    "telemetry.enableCrashReporter": false,
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
    "editor.tabSize": 10,
    "window.zoomLevel": 0,
    "editor.fontSize": 12,
    "editor.mouseWheelZoom": true,
    "workbench.colorTheme": "Monokai",
    "files.autoSave": "off",
    "python.venvPath": "C:\\ProgramData\\Anaconda3\\venvs\\",
    "terminal.integrated.fontSize": 12,
    "code-runner.saveFileBeforeRun": true,
    "git.path": "C:\\Program Files\\Git\\bin\\git.exe",
    "git.enabled": true,
    "terminal.integrated.rendererType": "dom",
    "extensions.autoUpdate": false,
    "python.jediEnabled": true
}

Current log:

  • I see that the .vscode\seetings.json file is trying to be found. Some folder have the .vscode, some not. What is the criteria for that?
  • Do I need .vscode for everyfolder or the "global" settings.json is enough?
[Extension Host] debugger listening on port 63261
log.ts:173   ERR Error: [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat 'j:\ROOT\0. Topics\python\evoflask_sockets\.vscode'
log.ts:173   ERR [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat 'j:\ROOT\0. Topics\python\evoflask_sockets\.vscode'
console.ts:134 [Extension Host] (node:10368) [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 @ console.ts:134
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Notify locators are locating, Class name = p, completed in 2ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Detected refreshing of Interpreters, Class name = p, completed in 4ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Create file systemwatcher with pattern *\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Create file systemwatcher with pattern *\*\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Register Intepreter Watcher, Class name = p, completed in 11ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\evoflask_sockets\app.py>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:37: Build the workspace interpreter watcher, Class name = h, completed in 14ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\evoflask_sockets\app.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:38: Detection of Python Interpreter for Command python3.7 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:38: Detection of Python Interpreter for Command python3.6 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:38: Detection of Python Interpreter for Command python3 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:38: Detection of Python Interpreter for Command python2 and args  failed
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:39: Detection of Python Interpreter for Command py and args -3.7 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:39: Detection of Python Interpreter for Command py and args -3.6 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:39: Detection of Python Interpreter for Command py and args -2 failed
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:39: Detection of Python Interpreter for Command py and args -3 failed
extensionHost.ts:201 Extension Host
extensionHost.ts:202 Debugger attached.
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Executing next rule from settings
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:40: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:41: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:42: Interpreters returned by VirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:42: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:43: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:43: Interpreters returned by KnownPathsService are of count 1
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:43: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Interpreters returned by CurrentPathService are of count 2
2console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Interpreters returned by WorkspaceVirtualEnvService are of count 1
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Current value for rule system is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Conda","envName":"root","envPath":"C:\\ProgramData\\Anaconda3","displayName":"Python 3.6.0 64-bit ('root': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Current value for rule currentPath is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: setGlobalInterpreter, Class name = f, completed in 6ms, Arg 1: {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: Rule = cachedInterpreters, result = exit
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: autoSelectInterpreter, Class name = f, completed in 10ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\evoflask_sockets>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: autoSelectInterpreter, Class name = f, completed in 6905ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\evoflask_sockets>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:47: autoSelectInterpreter, Class name = f, completed in 6907ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\evoflask_sockets>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Cached data exists getEnvironmentVariables, j:\ROOT\0. Topics\python\evoflask_sockets
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Executing next rule from settings
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Build the workspace interpreter watcher, Class name = h, completed in 8ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\evoflask_sockets\app.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: autoSelectInterpreter, Class name = f, completed in 13ms, Arg 1: <Uri:j:\ROOT\0. Topics\python\evoflask_sockets>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Cached data exists getEnvironmentVariables, j:\ROOT\0. Topics\python\evoflask_sockets\app.py
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Selected Interpreter from currentPath, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Selected Interpreter from windowsRegistry, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Current value for rule system is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Conda","envName":"root","envPath":"C:\\ProgramData\\Anaconda3","displayName":"Python 3.6.0 64-bit ('root': conda)"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Current value for rule currentPath is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Current value for rule windowsRegistry is {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}
console.ts:134 [Extension Host] Error Python Extension: 2019-08-02 09:11:48: Failed to check if file needs to be fixed { [Error: ENOENT: no such file or directory, open 'j:\ROOT\0. Topics\python\evoflask_sockets\.vscode\settings.json']  errno: -4058,  code: 'ENOENT',  syscall: 'open',  path:   'j:\\ROOT\\0. Topics\\python\\evoflask_sockets\\.vscode\\settings.json' }
t.log @ console.ts:134
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:48: Selected Interpreter from system, {"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Conda","cachedEntry":true,"envName":"root","envPath":"C:\\ProgramData\\Anaconda3","displayName":"Python 3.6.0 64-bit ('root': conda)"}
extensionHost.ts:201 Extension Host
extensionHost.ts:202 Debugger attached.
console.ts:134 [Extension Host] Info Python Extension: 2019-08-02 09:11:50: Cached data exists getEnvironmentVariables, j:\ROOT\0. Topics\python\evoflask_sockets\app.py

@ericsnowcurrently
Copy link
Member

ericsnowcurrently commented Aug 5, 2019

So, with a fresh simple workspace you do not see the problem? If that's the case then there certainly may be some complication either due to that older version of VS Code (my guess) or due to the existing workspaces. Could you try with a fresh workspace on a fresh clone of one of the existing workspaces that is causing the problem?

Is there a way to uninstall that older VS Code or to completely update it? There may be a problem if they are both trying to use the same data directory.

@tburd
Copy link
Author

tburd commented Aug 8, 2019

Hi @ericsnowcurrently
Thanks for the info.

I did the following:

  • Uninstalled previous VS Code v1.11
  • Tested again a "regular folder" containing my Python scrips: failed.
  • Tested again an already created workspace: failed
  • Created a new folder containing simply a "test.py" file: failed
  • Uninstalled VS Code v1.36 64
  • Deleted all .vscode files and also the AppData.vscode folder where extensions info is saved.
  • Deleted every file that could contain vscode settings (at least all that I found)
  • Reinstalled VS Code 1.36.1 (User) 64 bit
  • Installed new python extension 2019.8.29288
    • My old settings were still there ("python.JediEnabled": true)
  • Created a new folder and a new test.py file: worked
  • Opened an "old" folder (e.g. "Folder1") containing python scripts: failed
  • Opened an "old" workspace: worked
  • Opened again "Folder1": failed
  • Opened another "old" folder ("Folder2"): failed
  • Opened again the workspace that worked before: failed
  • Created a new workspace, using new folders and new files: failed
  • Extension was downgraded to 2019.6.24221: same failures

Log from last action

[Extension Host] debugger listening on port 60583
extensionHost.ts:293 [Extension Host] debugger listening on port 53097
log.ts:173   ERR Error: [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat 'j:\ROOT\0. Topics\python_\New folder\.vscode'
log.ts:173   ERR [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat 'j:\ROOT\0. Topics\python_\New folder\.vscode'
console.ts:134 [Extension Host] (node:9564) [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 @ console.ts:134
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Display locator refreshing progress, Class name = p, completed in 3ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Notify locators are locating, Class name = p, completed in 4ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Detected refreshing of Interpreters, Class name = p, completed in 5ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Create file systemwatcher with pattern *\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Create file systemwatcher with pattern *\*\python.exe
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Notify locators are locating, Class name = p, completed in 4ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Detected refreshing of Interpreters, Class name = p, completed in 5ms, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Get Interpreters in CacheableLocatorService, Class name = f, completed in 834ms, Arg 1: <Uri:j:\ROOT\0. Topics\python_\New folder\test.py>, Return Value: [{"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Unknown","cachedEntry":true}]
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Get Interpreters in CacheableLocatorService, Class name = f, completed in 45ms, Arg 1: <Uri:j:\ROOT\0. Topics\python_\New folder\test.py>, Return Value: [{"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","companyDisplayName":"Anaconda, Inc.","type":"Conda","envPath":"C:\\ProgramData\\Anaconda3","envName":"root","cachedEntry":true}]
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Get Interpreters in CacheableLocatorService, Class name = f, completed in 41ms, Arg 1: <Uri:j:\ROOT\0. Topics\python_\New folder\test.py>, Return Value: []
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Get Interpreters in CacheableLocatorService, Class name = f, completed in 35ms, Arg 1: <Uri:j:\ROOT\0. Topics\python_\New folder\test.py>, Return Value: []
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Register Interpreter Watcher, Class name = p, completed in 20ms, Arg 1: <Uri:j:\ROOT\0. Topics\python_\New folder\test.py>, Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Get Interpreters in CacheableLocatorService, Class name = f, completed in 16ms, Arg 1: <Uri:j:\ROOT\0. Topics\python_\New folder\test.py>, Return Value: [{"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","type":"Unknown","cachedEntry":true}]
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Get Interpreters in CacheableLocatorService, Class name = f, completed in 13ms, Arg 1: <Uri:j:\ROOT\0. Topics\python_\New folder\test.py>, Return Value: [{"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","type":"Unknown","cachedEntry":true},{"architecture":3,"path":"C:\\ProgramData\\Anaconda3\\python.exe","version":{"raw":"3.6.0-final","major":3,"minor":6,"patch":0,"prerelease":["final"],"build":[],"version":"3.6.0-final"},"sysPrefix":"C:\\ProgramData\\Anaconda3","fileHash":"7ea93aec145f15795d4b009c326ac32662970de99a4aec53fea0ccecacfc63b713cabf429cbe7cc721c5db2f7d3c5fafd2cd34c1dbed82b1072ee469c237e481","type":"Unknown","cachedEntry":true}]
console.ts:134 [Extension Host] Info Python Extension: 2019-08-08 09:04:57: Build the workspace interpreter watcher, Class name = h, completed in 34ms, Arg 1: <Uri:j:\ROOT\0. Topics\python_\New folder\test.py>, Return Value: <Return value cannot be serialized for logging>
extensionHost.ts:201 Extension Host
extensionHost.ts:202 Debugger attached.
log.ts:167  WARN Aborted onWillSaveTextDocument-event after 1750ms

Question:

  • When is it required to have a .vscode file in a folder? Always?
  • What else could I do? I ran out of options =|

@ericsnowcurrently ericsnowcurrently removed the info-needed Issue requires more information from poster label Aug 8, 2019
@tburd
Copy link
Author

tburd commented Aug 26, 2019

@ericsnowcurrently would you recommend me testing anything else?

Should I switch back to an older version of VS Code (user)?

Best regards!

@tburd
Copy link
Author

tburd commented Aug 27, 2019

Additional info:

  • When I install another version of the extension, everything works.
    After some times closing an open VS Code, it stops again.

  • If I install another version, it works again, than problem, reinstalling, etc...

@ericsnowcurrently
Copy link
Member

Sorry we haven't made any headway on this, @tburd. From what you are saying, everything works fine after installing/upgrading/downgrading the extension and then in some later session the extension stops loading. Is it the very next time or after X sessions or after a X time or just at random?

@DonJayamanne, any ideas?

As to the per-workspace .vscode directory, it isn't necessary. It is where customizations to your various settings are put. So if the file is missing then it means you are using all the defaults (or user settings).

@ericsnowcurrently ericsnowcurrently added the info-needed Issue requires more information from poster label Aug 27, 2019
@tburd
Copy link
Author

tburd commented Aug 29, 2019

Thanks for the support @ericsnowcurrently.
Usually the problem happens every time I close the application after installing/upgrading/downgrading the extension, and open it again.

@ericsnowcurrently ericsnowcurrently removed the info-needed Issue requires more information from poster label Aug 29, 2019
@ericsnowcurrently
Copy link
Member

That's helpful info, @tburd. I'm going to look into what sorts of problems might be related. To be honest, I'm a bit stumped on this. (We're not giving up, though!)

In the meantime, there's one thing I want to check. Let's assume that, after an install in the current session, some data related to the extension is loaded straight into memory rather than from disk. If that is the case then it almost sounds like the problem would be with those parts when they are loaded from disk. Is VS Code or the extension installed on a local disk? Is your home directory on that same local disk?

@ericsnowcurrently ericsnowcurrently added the info-needed Issue requires more information from poster label Aug 29, 2019
@tburd
Copy link
Author

tburd commented Oct 4, 2019

@ericsnowcurrently, thanks for the answer.

VS Code is installed in: C:\User\MYUSER\AppData\Local\Programs\Microsoft VS Code
The extensions are in the same folder, under \resources\app\extensions

Although all my working folders and files are in a network drive.
Does this answer your question?

Regards

@ericsnowcurrently ericsnowcurrently removed the info-needed Issue requires more information from poster label Oct 7, 2019
@ericsnowcurrently
Copy link
Member

Yeah, that helps. We'll get back to you as soon as we have more info (or questiosn).

@ericsnowcurrently
Copy link
Member

@tburd, thus far I haven't been able to find what might be causing the problem here. Is this something you are still seeing after the latest release of the extension?

Also, what is the "j:\ROOT\0. Topics\python_\New folder.vscode" that showed up in the logs you posted in #6687 (comment)? Is your workspace located on a different drive?

@ericsnowcurrently ericsnowcurrently added the info-needed Issue requires more information from poster label Oct 28, 2019
@tburd
Copy link
Author

tburd commented Nov 6, 2019

@ericsnowcurrently, recently I updated to Windows 10, installed newest version of VS Code user install and latest extension release.

Everybody is working like a charm!
I enjoy it SOOOO much now; no workarounds are required anymore =D

@tburd tburd closed this as completed Nov 6, 2019
@ghost ghost removed the triage label Nov 6, 2019
@ericsnowcurrently
Copy link
Member

@tburd, I am so glad to hear that! Sorry we couldn't figure out the problem. I suppose it shouldn't be surprising that it was probably something related to Windows 7 (though I suppose it could have been corrupt data in VS Code or the extension). Regardless, please let us know if you run into any other trouble.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants