Closed mvpp closed 2 months ago
Looks like it wants Python 3, not Python 2.7. I imagine -I
must be a new option for Python 3.
Unknown option: -I
Support for Python 2.7 has been dropped by the Python extension so certain features may not work, upgrade to using Python 3.
Looks like it wants Python 3, not Python 2.7. I imagine
-I
must be a new option for Python 3.Unknown option: -I Support for Python 2.7 has been dropped by the Python extension so certain features may not work, upgrade to using Python 3.
I agree it's causing an error but I'm not sure if that's the problem causing the timeout. I launched a new ubuntu 20.04 instance with only python3 installed, when I tried to open the interactive window, it still got stuck.
In the output, I didn't see any error in the python output, but it's not moving after:
2024-04-22 20:23:09.093 [info] > hatch env show --json
2024-04-22 20:23:09.093 [info] cwd: .
2024-04-22 20:23:09.115 [info] Found: /bin/python3 --> /bin/python3.8
2024-04-22 20:23:09.116 [info] Found: /bin/python3.8 --> /bin/python3.8
2024-04-22 20:23:09.136 [info] Found: /usr/bin/python3 --> /usr/bin/python3.8
2024-04-22 20:23:09.137 [info] Found: /usr/bin/python3.8 --> /usr/bin/python3.8
2024-04-22 20:23:09.144 [info] > /bin/python3 -I ./.local/share/code-server/extensions/ms-python.python-2024.4.1-universal/python_files/get_output_via_markers.py ./.local/share/code-server/extensions/ms-python.python-2024.4.1-universal/python_files/interpreterInfo.py
2024-04-22 20:23:09.408 [info] > /usr/bin/python3 -I ./.local/share/code-server/extensions/ms-python.python-2024.4.1-universal/python_files/get_output_via_markers.py ./.local/share/code-server/extensions/ms-python.python-2024.4.1-universal/python_files/interpreterInfo.py
Below is the output of extension host (remote):
2024-04-23 04:16:40.471 [info] Extension host with pid 265170 started
2024-04-23 04:16:40.524 [info] Lock '/home/ubuntu/.local/share/code-server/User/workspaceStorage/-1b53b4a2/vscode.lock': Lock acquired.
2024-04-23 04:16:40.646 [info] ExtensionService#_doActivateExtension ms-python.python, startup: false, activationEvent: 'onLanguage:python', root cause: ms-python.debugpy
2024-04-23 04:16:40.648 [info] ExtensionService#_doActivateExtension ms-toolsai.jupyter, startup: false, activationEvent: 'onLanguage:python'
2024-04-23 04:16:40.657 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2024-04-23 04:16:43.375 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
2024-04-23 04:16:43.439 [info] ExtensionService#_doActivateExtension vscode.tunnel-forwarding, startup: false, activationEvent: 'onTunnel'
2024-04-23 04:16:45.208 [error] PortAttributesProvider must specify either a portRange or a commandPattern
2024-04-23 04:16:45.243 [info] ExtensionService#_doActivateExtension ms-toolsai.jupyter-renderers, startup: false, activationEvent: 'api', root cause: ms-toolsai.jupyter
2024-04-23 04:16:45.305 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2024-04-23 04:16:45.305 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2024-04-23 04:16:45.931 [info] ExtensionService#_doActivateExtension ms-python.debugpy, startup: false, activationEvent: 'onLanguage:python'
2024-04-23 04:16:46.239 [info] Eager extensions activated
2024-04-23 04:16:46.239 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished'
2024-04-23 04:16:46.240 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
2024-04-23 04:16:52.946 [info] ExtensionService#_doActivateExtension vscode.ipynb, startup: false, activationEvent: 'onNotebookSerializer:interactive'
In the output of Window, I got the below error:
2024-04-22 21:06:31.619 [info] [remote-connection][Management ][dcbac…][reconnect] reconnected!
2024-04-22 21:23:58.220 [error] [Extension Host] Lintings failed on open
2024-04-22 21:23:58.220 [error] [Extension Host] File: file:///home/rstudio/python_code/test.py
2024-04-22 21:23:58.220 [error] [Extension Host] Message: TypeError: Cannot read properties of undefined (reading 'uri')
2024-04-22 21:24:02.582 [error] 'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).: Error: 'crypto.subtle' is not available so webviews will not work. This is likely because the editor is not running in a secure context (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).
at T (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:4:4754)
at M.mountTo (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:1229:23611)
at K.nb (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:1904:1409)
at K.createWebview (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:1904:859)
at http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:2716:7616
at Oe.rc (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:2716:8062)
at Oe.yc (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:2716:11960)
at Oe.tc (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:2716:10495)
at Oe.setModel (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:2716:4151)
at oe.setInput (http://ec2-xxx.us-west-1.compute.amazonaws.com/vscode/stable-9a28bc29dbddb6886dfe03dc1c31320249a901ce/static/out/vs/workbench/workbench.web.main.js:2754:2762)
To this point I think it's due to [error] 'crypto.subtle' is not available so webviews will not work.
It looks like it's because I didn't use HTTPS for my code server?
Ahhhhhhhhhh right yeah that makes sense. The Jupyter window uses web views, VS Code uses crypto.subtle
in their web views, and crypto.subtle
is only available in a secure context.
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.23.1 9a28bc29dbddb6886dfe03dc1c31320249a901ce with Code 1.88.1conda --version
: conda 24.3.0.vscode/settings.json
:{ "jupyter.allowUnauthorizedRemoteConnection": true }
Steps to Reproduce
print("hello")
in it. In the upper right corner of the editor I clicked the Run Current File in Interactive Window. No jupyter involvement. It also takes forever to load.Expected
I expect the interactive window loads quickly
Actual
It got timeout.
Logs
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
Notes
No response