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

[python]Problems with starting ms-python VSCode extension #8022

Closed
3 tasks done
svor opened this issue Jun 16, 2020 · 10 comments
Closed
3 tasks done

[python]Problems with starting ms-python VSCode extension #8022

svor opened this issue Jun 16, 2020 · 10 comments
Labels
bug bugs found in the application python issues related to the python language / extension vscode issues related to VSCode compatibility

Comments

@svor
Copy link
Contributor

svor commented Jun 16, 2020

Bug Description:

I tried to use latest Python extension for Visual Studio Code. For this moment it's 2020.5.86806.
But got some issues during the initialization and as a result latest python extension doesn't work with theia:

root ERROR [hosted-plugin: 16582] Unsupported activation events: onCustomEditor:NativeEditorProvider.ipynb, please open an issue: https://github.com/eclipse-theia/theia/issues/new
root ERROR [hosted-plugin: 16582] ms-python.python extension will be activated eagerly.
root ERROR [hosted-plugin: 20967] Error Python Extension: 2020-06-16 15:27:22: Failure during activation. TypeError: Cannot read property 'Web' of undefined
    at e.getCommonProperties (/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:16:117498)
    at e.createAppInsightsClient (/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:16:116688)
    at e.updateUserOptIn (/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:16:116164)
    at new e (/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:16:115806)
    at /tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:1:11232
    at Object.l [as sendTelemetryEvent] (/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:1:11263)
    at Function.getInstance (/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:16:246621)
    at f.getSettings (/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:46:497842)
    at /tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js:39:6106
root ERROR [hosted-plugin: 20967] Error Python Extension: 2020-06-16 15:27:22: stat() failed for "/tmp/vscode-unpacked/ms-python-release.vsix/extension/out/client/extension.js.map.disabled" { Error: 'No available file system provider for schema file
    at FileSystemMainImpl.push.../../packages/plugin-ext/lib/main/browser/file-system-main.js.FileSystemMainImpl.getHandle (http://localhost:3000/57.bundle.js:4718:19)
    at FileSystemMainImpl.<anonymous> (http://localhost:3000/57.bundle.js:4728:31)
    at step (http://localhost:3000/57.bundle.js:4665:23)
    at Object.next (http://localhost:3000/57.bundle.js:4646:53)
    at http://localhost:3000/57.bundle.js:4640:71
    at new Promise (<anonymous>)
    at push.../../packages/plugin-ext/lib/main/browser/file-system-main.js.__awaiter (http://localhost:3000/57.bundle.js:4636:12)
    at FileSystemMainImpl.push.../../packages/plugin-ext/lib/main/browser/file-system-main.js.FileSystemMainImpl.$stat (http://localhost:3000/57.bundle.js:4724:16)
    at RPCProtocolImpl.push.../../packages/plugin-ext/lib/common/rpc-protocol.js.RPCProtocolImpl.doInvokeHandler (http://localhost:3000/41.bundle.js:875:23)
    at RPCProtocolImpl.push.../../packages/plugin-ext/lib/common/rpc-protocol.js.RPCProtocolImpl.invokeHandler (http://localhost:3000/41.bundle.js:860:41)
  name: 'Error',
  message: '\'No available file system provider for schema file' }

Steps to Reproduce:

  1. Download latest python extension from https://github.com/microsoft/vscode-python/releases and put it into plugins folder
  2. Start Theia and try to open simple python file

Additional Information

  • Operating System: Linux Mint 19.3 Cinnamon
  • Theia Version: @theia/example-browser 1.2.0
@kittaakos
Copy link
Contributor

kittaakos commented Jun 16, 2020

Same as #7999 or #3186 (comment)?

No available file system provider for schema file

Here is the WIP PR for the VS Code FS API: #7908

@akosyakov
Copy link
Member

First issue is tracked in #6636. Second issue is new. The last is being worked on in #7908.

@akosyakov akosyakov added bug bugs found in the application python issues related to the python language / extension vscode issues related to VSCode compatibility labels Jun 17, 2020
@azatsarynnyy
Copy link
Member

I've updated the description with the corresponding issues.
We (at Red Hat) are going to start working on CustomEditor API #6636

@azatsarynnyy
Copy link
Member

Cannot read property 'Web' of undefined

this one should be fixed by #8038

@nickboldt
Copy link

When do we think this will be fixed? Looking for a Che milestone so we can map that to a CRW release. Ideally, Che-theia 7.20, if possible?

@azatsarynnyy
Copy link
Member

I updated the description with these two API already implemented:

  • UIKind API - Cannot read property 'Web' of undefined
  • vscode.workspace.fs API - No available file system provider for schema file

@azatsarynnyy
Copy link
Member

Unsupported activation events

About this one, I haven't seen it when I was trying the plugin here #3186 (comment)

@djmaze
Copy link

djmaze commented Jun 5, 2021

As the CustomEditor API is now implemented, does the extension now work?

@azatsarynnyy
Copy link
Member

As the CustomEditor API is now implemented, does the extension now work?

Hello @djmaze, when I tried it here it was working well. In Google Chrome at least.

@azatsarynnyy
Copy link
Member

I'm closing this one. Feel free to reopen if more work should be done here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application python issues related to the python language / extension vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

6 participants