hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.09k stars 414 forks source link

code link couldn't be activated #239

Closed quax06 closed 3 years ago

quax06 commented 3 years ago

Hi, I do have problems to activate the code link feature. When clicking on the icon I get this message: "Running the contributed command: 'hediet.vscode-drawio.toggleCodeLinkActivation' failed."

Just starting with VScode and making some tests, if it fullfill our requirements.

Version: 1.57.1 (system setup) Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48 Datum: 2021-06-17T13:28:07.755Z Electron: 12.0.7 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 Betriebssystem: Windows_NT x64 10.0.19043

drawio Version 1.5.0

Best regards..

hediet commented 3 years ago

I cannot reproduce. Can you open the VS Code dev tools and see if there are any errors?

quax06 commented 3 years ago

I would apreciate any hints to do this

hediet commented 3 years ago

VS Code -> Help -> Toggle Developer Tools

quax06 commented 3 years ago

Got it! Any further information where I have to look at?

quax06 commented 3 years ago

I found this:

Running the contributed command: 'hediet.vscode-drawio.toggleCodeLinkActivation' failed. onDidChangeNotification @ workbench.desktop.main.js:741 (anonymous) @ workbench.desktop.main.js:741 fire @ workbench.desktop.main.js:60 addNotification @ workbench.desktop.main.js:741 error @ workbench.desktop.main.js:1872 executeCommand @ workbench.desktop.main.js:2009 processTicksAndRejections @ internal/process/task_queues.js:93 async function (async) executeCommand @ workbench.desktop.main.js:2009 (anonymous) @ workbench.desktop.main.js:2009

hediet commented 3 years ago

Hmm, that is not helpful. Can you reinstall the extension?

quax06 commented 3 years ago

Yes I can, but to be honest : I did this already several times. But I will do it again.

hediet commented 3 years ago

Then it probably won't make a difference.

I'm sorry, I don't now how I can help you, as it works for me.

Maybe it is another extension? If you have time, you could try disabling all other extensions (there should be a command for that).

quax06 commented 3 years ago

I deactivated all except the german language pack ... :-) deactivated, uninstall, reinstall drawio again, but nothing changes..

hediet commented 3 years ago

Very interesting, now I can reproduce. I will look into this today/tomorrow!

Does not happen with Drawio insider in VS Code insider.

quax06 commented 3 years ago

Good luck for your investigation.

hediet commented 3 years ago

Ok I found my issue. If this is the underlying issue I got super lucky finding this particular bug which I would never have spotted otherwise.

Can you check your settings.json if it is well formed an has no syntax errors?

quax06 commented 3 years ago

I found this 2021-07-09 12_31_53-Window

hediet commented 3 years ago

Yep, can you repair the syntax of that file? Just remove the last two closing braces.

Then it should workt.

quax06 commented 3 years ago

Now it works... Thanks for your help and for writing this extension. I will go on now with my orignal testings.

Viele Grüße aus Straubenhardt

hediet commented 3 years ago

Yeah, I got really lucky running into the same issue. Otherwise I would have never gotten the idea that this could be the reason.

Grüße aus Karlsruhe