Closed jgbradley1 closed 1 year ago
vscode python plugin works well on my machine
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.
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)
@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.
The python extension now activates successfully, for the notebook support, we have https://github.com/eclipse-theia/theia/issues/9867
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:
Startup Log