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

Build instructions for vscode extension? #468

Open
hlovdal opened this issue Feb 13, 2024 · 0 comments
Open

Build instructions for vscode extension? #468

hlovdal opened this issue Feb 13, 2024 · 0 comments

Comments

@hlovdal
Copy link

hlovdal commented Feb 13, 2024

I also get error message "Could not find a machine at the current cursor", without any special characters in the path (just /c/git/xstatetest), and with all extensions except statelyai.stately-vscode disabled (in the workplace).

So I thought maybe I could compile the extension and attempt to debug the issue. However the readme for this repo is a bit thin...


XState: Open Visual Editor fails on vscode 1.86.1 my windows machine but works with vscode 1.86.0 in a on ubuntu VM.

mkdir xstatetest
cd xstatetest
npm init -y
npm install xstate@^4
code .

and create new file test1.ts

import { createMachine } from 'xstate';

const machine = createMachine({
  initial: 'asleep',
  states: {
    asleep: {
      on: {
        'wakes up': {
          target: 'awake',
        },
      },
    },
    awake: {
      on: {
        'falls asleep': {
          target: 'asleep',
        },
      },
    },
  },
});
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