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

Interactive window picking wrong kernel on Linux #3310

Closed
otaj opened this issue Jun 28, 2019 · 11 comments
Closed

Interactive window picking wrong kernel on Linux #3310

otaj opened this issue Jun 28, 2019 · 11 comments
Assignees

Comments

@otaj
Copy link

otaj commented Jun 28, 2019

Environment data

  • VS Code version: 1.35.1 (from ArchLinux repositories)
  • Extension version (available under the Extensions sidebar): 2019.6.22090
  • OS and version: Arch Linux uname -a:Linux otaj-ntb 5.1.15-zen1-1-zen microsoft/vscode-python#1 ZEN SMP PREEMPT Wed Jun 26 10:06:19 CEST 2019 x86_64 GNU/Linux
  • Python version (& distribution if applicable, e.g. Anaconda):
otaj@otaj-ntb: $ python
Python 3.7.3 (default, Jun 24 2019, 04:54:02) 
[GCC 9.1.0] on linux
otaj@otaj-ntb: $ python2
Python 2.7.16 (default, Mar 11 2019, 18:59:25) 
[GCC 8.2.1 20181127] on linux2

Expected behaviour

When running interactive window with python path set as /usr/bin/python (default python, version 3.7.3), I expect interactive window to start python jupyter server, using the same python (python3)

Actual behaviour

The extension insists on opening python2 interactive console.

All my python related settings

    "python.autoComplete.addBrackets": true,
    "python.formatting.provider": "black",
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true,
    "python.linting.banditEnabled": true,
    "python.linting.mypyEnabled": true,
    "python.formatting.blackArgs": [
        "--line-length",
        "140",
        "--skip-string-normalization"
    ],
    "python.jediEnabled": true,
    "python.dataScience.allowLiveShare": false,
    "python.dataScience.askForKernelRestart": false,
    "python.pythonPath": "/usr/bin/python"

python
jupyter

Steps to reproduce:

Not really sure, whether my machine is somehow misconfigured. I don't have another machine so I cannot test it there. But set python executable to python (which is actually python3) and have an executable python2

Logs

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

Starting Jedi Python language engine.
##########Linting Output - flake8##########
6,31,E,E226:missing whitespace around arithmetic operator
9,1,E,E265:block comment should start with '# '
##########Linting Output - mypy##########
##########Linting Output - bandit##########

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)

/usr/lib/electron/resources/electron.asar/renderer/security-warnings.js:259 Electron Deprecation Warning (nodeIntegration default change) This window has node integration enabled by default. In Electron 5.0.0, node integration will be disabled by default. To prepare for this change, set {nodeIntegration: true} in the webPreferences for this window, or ensure that this window does not rely on node integration and set {nodeIntegration: false}.
warnAboutNodeIntegrationDefault @ /usr/lib/electron/resources/electron.asar/renderer/security-warnings.js:259
logSecurityWarnings @ /usr/lib/electron/resources/electron.asar/renderer/security-warnings.js:312
loadHandler @ /usr/lib/electron/resources/electron.asar/renderer/security-warnings.js:335
load (async)
module.exports @ /usr/lib/electron/resources/electron.asar/renderer/security-warnings.js:338
(anonymous) @ /usr/lib/electron/resources/electron.asar/renderer/init.js:164
(anonymous) @ /usr/lib/electron/resources/electron.asar/renderer/init.js:178
Module._compile @ internal/modules/cjs/loader.js:693
Module._extensions..js @ internal/modules/cjs/loader.js:704
Module.load @ internal/modules/cjs/loader.js:602
tryModuleLoad @ internal/modules/cjs/loader.js:541
Module._load @ internal/modules/cjs/loader.js:533
Module.runMain @ internal/modules/cjs/loader.js:746
startup @ internal/bootstrap/node.js:282
bootstrapNodeJSCore @ internal/bootstrap/node.js:759
workbench.main.js:3313 [Extension Host] debugger listening on port 17118
workbench.main.js:238 [Extension Host] (node:3733) [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 @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3215
_doInvokeHandler @ workbench.main.js:3293
_invokeHandler @ workbench.main.js:3293
_receiveRequest @ workbench.main.js:3292
_receiveOneMessage @ workbench.main.js:3290
_protocol.onMessage.e @ workbench.main.js:3289
fire @ workbench.main.js:77
a @ workbench.main.js:322
e @ workbench.main.js:322
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:331
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:328
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:325
_register._socket.onData.e @ workbench.main.js:324
t @ workbench.main.js:333
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Create file systemwatcher with pattern */python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Create file systemwatcher with pattern */*/python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Register Intepreter Watcher, Class name = p, completed in 4ms, Arg 1: <Uri:/home/otaj/files/phd/python/rays_speed_test.py>, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Build the workspace interpreter watcher, Class name = h, completed in 6ms, Arg 1: <Uri:/home/otaj/files/phd/python/rays_speed_test.py>, Return Value: <Return value cannot be serialized for logging>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detection of Python Interpreter for Command python3.6 and args  failed
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = settings, result = exit
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 1ms, Arg 1: <Uri:/home/otaj/files/phd/python>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Cached data exists getEnvironmentVariables, /home/otaj/files/phd/python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = windowsRegistry, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from windowsRegistry
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = settings, result = exit
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Build the workspace interpreter watcher, Class name = h, completed in 4ms, Arg 1: <Uri:/home/otaj/files/phd/python/rays_speed_test.py>, Return Value: <Return value cannot be serialized for logging>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 4ms, Arg 1: <Uri:/home/otaj/files/phd/python>, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 5ms, Arg 1: <Uri:/home/otaj/files/phd/python>, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 4ms, Arg 1: <Uri:/home/otaj/files/phd/python>, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking support of .NET, Class name = c, completed in 0ms, , Return Value: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Cached data exists getEnvironmentVariables, /home/otaj/files/phd/python/rays_speed_test.py
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Current value for rule system is {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Current value for rule windowsRegistry is nothing
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Error Python Extension: 2019-06-28 17:42:57: Failed to check if file needs to be fixed { [Error: ENOENT: no such file or directory, open '/home/otaj/.config/Code/User/settings.json']  errno: -2,  code: 'ENOENT',  syscall: 'open',  path: '/home/otaj/.config/Code/User/settings.json' }
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3215
_doInvokeHandler @ workbench.main.js:3293
_invokeHandler @ workbench.main.js:3293
_receiveRequest @ workbench.main.js:3292
_receiveOneMessage @ workbench.main.js:3290
_protocol.onMessage.e @ workbench.main.js:3289
fire @ workbench.main.js:77
a @ workbench.main.js:322
e @ workbench.main.js:322
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:331
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:328
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:325
_register._socket.onData.e @ workbench.main.js:324
t @ workbench.main.js:333
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = settings, result = exit
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 1ms, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = windowsRegistry, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from windowsRegistry
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = settings, result = exit
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = workspaceEnvs, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from workspaceEnvs
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 0ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Shell path from user settings 'null'
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Shell path '/usr/bin/zsh'
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Shell path identified as shell 'zsh'
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Shell path from user env '/usr/bin/zsh'
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Shell identified as 'zsh'
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 4ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 3ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Create file systemwatcher with pattern */python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Create file systemwatcher with pattern */*/python
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Register Intepreter Watcher, Class name = p, completed in 1ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Build the workspace interpreter watcher, Class name = h, completed in 1ms, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Current value for rule system is {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Current value for rule windowsRegistry is nothing
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by CondaEnvFileService are of count 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by CondaEnvService are of count 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by VirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: setGlobalInterpreter, Class name = f, completed in 80ms, Arg 1: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = currentPath, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from currentPath
4workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 154ms, Arg 1: <Uri:/home/otaj/files/phd/python>, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by KnownPathsService are of count 25
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by CurrentPathService are of count 5
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by PipEnvService are of count 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Interpreters returned by WorkspaceVirtualEnvService are of count 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: setGlobalInterpreter, Class name = f, completed in 108ms, Arg 1: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: setGlobalInterpreter, Class name = f, completed in 75ms, Arg 1: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: setGlobalInterpreter, Class name = f, completed in 70ms, Arg 1: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = cachedInterpreters, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from cachedInterpreters
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = currentPath, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from currentPath
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = cachedInterpreters, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from cachedInterpreters
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 185ms, Arg 1: <Uri:/home/otaj/files/phd/python>, Return Value: undefined
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 102ms, Arg 1: undefined, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Selected Interpreter from system, {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Current value for rule workspaceEnvs is nothing
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Selected Interpreter from system, {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: setGlobalInterpreter, Class name = f, completed in 20ms, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: setGlobalInterpreter, Class name = f, completed in 10ms, Arg 1: {"architecture":3,"path":"/sbin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","cachedEntry":true,"displayName":"Python 3.7.3 64-bit"}, Arg 2: undefined, Return Value: false
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = system, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from system
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Rule = system, result = runNextRule
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Executing next rule from system
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 209ms, Arg 1: <Uri:/home/otaj/files/phd/python>, Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: autoSelectInterpreter, Class name = f, completed in 125ms, Arg 1: undefined, Return Value: undefined
6workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:57: Cached data exists getEnvironmentVariables, /home/otaj/files/phd/python
3workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:42:58: Cached data exists getEnvironmentVariables, /home/otaj/files/phd/python/rays_speed_test.py
workbench.main.js:3957 [html]: language configuration: expected `comments.blockComment` to be an array of two strings.
_extractValidCommentRule @ workbench.main.js:3957
_handleConfig @ workbench.main.js:3960
_fileService.readFile.then.s @ workbench.main.js:3956
Promise.then (async)
_handleConfigFile @ workbench.main.js:3956
_modeService.getConfigurationFiles.forEach.t @ workbench.main.js:3956
_loadConfigurationsForMode @ workbench.main.js:3956
_extensionService.whenInstalledExtensionsRegistered.then @ workbench.main.js:3956
Promise.then (async)
_modeService.onDidCreateMode.e @ workbench.main.js:3956
fire @ workbench.main.js:77
_getOrCreateMode @ workbench.main.js:1494
triggerMode @ workbench.main.js:1494
codeBlockRenderer @ workbench.main.js:1428
t.codeBlockRenderer.f.code @ workbench.main.js:261
r.tok @ workbench.main.js:131
r.parse @ workbench.main.js:131
r.parse @ workbench.main.js:131
f @ workbench.main.js:114
g @ workbench.main.js:262
render @ workbench.main.js:1428
e.contents.filter.forEach.e @ workbench.main.js:2248
t.forEach.e @ workbench.main.js:2248
_renderMessages @ workbench.main.js:2246
_withResult @ workbench.main.js:2246
N._hoverOperation.b.HoverOperation.e @ workbench.main.js:2244
_onComplete @ workbench.main.js:773
_triggerSyncComputation @ workbench.main.js:773
_secondWaitScheduler.i.RunOnceScheduler @ workbench.main.js:772
doRun @ workbench.main.js:104
onTimeout @ workbench.main.js:104
setTimeout (async)
schedule @ workbench.main.js:103
_triggerAsyncComputation @ workbench.main.js:772
_firstWaitScheduler.i.RunOnceScheduler @ workbench.main.js:772
doRun @ workbench.main.js:104
onTimeout @ workbench.main.js:104
setTimeout (async)
schedule @ workbench.main.js:103
start @ workbench.main.js:774
startShowingAt @ workbench.main.js:2245
_onEditorMouseMove @ workbench.main.js:2255
_isHoverEnabled._toUnhook.add._editor.onMouseMove.e @ workbench.main.js:2253
fire @ workbench.main.js:77
n.onMouseMove.e @ workbench.main.js:1922
emitMouseMove @ workbench.main.js:1814
emitMouseMove @ workbench.main.js:1604
_onMouseMove @ workbench.main.js:1802
_register.r.onMouseMoveThrottled.e @ workbench.main.js:1800
c @ workbench.main.js:147
_register.e @ workbench.main.js:147
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Loading web panel. Panel is notset
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Loading web view...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Web view created.
3workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Activation Commands received undefined for shell bash
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: getActivatedEnvironmentVariables, Class name = b, completed in 2ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 3: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:3551 [Embedded Page] %cElectron Security Warning (Insecure Content-Security-Policy)
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Cached data exists ActivatedEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: getActivatedEnvironmentVariables, Class name = b, completed in 1ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 3: true
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:02: Getting jupyter server options ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Request for onigasm file at /home/otaj/.vscode-oss/extensions/ms-python.python-2019.6.22090/out/client/node_modules/onigasm/lib/onigasm.wasm
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Searching for token colors ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Attempting search for colors ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Connecting to jupyter server ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Connecting to history server
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Launching history server
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Generating custom default config at /tmp/e029073c-dc10-4bce-b93a-7f4891288616/jupyter_notebook_config.py
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Cached data exists ActivatedEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: getActivatedEnvironmentVariables, Class name = b, completed in 1ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 3: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Loading colors from /home/otaj/.vscode-oss/extensions/magicstack.chromodynamics-0.0.14/Chromodynamics.color-theme.json ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Searching for token colors ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Attempting search for colors ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Loading colors from /home/otaj/.vscode-oss/extensions/magicstack.chromodynamics-0.0.14/Chromodynamics.color-theme.json ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Attempting search for colors ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Loading base colors from /home/otaj/.vscode-oss/extensions/magicstack.chromodynamics-0.0.14/Chromodynamics.color-theme.json ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Attempting search for colors ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Loading base colors from /home/otaj/.vscode-oss/extensions/magicstack.chromodynamics-0.0.14/Chromodynamics.color-theme.json ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Using colors to generate CSS ...
workbench.main.js:238 [Extension Host] Error Python Extension: 2019-06-28 17:43:03: [TypeError: e.findIndex is not a function	at y.matchTokenColor (/home/otaj/.vscode-oss/extensions/ms-python.python-2019.6.22090/out/client/extension.js:75:434395)	at y.module.exports.y.constructor.getScopeStyle (/home/otaj/.vscode-oss/extensions/ms-python.python-2019.6.22090/out/client/extension.js:75:430971)	at y.generateCss (/home/otaj/.vscode-oss/extensions/ms-python.python-2019.6.22090/out/client/extension.js:75:434614)	at y.applyThemeData (/home/otaj/.vscode-oss/extensions/ms-python.python-2019.6.22090/out/client/extension.js:75:434037)]
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3215
_doInvokeHandler @ workbench.main.js:3293
_invokeHandler @ workbench.main.js:3293
_receiveRequest @ workbench.main.js:3292
_receiveOneMessage @ workbench.main.js:3290
_protocol.onMessage.e @ workbench.main.js:3289
fire @ workbench.main.js:77
a @ workbench.main.js:322
e @ workbench.main.js:322
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:331
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:328
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:325
_register._socket.onData.e @ workbench.main.js:324
t @ workbench.main.js:333
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Using colors to generate CSS ...
workbench.main.js:238 [Extension Host] Error Python Extension: 2019-06-28 17:43:03: [TypeError: e.tokenColors.forEach is not a function	at y.generateMonacoThemeObject (/home/otaj/.vscode-oss/extensions/ms-python.python-2019.6.22090/out/client/extension.js:75:435581)	at y.applyThemeData (/home/otaj/.vscode-oss/extensions/ms-python.python-2019.6.22090/out/client/extension.js:75:434037)]
t.log @ workbench.main.js:238
$logExtensionHostMessage @ workbench.main.js:3215
_doInvokeHandler @ workbench.main.js:3293
_invokeHandler @ workbench.main.js:3293
_receiveRequest @ workbench.main.js:3292
_receiveOneMessage @ workbench.main.js:3290
_protocol.onMessage.e @ workbench.main.js:3289
fire @ workbench.main.js:77
a @ workbench.main.js:322
e @ workbench.main.js:322
fire @ workbench.main.js:77
_receiveMessage @ workbench.main.js:331
S._socketDisposables.push._socketReader.onMessage.e @ workbench.main.js:328
fire @ workbench.main.js:77
acceptChunk @ workbench.main.js:325
_register._socket.onData.e @ workbench.main.js:324
t @ workbench.main.js:333
emit @ events.js:182
addChunk @ _stream_readable.js:283
readableAddChunk @ _stream_readable.js:264
Readable.push @ _stream_readable.js:219
onStreamRead @ internal/stream_base_commons.js:94
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Cached data exists ActivatedEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: getActivatedEnvironmentVariables, Class name = b, completed in 0ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 3: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:03: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:3551 [Embedded Page] Uncaught (in promise) Error: Illegal theme base!
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:04: Request for tmlanguage file.
workbench.main.js:3551 [Embedded Page] Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
workbench.main.js:3551 [Embedded Page] Failed to construct 'Worker': Script at 'vscode-resource:/home/otaj/.vscode-oss/extensions/ms-python.python-2019.6.22090/out/datascience-ui/history-react/editor.worker.js' cannot be accessed from origin 'null'.
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:04: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: [I 17:43:07.276 NotebookApp] Serving notebooks from local directory: /tmp/e029073c-dc10-4bce-b93a-7f4891288616[I 17:43:07.276 NotebookApp] The Jupyter Notebook is running at:[I 17:43:07.276 NotebookApp] http://localhost:8888/?token=de3c566eb6d02e647672f54523ae1d283723abaae8830fed
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Cached data exists ActivatedEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: getActivatedEnvironmentVariables, Class name = b, completed in 0ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 3: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: [I 17:43:07.276 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).[C 17:43:07.278 NotebookApp]         To access the notebook, open this file in a browser:        file:///home/otaj/.local/share/jupyter/runtime/nbserver-4212-open.html    Or copy and paste one of these URLs:        http://localhost:8888/?token=de3c566eb6d02e647672f54523ae1d283723abaae8830fed
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Cached data exists ActivatedEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: getActivatedEnvironmentVariables, Class name = b, completed in 1ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 3: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Connecting to process for history server
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Connecting server 977e16e1-547a-4a15-99c0-62a892a3faa4
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: [I 17:43:07.698 NotebookApp] Creating new notebook in /
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: [I 17:43:07.734 NotebookApp] Kernel started: 2cbbaf9b-0d50-4729-9c17-0c9a63e318d0
workbench.main.js:238 [Extension Host] Starting WebSocket: ws://localhost:8888/api/kernels/2cbbaf9b-0d50-4729-9c17-0c9a63e318d0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Started session 977e16e1-547a-4a15-99c0-62a892a3faa4
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Waiting for idle 977e16e1-547a-4a15-99c0-62a892a3faa4
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Waiting for idle: unknown
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: [I 17:43:07.742 NotebookApp] Creating new notebook in /
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: [I 17:43:07.760 NotebookApp] Kernel started: 5c0d86cc-12fa-4c60-8ec2-f8f6a0cebd61
workbench.main.js:238 [Extension Host] Starting WebSocket: ws://localhost:8888/api/kernels/5c0d86cc-12fa-4c60-8ec2-f8f6a0cebd61
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:07: Waiting for idle: unknown
2workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Waiting for idle: unknown
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: [I 17:43:08.174 NotebookApp] Adapting to protocol v5.1 for kernel 2cbbaf9b-0d50-4729-9c17-0c9a63e318d0
workbench.main.js:238 [Extension Host] Kernel: connected (2cbbaf9b-0d50-4729-9c17-0c9a63e318d0)
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: [I 17:43:08.183 NotebookApp] Adapting to protocol v5.1 for kernel 5c0d86cc-12fa-4c60-8ec2-f8f6a0cebd61
workbench.main.js:238 [Extension Host] Kernel: connected (5c0d86cc-12fa-4c60-8ec2-f8f6a0cebd61)
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Performing initial setup 977e16e1-547a-4a15-99c0-62a892a3faa4
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Finished connecting 977e16e1-547a-4a15-99c0-62a892a3faa4
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Connection complete for history server
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Connected to jupyter server.
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Submitting code for ca8c1082-282e-4703-9cba-93fb9138a26e
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Waiting for jupyter server and web panel ...
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Adding sys info for ca8c1082-282e-4703-9cba-93fb9138a26e 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Cached data exists ActivatedEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: getActivatedEnvironmentVariables, Class name = b, completed in 0ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 3: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:08: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:09: Cached data exists ActivatedEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:09: getActivatedEnvironmentVariables, Class name = b, completed in 0ms, Arg 1: undefined, Arg 2: {"architecture":3,"path":"/usr/bin/python","version":{"raw":"3.7.3-final","major":3,"minor":7,"patch":3,"prerelease":["final"],"build":[],"version":"3.7.3-final"},"sysPrefix":"/usr","fileHash":"37e7cceb6d0e24c55f8c2cf1a9b9413175aa4538a35277e5afe84dd899eaab8bcc279604e0351c777c08ff2e8b69ff2c36b0df3be590eab3d6200c8b6f7d45a2","type":"Unknown","displayName":"Python 3.7.3 64-bit"}, Arg 3: true
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:09: Cached data exists getEnvironmentVariables, <No Resource>
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:09: Sys info for ca8c1082-282e-4703-9cba-93fb9138a26e 0 complete
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:09: Wait for sys info for ca8c1082-282e-4703-9cba-93fb9138a26e 0
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-28 17:43:09: Finished execution for a877cc7e-e597-459e-8ae1-f4e91825d808
@rchiodo
Copy link
Contributor

rchiodo commented Jul 1, 2019

@otaj if you right click on a line and pick run in terminal:
image

And then in that terminal run this code:

import sys
sys.executable

Do you get python 3 or python 2?

@otaj
Copy link
Author

otaj commented Jul 2, 2019

/usr/bin/python                                                                                                                                                              
Python 3.7.3 (default, Jun 24 2019, 04:54:02) 
[GCC 9.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import sys
>>> sys.executable
'/usr/bin/python

Screencast

@rchiodo
Copy link
Contributor

rchiodo commented Jul 2, 2019

Your logs indicate we're running the same thing when launching jupyter. Perhaps jupyter's kernel is pointing to the wrong information.

In that same terminal, if you run jupyter kernelspec list what do you get?

@otaj
Copy link
Author

otaj commented Jul 2, 2019

  rik_slurm_rcipython_via_jasekota_rci    /usr/local/share/jupyter/kernels/rik_slurm_rcipython_via_jasekota_rci
  rik_ssh_jasekota_goedel_goedelpython    /usr/local/share/jupyter/kernels/rik_ssh_jasekota_goedel_goedelpython
  cling-cpp11                             /usr/share/jupyter/kernels/cling-cpp11
  cling-cpp14                             /usr/share/jupyter/kernels/cling-cpp14
  cling-cpp17                             /usr/share/jupyter/kernels/cling-cpp17
  cling-cpp1z                             /usr/share/jupyter/kernels/cling-cpp1z
  python2                                 /usr/share/jupyter/kernels/python2
  python3                                 /usr/share/jupyter/kernels/python3
  python3-cuda                            /usr/share/jupyter/kernels/python3-cuda

@rchiodo
Copy link
Contributor

rchiodo commented Jul 2, 2019

Can you upload the json for the file at /usr/share/jupyter/kernels/python2 and at /usr/share/jupyter/kernels/python3?

We might be picking the wrong kernel. Can you run this code in the python interactive input box?

%connect_info

That should list out the kernel we're currently connect to.

@otaj
Copy link
Author

otaj commented Jul 2, 2019

$ python -m json.tool /usr/share/jupyter/kernels/python3/kernel.json
{
    "argv": [
        "python",
        "-m",
        "ipykernel_launcher",
        "-f",
        "{connection_file}"
    ],
    "display_name": "Python 3",
    "language": "python"
}
$ python -m json.tool /usr/share/jupyter/kernels/python2/kernel.json
{
    "display_name": "Python 2",
    "language": "python",
    "argv": [
        "python2",
        "-m",
        "ipykernel_launcher",
        "-f",
        "{connection_file}"
    ]
}
%connect_info

{
  "stdin_port": 36991, 
  "ip": "127.0.0.1", 
  "control_port": 40541, 
  "hb_port": 46635, 
  "signature_scheme": "hmac-sha256", 
  "key": "9829ab59-b8bd4f6bdc553c0da0d0d580", 
  "kernel_name": "", 
  "shell_port": 38445, 
  "transport": "tcp", 
  "iopub_port": 47255
}

@rchiodo
Copy link
Contributor

rchiodo commented Jul 2, 2019

Hmm. I was hoping it would list out the name. And we don't log the name we picked in our console output.

Would you mind renaming the python2/kernel.json to say kernel.tmp, closing VS Code, and trying again?

I'm guessing that we're not matching the kernel based on path, so we just pick the first one that has language 'python'. (We match argv[0] on path to see if it's the correct python or not. We don't try just the file name though)

Here's an example:

On my windows machine, the json has the full path to python in it:

(jupyter) C:\Users\rchiodo.REDMOND>type C:\Users\rchiodo.REDMOND\AppData\Roaming\jupyter\kernels\python2\kernel.json
{
 "display_name": "Python 2",
 "language": "python",
 "argv": [
  "C:\\Users\\rchiodo.REDMOND\\AppData\\Local\\Continuum\\anaconda3\\envs\\ipykernel_py2\\python.exe",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ]
}

(jupyter) C:\Users\rchiodo.REDMOND>type C:\Users\rchiodo.REDMOND\AppData\Local\Continuum\anaconda3\envs\jupyter\share\jupyter\kernels\python3\kernel.json
{
 "argv": [
  "C:\\Users\\rchiodo.REDMOND\\AppData\\Local\\Continuum\\anaconda3\\envs\\jupyter\\python.exe",
  "-m",
  "ipykernel_launcher",
  "-f",
  "{connection_file}"
 ],
 "display_name": "Python 3",
 "language": "python"
}

So we can match argv[0] against the python you selected in vs code and pick the kernel based on that.

On your linux box I'm guessing we're not finding a match so we just pick the first 'python' kernel.

@otaj
Copy link
Author

otaj commented Jul 2, 2019

Yeah, it is exactly like that. I renamed language to python2 for python2 kernel and suddenly I am able to launch python3 kernel.

How about you try something like expanding of the first argv[0] by which to see if it matches the executable? Or, maybe even better, provide an option to select any python kernel (just like Hydrogen in Atom does) - I have a kernel which specifically invokes python with CUDA support on optimus laptop (you've seen it as python3-cuda kernel) and this way I am unable to choose it.

@rchiodo
Copy link
Contributor

rchiodo commented Jul 2, 2019

We're actually working on the latter. This issue here (once I finish it), should support picking a kernel:
https://github.com/microsoft/vscode-python/issues/3123

This current issue we'll use for fixing the bug of not picking the correct kernel.

@otaj
Copy link
Author

otaj commented Jul 2, 2019

That is great to hear!

BTW, definitely out of the scope of this issue or maybe even roadmap, but is there a plan to separate data-science related stuff and python extension? Because right now, that is something that Atom definitely does better. Hydrogen is completely separated from any language-dependent extension and works the same across Haskell, Python, Julia, R, or any other kernels, whereas it would seem that in VSCode, the only place where you can run jupyter kernels is this extension and if you want such functionality with any other language, you are out of luck.

I actually enjoy working in VSCode more than in Atom lately, however, because of the lack of the said Jupyter features, I have to have a separate desktop app for that (I loathe programming in a browser)

@rchiodo
Copy link
Contributor

rchiodo commented Jul 2, 2019

Actually the long term goal is to include support for other languages. Not sure how we're going to ship that yet. We might split the datascience stuff into a separate extension, but we need a bunch of the code in the python extension to find/launch jupyter.

So yes? But not sure when.

This might be a good issue to upvote:
https://github.com/microsoft/vscode-python/issues/5078

@rchiodo rchiodo changed the title Interactive window insists on python2 (Linux) Interactive window picking wrong kernel on Linux Jul 2, 2019
@rchiodo rchiodo self-assigned this Jul 15, 2019
@rchiodo rchiodo closed this as completed Aug 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2019
@microsoft microsoft unlocked this conversation Nov 14, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 14, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants