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

Menhir formatting broken during dune watch mode #1159

Open
amongonz opened this issue Jul 2, 2023 · 0 comments
Open

Menhir formatting broken during dune watch mode #1159

amongonz opened this issue Jul 2, 2023 · 0 comments

Comments

@amongonz
Copy link

amongonz commented Jul 2, 2023

When VS Code triggers a Format Document command on a Menhir file (either by user request or format-on-save) and dune is running in the background in watch mode (dune build -w), the entire file is split into a line per token:

%token

End_of_input

%token

Dot

Colon

%token

<int64>

Integer_lit

// ... The entire file like this.

When not running in watch mode, the format command doesn't do anything, which I understand is the intended behaviour.

I reproduce this on vscode-ocaml-platform v1.12.2, ocaml-lsp-server v1.16.2, dune 3.9.0 and ocaml 4.14.1.

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

No branches or pull requests

2 participants