eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.05k stars 2.5k forks source link

VS Code Python extension #4956

Closed jgbradley1 closed 1 year ago

jgbradley1 commented 5 years ago

Motivated by this idea, this is a first attempt to replace @theia/python with the VS Code Python extension. The main focus is on supporting Python 3.

This will also address #2459. The following output is generated on startup. I don't see any major error messages from the extension.

What works or doesn't work:

Screen Shot 2019-04-23 at 6 10 26 PM

Startup Log

yarn run v1.13.0
$ /home/theia/node_modules/.bin/theia start --plugins=local-dir:./plugins --hostname=0.0.0.0 /home/project
root INFO Theia app listening on http://0.0.0.0:3000.
root INFO unzipping the plugin ProxyPluginDeployerEntry {
  deployer:
   PluginVsCodeFileHandler { unpackedFolder: '/tmp/vscode-unpacked' },
  delegate:
   PluginDeployerEntryImpl {
     originId: 'local-dir:./plugins',
     pluginId: 'ms-python-release.vsix',
     map: Map {},
     changes: [],
     acceptedTypes: [],
     currentPath: '/home/theia/plugins/ms-python-release.vsix',
     initPath: '/home/theia/plugins/ms-python-release.vsix',
     resolved: true,
     resolvedByName: 'LocalDirectoryPluginDeployerResolver' },
  deployerName: 'PluginVsCodeFileHandler' }
root INFO PluginTheiaDirectoryHandler: accepting plugin with path /tmp/vscode-unpacked/ms-python-release.vsix
root INFO Resolved "ms-python-release.vsix" to a VS Code extension "python@2019.3.6558" with engines: { vscode: '^1.31.0' }
root INFO Deploying backend plugin "python@2019.3.6558" from "/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension"
root INFO Using Git [2.11.0] from the PATH. (/usr/bin/git)
root WARN e.onStart is slow, took: 158.91999999985273 ms
root INFO [nsfw-watcher: 45] Started watching: /root/.theia
root INFO [nsfw-watcher: 45] Started watching: /home/project
root INFO [nsfw-watcher: 45] Started watching: /home/project
root WARN e.onStart is slow, took: 199.8199999998178 ms
root INFO [nsfw-watcher: 45] Started watching: /home/project
terminal ERROR Couldn't attach - can't find terminal with id: 0
terminal ERROR Couldn't attach - can't find terminal with id: 2
terminal ERROR Couldn't attach - can't find terminal with id: 1
root INFO [hosted-plugin: 62] PLUGIN_HOST(62) starting instance

root WARN Plugin contributes items to a menu with invalid identifier: view/title
root WARN Collided keybinding is ignored;  {"command":"python.datascience.execSelectionInteractive","keybinding":"shift+enter"}  collided with  {"command":"python.execSelectionInTerminal","keybinding":"shift+enter"}
root WARN Could not register keybinding:
  {"command":"python.datascience.execSelectionInteractive","keybinding":"shift+enter"}
Error: "shift+enter" is in collision with something else [scope:1]
root WARN Collided keybinding is ignored;  {"command":"python.datascience.runcurrentcelladvance","keybinding":"shift+enter"}  collided with  {"command":"python.execSelectionInTerminal","keybinding":"shift+enter"}
root WARN Could not register keybinding:
  {"command":"python.datascience.runcurrentcelladvance","keybinding":"shift+enter"}
Error: "shift+enter" is in collision with something else [scope:1]
terminal ERROR Error attaching to terminal id 0, the terminal is most likely gone. Starting up a new terminal instead.
terminal ERROR Error attaching to terminal id 2, the terminal is most likely gone. Starting up a new terminal instead.
terminal ERROR Error attaching to terminal id 1, the terminal is most likely gone. Starting up a new terminal instead.
root INFO Config file tasks.json does not exist under file:///home/project
root INFO [hosted-plugin: 62] PLUGIN_HOST(62): PluginManagerExtImpl/init()

root INFO [hosted-plugin: 62] PLUGIN_HOST(62): initializing(/home/theia/node_modules/@theia/plugin-ext-vscode/lib/node/plugin-vscode-init.js)

root WARN Couldn't restore widget for code-editor-opener. Error: Error: 'file:///home/project/test.py' has not been found.
root INFO [hosted-plugin: 62] Debugger contribution has been registered: python

root INFO [hosted-plugin: 62] PLUGIN_HOST(62): PluginManagerExtImpl/loadPlugin(/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension)

root ERROR [hosted-plugin: 62] (node:62) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

root INFO [hosted-plugin: 62] Debug configuration provider has been registered: python

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Create file systemwatcher with pattern */python

root INFO [hosted-plugin: 62] Python Extension: Create file systemwatcher with pattern */*/python

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: <Uri:/home/project>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:/home/project>, Return Value: <Return value cannot be serialized for logging>

root INFO [hosted-plugin: 62] Python Extension: Rule = settings, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from settings

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Detection of Python Interpreter for Command python3.7 and args  failed

root INFO [hosted-plugin: 62] Python Extension: Detection of Python Interpreter for Command python3.6 and args  failed

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by CondaEnvFileService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by PipEnvService are of count 0
Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by PipEnvService are of count 0
Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
Python Extension: Interpreters returned by CondaEnvService are of count 0
Python Extension: Interpreters returned by VirtualEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
Python Extension: Rule = workspaceEnvs, result = runNextRule
Python Extension: Executing next rule from workspaceEnvs

root INFO [hosted-plugin: 62] Python Extension: Current value for rule system is nothing
Python Extension: Current value for rule currentPath is nothing
Python Extension: Current value for rule windowsRegistry is nothing

root INFO [hosted-plugin: 62] Python Extension: Selected Interpreter from cachedInterpreters, Nothing Selected

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: false
Python Extension: Rule = cachedInterpreters, result = runNextRule
Python Extension: Executing next rule from cachedInterpreters

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by CurrentPathService are of count 4

root INFO [hosted-plugin: 62] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by KnownPathsService are of count 10

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true

root INFO [hosted-plugin: 62] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true

root INFO [hosted-plugin: 62] Python Extension: Rule = currentPath, result = exit

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Current value for rule system is nothing

root INFO [hosted-plugin: 62] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}
Python Extension: Current value for rule windowsRegistry is nothing
Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, /home/project

root INFO [hosted-plugin: 62] Python Extension: Rule = windowsRegistry, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from windowsRegistry
Python Extension: Rule = settings, result = runNextRule
Python Extension: Executing next rule from settings

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Return Value: undefined
Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Checking support of .NET, Class name = u, , Return Value: true

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, /home/project

root INFO [hosted-plugin: 62] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}

root INFO [hosted-plugin: 62] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown","displayName":"Python 3.5.3 64-bit"}

root INFO [hosted-plugin: 62] Python Extension: Rule = settings, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from settings

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}, Arg 2: undefined, Return Value: false
Python Extension: Rule = cachedInterpreters, result = runNextRule
Python Extension: Executing next rule from cachedInterpreters
Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}, Arg 2: undefined, Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Rule = currentPath, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from currentPath

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by PipEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown","displayName":"Python 3.5.3 64-bit"}, Arg 2: undefined, Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Rule = system, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from system
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Rule = workspaceEnvs, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from workspaceEnvs
Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/project>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by PipEnvService are of count 0
Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, /home/project

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true

root INFO [hosted-plugin: 62] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected

root INFO [hosted-plugin: 62] Python Extension: Rule = workspaceEnvs, result = runNextRule
Python Extension: Executing next rule from workspaceEnvs

root INFO [hosted-plugin: 62] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown","displayName":"Python 3.5.3 64-bit"}
Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}
Python Extension: Current value for rule windowsRegistry is nothing
Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
Python Extension: Rule = cachedInterpreters, result = exit

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Rule = windowsRegistry, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from windowsRegistry

root INFO [hosted-plugin: 62] Python Extension: Rule = settings, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from settings

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>

root INFO [hosted-plugin: 62] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Create file systemwatcher with pattern */python

