Skip to content

The extension "hediet.vscode-drawio" doesn't work #4400

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

Closed
SlavikCA opened this issue Oct 26, 2021 · 14 comments
Closed

The extension "hediet.vscode-drawio" doesn't work #4400

SlavikCA opened this issue Oct 26, 2021 · 14 comments
Labels
extension The issue needs to be fixed in the extension

Comments

@SlavikCA
Copy link

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows 10
  • code-server --version: 3.12.0 running in Docker

Steps to Reproduce

  1. install the extension hediet.vscode-drawio
  2. create empty file test.drawio.svg
  3. open the file

Expected

drawio diagram editor displayed

Actual

no diagram editor displayed

Logs

Error in browser console:

mainThreadExtensionService.ts:95 Activating extension 'hediet.vscode-drawio' failed: Cannot find module '/home/coder/.local/share/code-server/extensions/hediet.vscode-drawio-999.0.0-alpha/dist/extension/index'
Require stack:

  • /usr/lib/code-server/vendor/modules/code-oss-dev/out/vs/loader.js
  • /usr/lib/code-server/vendor/modules/code-oss-dev/out/bootstrap-amd.js
  • /usr/lib/code-server/vendor/modules/code-oss-dev/out/bootstrap-fork.js.

Looking at the files:

ls -hl .local/share/code-server/CachedExtensionVSIXs/
total 112M
-rw-r--r-- 1 slavik users 1.9M Oct 20 23:10 donjayamanne.githistory-0.6.18
-rw-r--r-- 1 slavik users 32M Oct 20 22:54 felixfbecker.php-intellisense-2.3.14
-rw-r--r-- 1 slavik users 77M Oct 25 23:16 hediet.vscode-drawio-999.0.0-alpha
-rw-r--r-- 1 slavik users 1.1M Oct 20 23:18 mhutchie.git-graph-1.30.0

This issue can be reproduced in VS Code: No

the same extension is working fine in the desktop VS Code

I'm not sure, if this is code-server issue or the extension issue. Let me know, if I need to resubmit in the extension repo.

@code-asher
Copy link
Member

Looks like our marketplace is failing to auto-build the extension properly. Should get fixed when we switch to Open VSX #4319. In the meantime the main workarounds are to install the .vsix manually or switch to Open VSX manually.

@code-asher code-asher added the extension The issue needs to be fixed in the extension label Oct 27, 2021
@stale
Copy link

stale bot commented Apr 25, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

@stale stale bot added the stale label Apr 25, 2022
@stale stale bot closed this as completed May 2, 2022
@dxkrs
Copy link

dxkrs commented Jun 21, 2022

the promble had fix? I meet the same promble

@code-asher
Copy link
Member

code-asher commented Jun 21, 2022 via email

@dxkrs
Copy link

dxkrs commented Jun 22, 2022

@code-asher Yes, I am meeting the trouble now. I don't know if it's the promble of extension or the code-server. I have submit an issue to the extension repository.

@code-asher
Copy link
Member

code-asher commented Jun 23, 2022 via email

@dxkrs
Copy link

dxkrs commented Jun 28, 2022

For what it is worth I tried on code-server v4.4.0 and installed the extension from the Open VSX marketplace (the second one since the first one is insiders) but it works for me.

Are you install same to me ?(install by the code-server by the docker image linuxserver/code-server, and do the nginx proxy)

@code-asher
Copy link
Member

code-asher commented Jun 28, 2022 via email

@dxkrs
Copy link

dxkrs commented Jul 4, 2022

emm..... I am using the image linuxserver/code-server:latest online. I try to use the codercom/code-server:latest in local and online, it doesn't work too !
I will try to the image codercom/code-server:4.4.0 later (download this old tag very slow)

@dxkrs
Copy link

dxkrs commented Jul 5, 2022

I find something news! I try to use the host localhost or a https domian with a real cert in my local environment(virtual machine), it is work for any images, I cant see and use the draw io in my code-sever!
However, I deploy it on my remote machine like local,(same network ports, images, https) , it still not work! I can't see the draw io console, even I no use the reverse proxy with nginx.
I think this problem may be related to the service worker, beacuse of it only work on https request or localhost domain, but I don't know the reason that my remote machine still not work for it.

@dxkrs
Copy link

dxkrs commented Jul 5, 2022

Finally, I solve my promble 😂 ...... my remote machine's bandwidth is too low -- 1Mbps !!! Now I can see and use it after I up to 5Mbps temporarily.
I try to reproduce this problem in local , throught using the chrome dev tools -> network -> fast 3G.
Is it real that service worker is unfriendly for low bandwidth network ? 😂 😂 😂

@code-asher
Copy link
Member

code-asher commented Jul 18, 2022 via email

@code-asher
Copy link
Member

Wait, that was with Firefox but with Chrome I think I reproduced. In my case the extension host keeps reconnecting. I think it takes so long to connect that it times out.

@code-asher
Copy link
Member

Let us continue this in #2407

@code-asher code-asher removed the stale label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension The issue needs to be fixed in the extension
Projects
None yet
Development

No branches or pull requests

3 participants