microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.33k stars 1.19k forks source link

Microsoft.Python.LanguageServer infinite cycle (analysis) and high resource usage #5005

Closed blakearoberts closed 5 years ago

blakearoberts commented 5 years ago

Environment data

Expected behaviour

Can Analyzing in background, xxxx items left... in a reasonable amount of time using a reasonable amount of resources.

Actual behaviour

Continousuly Analyzing in background, xxxx items left... using several gigabytes of RAM and large amounts of CPU.

I believe it is related to any of the issues https://github.com/Microsoft/python-language-server/pull/546 was supposed to solve.

Steps to reproduce:

  1. Create new python3.7 virtualenv and pip install dash_html_components
  2. Create and open a new python script which contains import dash_html_components as html

Logs

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

none

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)

(As far as I can tell, this information will not be helpful)

extensionHost.ts:330 [Extension Host] debugger listening on port 28821
textMateService.ts:53 Overwriting grammar scope name to file mapping for scope source.python.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/python/syntaxes/MagicPython.tmLanguage.json.
New grammar file: file:///Users/blakeroberts/.vscode/extensions/magicstack.magicpython-1.1.0/grammars/MagicPython.tmLanguage
register @ textMateService.ts:53
textMateService.ts:53 Overwriting grammar scope name to file mapping for scope source.ruby.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/ruby/syntaxes/ruby.tmLanguage.json.
New grammar file: file:///Users/blakeroberts/.vscode/extensions/rebornix.ruby-0.22.3/syntaxes/ruby.cson.json
register @ textMateService.ts:53
textMateService.ts:53 Overwriting grammar scope name to file mapping for scope source.jinja.
Old grammar file: file:///Users/blakeroberts/.vscode/extensions/samuelcolvin.jinjahtml-0.9.0/syntaxes/jinja.tmLanguage.json.
New grammar file: file:///Users/blakeroberts/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja.json
register @ textMateService.ts:53
textMateService.ts:53 Overwriting grammar scope name to file mapping for scope text.html.jinja.
Old grammar file: file:///Users/blakeroberts/.vscode/extensions/samuelcolvin.jinjahtml-0.9.0/syntaxes/jinja-html.tmLanguage.json.
New grammar file: file:///Users/blakeroberts/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-html.json
register @ textMateService.ts:53
textMateService.ts:53 Overwriting grammar scope name to file mapping for scope text.yaml.jinja.
Old grammar file: file:///Users/blakeroberts/.vscode/extensions/samuelcolvin.jinjahtml-0.9.0/syntaxes/jinja-yaml.tmLanguage.json.
New grammar file: file:///Users/blakeroberts/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-yaml.json
register @ textMateService.ts:53
log.ts:161  INFO no standard startup: not just one text editor
extensionHost.ts:234 Extension Host
extensionHost.ts:235 Debugger attached.

