Phrogz / visual-scxml-editor

VS Code extension for visualizing and graphically editing SCXML statecharts
MIT License
13 stars 1 forks source link

Can't run any of editor because of command 'visual-scxml-editor.*' not found #45

Open filug opened 1 year ago

filug commented 1 year ago

Preconditions

  1. vscode version: 1.78.2 b3e4e68a0bc097f0ae7907b217c1119af9e03435 x64
  2. Visual SCXML Editor version: v0.5.0
  3. host: Linux Bullseye, amd64

Scenario

  1. Hit F1
  2. select: 'SCXML Editor: Create Blank State Machine'

Error

image

Notes

I get similar error in case when I'm trying to open existing SCXML file. Then error looks like

image

I've tested several configurations:

erros are always the same.

diabluz commented 1 year ago

I had the same issue, I'm running it on Linux and looking at the Developer Tools console it said it could not find "./editorglue" and would fail to load the extension. "EditorGlue.js" indeed exists and I presume this works in Windows as it does not care about case, but in Linux it matters, to fix it: inside extension.js is I changed: const editorglue_1 = require("./editorglue"); to const editorglue_1 = require("./EditorGlue");

ps. This is a great extension by the way!

Phrogz commented 1 year ago

Trying to figure out how to repro this. The extension works as installed for me on Linux, Windows, and macOS (two of which are case-sensitive). There is no place in the assets or code where EditorGlue is used with that casing as a file name; it only exists as a class name. The file extension.js described by @diabluz must be a generated file, compiled from the TypeScript.

diabluz commented 1 year ago

Hello Phrogz, thanks a lot for checking, some additional input, I run Visual Code on Windows for editing code on a remote target using the ssh (ms-vscode-remote.remote-ssh), so Visual Code installs the scxml plugin to the remote Linux (Fedora) server, maybe it adds those lines during the remote installation? The full path for the file in the remote linux machine is: ~/.vscode-server/extensions/phrogz.visual-scxml-editor-0.5.0/out/extension.js

Phrogz commented 1 year ago

@filug Are you also using it on a remote target when this error occurs?

ste93 commented 1 year ago

Hello everyone,

I have the same problem, I've tried to use the solution proposed by @diabluz but it raises the following error

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' https://*.vscode-cdn.net". Either the 'unsafe-inline' keyword, a hash ('sha256-ICa0DhwZQJsOd/Rn0N8H6FdQ71GfNL+op2zhAQ+Y4mM='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.

Does anyone knows how to solve it?

jwoillez commented 12 months ago

Same error for me with a RemoteSSH target. Works fine when local.

filug commented 12 months ago

@filug Are you also using it on a remote target when this error occurs?

In all cases.

I can reproduce this issue while I'm

In other words, so far, I was not able (unfortunately) to use this plugin on Debian 11 based workstation (others were not tested by me).

That's what I was using today to test this issue

VS Code version

Version: 1.84.2
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:50:47.800Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 5.10.0-26-amd64

Visual SCXML Editor extension

version v0.5.0

Published 2023-02-28, 01:42:33
Last released 2023-03-03, 04:09:57
Last updated 2023-11-18, 16:46:00
Identifier phrogz.visual-scxml-editor
SanneMarx commented 8 months ago

Same error here when using VS Code on Windows, connected to Windows Subsystem for Linux running on the same machine No issue when doing it all within the Windows environment

DAtek commented 3 weeks ago

Same issue on LinuxMint 21.3, extension doesn't work at all

kép

Visual SCXML Editor extension: 0.5.0 VS Code version: 1.94.2