excalidraw-vscode icon indicating copy to clipboard operation
excalidraw-vscode copied to clipboard

Issue with the extension running in devcontainer

Open AT-Education opened this issue 1 year ago • 4 comments

Trying to open an excallidraw file in devcontainer inside a github codespace.

Steps to reproduce:

  • create a github codespace
  • add devcontainer config file with extension such as: "customizations": { "vscode": { "extensions": [ "pomdtr.excalidraw-editor"] } }
  • trying to open a excalidraw file: nothing happens
  • checking extensionhost output, getting following error: Screenshot from 2024-06-15 13-18-33

AT-Education avatar Jun 15 '24 07:06 AT-Education

Having similar issue. In my case I'm using devcontainer locally (no codespaces) and the extension has worked fine in the past, however if/when I open the project "in a unique volume" the plugin appears greyed out in the extension pane and excalidraw files are not recognized when opened

game7 avatar Jun 26 '24 20:06 game7

Same here.

2024-08-30 11:21:22.703 [info] Extension host started
2024-08-30 11:21:27.766 [info] ExtensionService#_doActivateExtension pomdtr.excalidraw-editor, startup: false, activationEvent: 'onCustomEditor:editor.excalidraw'
2024-08-30 11:21:27.837 [error] Activating extension pomdtr.excalidraw-editor failed due to an error:
2024-08-30 11:21:27.837 [error] Error: 
	at I.xb (https://assets.github.dev/stable/fee1edb8d6d72afddff41e5f71a671c73ed924b9/out/vs/workbench/api/worker/extensionHostWorker.js:111:56325)
	at async Promise.all (index 0)
	at async s.n (https://assets.github.dev/stable/fee1edb8d6d72afddff41e5f71a671c73ed924b9/out/vs/workbench/api/worker/extensionHostWorker.js:96:6410)
	at async s.m (https://assets.github.dev/stable/fee1edb8d6d72afddff41e5f71a671c73ed924b9/out/vs/workbench/api/worker/extensionHostWorker.js:96:6373)
	at async s.l (https://assets.github.dev/stable/fee1edb8d6d72afddff41e5f71a671c73ed924b9/out/vs/workbench/api/worker/extensionHostWorker.js:96:5830)
2024-08-30 11:21:30.923 [info] Eager extensions activated

XF-FW avatar Aug 30 '24 11:08 XF-FW

same here

schaumtier avatar Jan 08 '25 17:01 schaumtier

As a workaround, you can add the following to your devcontainer.json to force excalidraw to run in the host window...(though I'm not sure this will solve the problem for codespaces)

 ...
"customizations": {
   "vscode": {
      "settings": {
	...
	"remote.extensionKind": {
	   "pomdtr.excalidraw-editor": [
	      "ui"
	   ]
	}
      },
      "extensions": [
	   ...
	   "pomdtr.excalidraw-editor"
      ]
   }
}
...

matt-deboer avatar Mar 23 '25 02:03 matt-deboer

Thanks @matt-deboer! Your workaround works in my GitHub codespace. (naturally, I'd prefer it if it were no longer necessary)

mamiba avatar Aug 13 '25 08:08 mamiba