log.ts:167  WARN UNRESPONSIVE extension host, 'GrapeCity.gc-excelviewer' took 99% of 3712.678ms, saved PROFILE here: '/var/folders/gk/jk7pkt7d7s31k6hcxvc1jqpw0000gm/T/exthost-5e0dca.cpuprofile' Array(4)
console.ts:134 [Extension Host] (node:16869) [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] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: <Uri:/Users/blakeroberts/test/python/main.py>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:/Users/blakeroberts/test/python/main.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.6 and args  failed
20console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2.7' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x000000010cb535c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x0000000111b955c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2.7' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x000000010cc5b5c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x000000010b4f25c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 0
2console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 0
3console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 18
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 5
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 60
4console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 60
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7","fileHash":"6e0679e9398b208d075e46a020c84ea652f3663e6e9850fba018244a882d56c132119c1bcc636713caf64b0ee8e2a97b46d07b61811bc6cbca5bd66611921de6","type":"Unknown","displayName":"Python 3.7.0 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/sd/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/sd/bin/..","fileHash":"f84d58e2a8daaebb9fb36567fefe0f70e10c39da8cea89fa07dea81a6170d3f914b470549c07bedd017a603cbce70aa3f3c69c9c9eff5e36621d3a3341b9577c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/sd/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/sd/bin/..","fileHash":"f84d58e2a8daaebb9fb36567fefe0f70e10c39da8cea89fa07dea81a6170d3f914b470549c07bedd017a603cbce70aa3f3c69c9c9eff5e36621d3a3341b9577c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/sd/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/sd/bin/..","fileHash":"f84d58e2a8daaebb9fb36567fefe0f70e10c39da8cea89fa07dea81a6170d3f914b470549c07bedd017a603cbce70aa3f3c69c9c9eff5e36621d3a3341b9577c","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit
3console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/blakeroberts/test/python>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/blakeroberts/test/python
console.ts:134 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
2console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/blakeroberts/test/python>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7","fileHash":"6e0679e9398b208d075e46a020c84ea652f3663e6e9850fba018244a882d56c132119c1bcc636713caf64b0ee8e2a97b46d07b61811bc6cbca5bd66611921de6","type":"Unknown","displayName":"Python 3.7.0 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.34"
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/blakeroberts/test/python/main.py
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7","fileHash":"6e0679e9398b208d075e46a020c84ea652f3663e6e9850fba018244a882d56c132119c1bcc636713caf64b0ee8e2a97b46d07b61811bc6cbca5bd66611921de6","type":"Unknown","displayName":"Python 3.7.0 64-bit"}
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.34"
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/blakeroberts/test/python/main.py
5console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2.7' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x000000010db0f5c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x00000001187df5c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.34"
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from currentPath
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/blakeroberts/test/python>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/blakeroberts/test/python>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7","fileHash":"6e0679e9398b208d075e46a020c84ea652f3663e6e9850fba018244a882d56c132119c1bcc636713caf64b0ee8e2a97b46d07b61811bc6cbca5bd66611921de6","type":"Unknown","displayName":"Python 3.7.0 64-bit"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from system
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/blakeroberts/test/python>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 60
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/Users/blakeroberts/test/python>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Starting Language Server, Class name = p, , Return Value: undefined
2console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/blakeroberts/test/python/main.py
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
5console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2.7' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x000000010368c5c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x00000001120925c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 60
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7","fileHash":"6e0679e9398b208d075e46a020c84ea652f3663e6e9850fba018244a882d56c132119c1bcc636713caf64b0ee8e2a97b46d07b61811bc6cbca5bd66611921de6","type":"Unknown","displayName":"Python 3.7.0 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/sd/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/sd/bin/..","fileHash":"f84d58e2a8daaebb9fb36567fefe0f70e10c39da8cea89fa07dea81a6170d3f914b470549c07bedd017a603cbce70aa3f3c69c9c9eff5e36621d3a3341b9577c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/sd/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/sd/bin/..","fileHash":"f84d58e2a8daaebb9fb36567fefe0f70e10c39da8cea89fa07dea81a6170d3f914b470549c07bedd017a603cbce70aa3f3c69c9c9eff5e36621d3a3341b9577c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/sd/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/sd/bin/..","fileHash":"f84d58e2a8daaebb9fb36567fefe0f70e10c39da8cea89fa07dea81a6170d3f914b470549c07bedd017a603cbce70aa3f3c69c9c9eff5e36621d3a3341b9577c","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit
3console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
2console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
2console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7","fileHash":"6e0679e9398b208d075e46a020c84ea652f3663e6e9850fba018244a882d56c132119c1bcc636713caf64b0ee8e2a97b46d07b61811bc6cbca5bd66611921de6","type":"Unknown","displayName":"Python 3.7.0 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule workspaceEnvs is nothing
10console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2.7' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x00000001118be5c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x000000011d1285c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2.7' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x0000000108bbf5c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/boto3/bin/python2' with JSON Fatal Python error: _PyMainInterpreterConfig_Read: memory allocation failed
ValueError: character U+6573552f is not in range [U+0000; U+10ffff]

Current thread 0x00000001160d95c0 (most recent call first): SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from currentPath
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/python","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/Users/blakeroberts/code/.virtualenvs/python_test/bin/..","fileHash":"87b26c7cffb89fa3e3490373a63f9fc520e6692f51c26f6a527f947e65cad4ab9e9627d3b42edc0c834b7fb1645a4862e9d3e4fdeb030962fae43441b5d95862","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
2console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 60
2console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Failed to parse interpreter information for '/Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6' with JSON dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/blakeroberts/code/.virtualenvs/messaging-sdk-aio-examples/bin/python3.6
  Reason: image not found SyntaxError: Unexpected token d in JSON at position 0
    at JSON.parse (<anonymous>)
    at f.<anonymous> (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304722)
    at Generator.next (<anonymous>)
    at s (/Users/blakeroberts/.vscode/extensions/ms-python.python-2019.3.6139/out/client/extension.js:83:304049)
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 60
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7","fileHash":"6e0679e9398b208d075e46a020c84ea652f3663e6e9850fba018244a882d56c132119c1bcc636713caf64b0ee8e2a97b46d07b61811bc6cbca5bd66611921de6","type":"Unknown","displayName":"Python 3.7.0 64-bit"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/local/bin/python3","version":{"raw":"3.7.0-final","major":3,"minor":7,"patch":0,"prerelease":["final"],"build":[],"version":"3.7.0-final"},"sysPrefix":"/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7","fileHash":"6e0679e9398b208d075e46a020c84ea652f3663e6e9850fba018244a882d56c132119c1bcc636713caf64b0ee8e2a97b46d07b61811bc6cbca5bd66611921de6","type":"Unknown","displayName":"Python 3.7.0 64-bit"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from system
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
3console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /Users/blakeroberts/test/python/main.py
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, tasks
blakearoberts commented 5 years ago
Screen Shot 2019-03-28 at 5 04 32 PM
chialikuo commented 5 years ago

I'm glad to see someone already raised this issue. This exact same problem started happening to me fairly recently.

My development environment:

Screenshot from 2019-03-28 21-08-16

Memory usage sometimes goes over 16GB on my machine with 32GB RAM!

algo99 commented 5 years ago

Looks like the same issue upstream as https://github.com/Microsoft/python-language-server/issues/832

isthatdeception commented 5 years ago

i am going through with same issue

gramster commented 5 years ago

We are working on reducing the memory overhead of analysis, and should have some improvements within a few days. In the meanwhile if this is impacting your productivity you can set jediEnabled to true in the Python extension settings to use jedi for analysis.

DonJayamanne commented 5 years ago

Closing in favor of Microsoft/python-language-server#832