coder / code-server

VS Code in the browser
https://coder.com
MIT License
67.31k stars 5.51k forks source link

[Bug]: Drawio Extension not working #5253

Open BassCoder2808 opened 2 years ago

BassCoder2808 commented 2 years ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

  1. open coe-server
  2. go to extensions and install hediet.vscode-drawio
  3. open a file with .drawio extension

Expected

Draw.io editor shpould be opened in the vs code itself

Actual

Does not load drawio editor and just keeps on loading

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code?

Are you accessing code-server over HTTPS?

Notes

The extension runs flawlessly on vscode but does not even open in code-server. Checked on different versions but keep getting the same issue

jsjoeio commented 2 years ago

Does it work with Codespaces?

What do you see in the logs?

BassCoder2808 commented 2 years ago

Yes, this extension also works in GitHub code spaces.

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

jsjoeio commented 2 years ago

🤔 okay thanks for checking. We'll have to dig into this.