-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
VSCode Docker extensions does not work #4935
Comments
VS Code shipping Keytar is not API, but it's used by multiple extensions anyway since there is no better way to securely store user data. See microsoft/vscode#68738 |
I see, do you have any idea how I can install it manually? Tried putting it in my package.json which doesn't seem to work |
Maybe someone from the Theia team can comment, but native modules such as keytar are a difficult problem because they have to be compiled per-platform. Maybe you could provide more info about why installing it normally didn't work? |
@roflcoopter have you gotten around this problem? I've tried everything it seems, but the core of the problem seems to be their use of Or is there a way to resolve "hard-coded" To be clear, I successfully installed One more (ugly) workaround may be to patch UPDATE: Patching it in-place seems to have worked (I no longer get the OP's error message), but syntax highlighting for Dockerfiles still doesn't work. |
@dinvlad syntax highlighting is contributed by built-in vscode extensions: https://github.com/microsoft/vscode/tree/master/extensions/docker We've republished them to npmjs to consume: https://www.npmjs.com/package/@theia/vscode-builtin-docker |
You can try open an issue for vscode-docker to make it configurable somehow. How do you think we could help you from our side? In electron app it probably can be the same, but for browser target we don't have |
Thanks! Will use UPDATE: Syntax highlighting still doesn't seem to be working for me, even with the builtin extension. I realize this is a separate issue, so will likely file it there. Re I guess it’s just not getting converted to |
Sorry if this is off-topic here, but I got the highlighting working now too, by packaging https://github.com/microsoft/vscode/tree/master/extensions/docker directly with So at this point, everything seems to be working re How should we proceed re |
It seems to be bogus that |
@akosyakov you're right, I spoke too soon - |
How about we replace That seems to work, i.e. UPDATE: this seems to be the crux of the problem. After patching |
This commit includes the official Microsoft plugin for Docker (extension/PeterJausovec.vscode-docker). However, for the correct operation of the plugin we had to adjust a few more things (eclipse-theia/theia#4935): - patch Theia to return process.cwd() as env.appRoot - add 'keytar' package and libsecret to the Docker image - install "built-in" VSCode Docker extension for syntax highlighting in Dockerfiles
That make sense @akosyakov! I'm not sure where to plug in that kind of code though.. |
@dinvlad we could pass it as env variable here: https://github.com/theia-ide/theia/blob/797db759bcdde66c8bbabf2ab0b041bc7d887d30/packages/plugin-ext/src/hosted/node/hosted-plugin-process.ts#L158 you can get the proper app path from here, i.e. via injecting |
I've the same issue when using vscode-docker 1.6.0 , I saw that this is issue have started more then a year ago, is there any progress? or any workaround that we can use? The error is: |
Same here .I tried the steps mentioned by @dinvlad ie:by changing the path returned to /data/theia (in my case theia is started from here) but ended up with keytar error .I confirmed that keytar is available locally though Update: this time with a different error,could not start dockerfile language server .. s.languages.registerDocumentSemanticTokensProvider is not a function .I will dig in more |
Activating extension 'Docker' failed: Internal error: Could not find keytar module for reading and writing passwords is still not operational |
The issue seems to be fixed for newer versions of vscode-docker as |
Description
The VSCode docker extension does not load in Theia.
Reproduction Steps
OS and Theia version:
Ubuntu 18.04 - Theia nex 0.6.0
Diagnostics:
It fails with this error
root ERROR [hosted-plugin: 12451] (node:12451) UnhandledPromiseRejectionWarning: Error: Internal error: Could not find keytar module for reading and writing passwords at /home/theia/plugins/vscode-docker/extension/dist/extension.bundle.js:263:1618389 at Function.tryCreate (/home/theia/plugins/vscode-docker/extension/dist/extension.bundle.js:263:1618481) at /home/theia/plugins/vscode-docker/extension/dist/extension.bundle.js:157:603905 at Object.t.activateInternal (/home/theia/plugins/vscode-docker/extension/dist/extension.bundle.js:157:603957) at activate (/home/theia/plugins/vscode-docker/extension/main.js:22:28) at PluginManagerExtImpl.startPlugin (/home/theia/node_modules/@theia/plugin-ext/lib/plugin/plugin-manager.js:172:73)
The text was updated successfully, but these errors were encountered: