xstate-tools icon indicating copy to clipboard operation
xstate-tools copied to clipboard

"open visual editor" does nothing

Open macguffin opened this issue 2 years ago • 10 comments

Hi when I click "Open Visual Editor" nothing happens. It did work when I first tried it but now doesn't. If Iook in Log(Window) I get this error:

[renderer3] [error] Cannot get password: Error: Cannot get password
    at I.$getPassword (vscode-file://vscode-/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1522:45602)

Do you think it's a corporate proxy issue? Any idea how I get get it to work?

"Open Inspector" is working - assuming that doesn't need to go to the stately.ai site.

Thanks

macguffin avatar Mar 14 '22 17:03 macguffin

Hm, this is likely going to be very difficult to emulate from our end. Can you give us some more information?

Does the webview open? (i.e. does another panel open at all?) Does your browser open?

mattpocock avatar Mar 18 '22 11:03 mattpocock

Can you potentially film a video of you attempting to open it? Is there any output from the extension itself? (in Output/XState)

mattpocock avatar Mar 18 '22 11:03 mattpocock

https://user-images.githubusercontent.com/567652/158996707-272a21fa-c16c-4100-b3af-1a452e8aae2e.mov

It feels to me like a corporate proxy or maybe something to do with the extensions authentication with stately.ai.

The main bit I want is the viewer which is working fine :).

Here is a video, I’ve just switched to VSC from IDEA (mainly because I like your extension so much). If there is anything else I can provide, let me know.

Also weirdly it did seem to work the very first time I tried it, had a pop up etc and then it was in edit mode. Have tried re-installing extension, removing it from the user folder etc.

Is there any way to force re-authentication?

Many thanks

macguffin avatar Mar 18 '22 11:03 macguffin

I have exactly the same problem. The first install worked, but then it stopped working. I tried reinstalling the extension, and even completely removed vscode - nothing helped...

atroshchenkoff avatar Jun 20 '22 15:06 atroshchenkoff

Added to Linear: https://linear.app/statelyai/issue/STA-1696/clicking-open-in-visual-editor-not-working-for-some-users

davidkpiano avatar Jun 20 '22 16:06 davidkpiano

Do you see any errors in the developer console? See below for how to open the dev tools in VS Code:

CleanShot 2022-06-20 at 12 18 25@2x

davidkpiano avatar Jun 20 '22 16:06 davidkpiano

Снимок экрана от 2022-06-20 20-32-23

This is what comes out immediately after clicking on the button "Open Visual Editor"

atroshchenkoff avatar Jun 20 '22 17:06 atroshchenkoff

I had exactly the same issue. Executing the XState: Sign out of Stately followed by XState: Sign in to Stately commands in VS Code fixed it 🥳

cgav avatar Jun 30 '22 07:06 cgav

I had exactly the same issue. Executing the XState: Sign out of Stately followed by XState: Sign in to Stately commands in VS Code fixed it partying_face

Thanks for the tip! I'll try to do so. However, this behavior is still strange and needs to be fixed.

atroshchenkoff avatar Jul 01 '22 12:07 atroshchenkoff

Looking into this, I see that there appears to be binary data in the string that is being JSON.parsed at the line the stacktrace points to. Which seems to indicate the saved auth data has been corrupted. So I'll sign in and out and that should fix it

UberMouse avatar Aug 15 '22 22:08 UberMouse