root INFO [hosted-plugin: 62] Python Extension: Create file systemwatcher with pattern */*/python

root INFO [hosted-plugin: 62] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: undefined, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging>

root INFO [hosted-plugin: 62] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown","displayName":"Python 3.5.3 64-bit"}

root INFO [hosted-plugin: 62] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}
Python Extension: Current value for rule windowsRegistry is nothing
Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}

root INFO [hosted-plugin: 62] Python Extension: Current value for rule workspaceEnvs is nothing

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}, Arg 2: undefined, Return Value: false
Python Extension: Rule = currentPath, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from currentPath
Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown"}, Arg 2: undefined, Return Value: false
Python Extension: Rule = cachedInterpreters, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from cachedInterpreters
Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by PipEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Selected Interpreter from workspaceEnvs, Nothing Selected
Python Extension: Rule = workspaceEnvs, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from workspaceEnvs

root INFO [hosted-plugin: 62] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by PipEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0

root INFO [hosted-plugin: 62] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true

root INFO [hosted-plugin: 62] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined

root INFO [hosted-plugin: 62] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown","displayName":"Python 3.5.3 64-bit"}

root INFO [hosted-plugin: 62] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.5.3-final","major":3,"minor":5,"patch":3,"prerelease":["final"],"build":[],"version":"3.5.3-final"},"sysPrefix":"/usr","fileHash":"6cfd0c2e2d74b8be58edc647fe94645026e7bf0aa3ad909eb6a14d195c223637b6805ea0fb9db160c216e1cca37ab193712194a0fd2155896d4c015a137f57ba","type":"Unknown","displayName":"Python 3.5.3 64-bit"}, Arg 2: undefined, Return Value: false

root INFO [hosted-plugin: 62] Python Extension: Rule = system, result = runNextRule

root INFO [hosted-plugin: 62] Python Extension: Executing next rule from system
Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
yeweiasia commented 5 years ago

vscode python plugin works well on my machine

jgbradley1 commented 5 years ago

Jupyter notebook support does not seem to work as expected. Linting doesn't show errors in the Problems window when the Preview version of the language server is used. After converting a Jupyter notebook to a new python file, there are problems starting up the interactive Jupyter console.

akosyakov commented 5 years ago

Linking https://github.com/theia-ide/theia/issues/3186#issuecomment-482524802

jgbradley1 commented 5 years ago

I see the following error messages continuously get reported on the backend. Looks like there are a few API points to address.

CommandRegistryMain

(node:62) UnhandledPromiseRejectionWarning: Error: Unknown actor CommandRegistryMain
    at RPCProtocolImpl.doInvokeHandler (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:194:19)
    at RPCProtocolImpl.invokeHandler (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:186:41)
    at RPCProtocolImpl.receiveRequest (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:148:45)
    at RPCProtocolImpl.receiveOneMessage (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:122:22)
    at /home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:55:89
    at /home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:227:17
    at /home/theia/node_modules/@theia/core/lib/common/event.js:161:33
    at CallbackList.invoke (/home/theia/node_modules/@theia/core/lib/common/event.js:176:39)
    at Emitter.fire (/home/theia/node_modules/@theia/core/lib/common/event.js:264:29)
    at ChildProcess.<anonymous> (/home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/hosted-plugin-process.js:117:21)
(node:62) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 34)

LanguagesMain

(node:62) UnhandledPromiseRejectionWarning: Error: Unknown actor LanguagesMain
    at RPCProtocolImpl.doInvokeHandler (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:194:19)
    at RPCProtocolImpl.invokeHandler (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:186:41)
    at RPCProtocolImpl.receiveRequest (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:148:45)
    at RPCProtocolImpl.receiveOneMessage (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:122:22)
    at /home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:55:89
    at /home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:227:17
    at /home/theia/node_modules/@theia/core/lib/common/event.js:161:33
    at CallbackList.invoke (/home/theia/node_modules/@theia/core/lib/common/event.js:176:39)
    at Emitter.fire (/home/theia/node_modules/@theia/core/lib/common/event.js:264:29)
    at ChildProcess.<anonymous> (/home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/hosted-plugin-process.js:117:21)
(node:62) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 41)

WorkspaceMain

(node:62) UnhandledPromiseRejectionWarning: Error: Unknown actor WorkspaceMain
    at RPCProtocolImpl.doInvokeHandler (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:194:19)
    at RPCProtocolImpl.invokeHandler (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:186:41)
    at RPCProtocolImpl.receiveRequest (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:148:45)
    at RPCProtocolImpl.receiveOneMessage (/home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:122:22)
    at /home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:55:89
    at /home/theia/node_modules/@theia/plugin-ext/lib/api/rpc-protocol.js:227:17
    at /home/theia/node_modules/@theia/core/lib/common/event.js:161:33
    at CallbackList.invoke (/home/theia/node_modules/@theia/core/lib/common/event.js:176:39)
    at Emitter.fire (/home/theia/node_modules/@theia/core/lib/common/event.js:264:29)
    at ChildProcess.<anonymous> (/home/theia/node_modules/@theia/plugin-ext/lib/hosted/node/hosted-plugin-process.js:117:21)
(node:62) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 47)
fGencturk commented 4 years ago

@jgbradley1 I have installed vscode-python extension to theia. When I first created a .ipynb file everything works perfectly. Then, even if I exit without saving the file, I cannot open it again. If I delete it and re-create a file with the same name, same error occurs. With a different name, I do not get any errors.

I know jupyter notebook support is written as those that does NOT work in theia, but it almost does; it perfectly works in those newly created files.

theia

tsmaeder commented 1 year ago

The python extension now activates successfully, for the notebook support, we have https://github.com/eclipse-theia/theia/issues/9867