Skip to content
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

"xstate.edit-code-lens not found" when trying to open visual editor #50

Closed
nstadigs opened this issue Feb 8, 2022 · 1 comment
Closed

Comments

@nstadigs
Copy link

nstadigs commented Feb 8, 2022

I had an old version installed earlier. I tried to delete the old version and install fresh, but with the same results. It feels like there are things left over from the old version, causing the new version to fail or something.

image

Extension host logs:

On plugin activation

[2022-02-08 15:22:47.610] [exthost] [error] Error: command 'xstate.visualize' already exists
	at u.registerCommand (/opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93:28683)
	at Object.registerCommand (/opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:107:30423)
	at initiateVisualizer (/home/nbostrm/.vscode/extensions/statelyai.stately-vscode-1.5.16/client/dist/index.js:155145:57)
	at activate (/home/nbostrm/.vscode/extensions/statelyai.stately-vscode-1.5.16/client/dist/index.js:155269:5)
	at async Promise.all (index 0)
	at async w.$activate (/opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:98:21810)

When trying to run "XState: Open visual editor:

[2022-02-08 15:23:20.349] [exthost] [error] Error: command 'xstate.edit-code-lens' not found
    at b._tryExecuteCommand (vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:1489:3364)
    at vscode-file://vscode-app/opt/visual-studio-code/resources/app/out/vs/workbench/workbench.desktop.main.js:1489:3245
    at processTicksAndRejections (internal/process/task_queues.js:93:5) xstate.edit-code-lens undefined

image

About Visual Studio Code:

Version: 1.64.0
Commit: 5554b12acf27056905806867f251c859323ff7e9
Date: 2022-02-03T04:23:11.224Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.16.4-arch1-1
@nstadigs
Copy link
Author

nstadigs commented Feb 8, 2022

I figured it out.

I had mattpocock.xstate-vscode-1.4.1 installed. And since this plugin was removed from the store I could not find it in the "Extensions" panel i vscode. I removed that from the extensions directory in the vscode config directory and restarted vscode. I then reinstalled the extension from stately and now it seems to work 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant