elm-format fails
See original GitHub issueExpected Behavior
format file when saving or calling format action manually
Current Behavior
formating fails with
[Warn - 13:12:09] {"shortMessage":"Command failed with exit code 127: elm-format --stdin --elm-version 0.19 --yes","command":"elm-format --stdin --elm-version 0.19 --yes","exitCode":127,"stdout":"","stderr":"env: node: No such file or directory\n","failed":true,"timedOut":false,"isCanceled":false,"killed":false}
elm-format
is installed globally, also tried locally and explicit path in settings - same error with different path before elm-format
Possible Solution
Steps to Reproduce (for bugs)
- Setup project like proposed in readme
- Execute Format action of vscode
Context
Your Environment
- Version used: 0.10.2
- Editor name and version (e.g. VSCode 1.36.1): VSCode 1.45.1
- Environment name and version (e.g. node.js 5.4): nodejs v14.3.0, elm 0.19.1
- Operating System and version: macOS 10.15.4
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (9 by maintainers)
Top Results From Across the Web
elm-format | Yarn - Package Manager
Use elm make to see a detailed error if elm-format fails. New features: In module and import lines, exposing is automatically added if...
Read more >Elm VSCode plugin does not format on save - Stack Overflow
I have set the absolute path to my global install of elm-format in settings.json . I have also set format on save for...
Read more >ELM Format for the TCP ELM Link Programming Model
This section describes the format and content of the enhanced listener message (ELM) used by the TCP ELM Link programming model.
Read more >elm-format driving me nuts in VSCode - Reddit
I can't seem to reliably get elm-format to do its thing in VSCode. ... Message: Request textDocument/formatting failed with message: Cannot ...
Read more >Elm - Visual Studio Marketplace
You will need to install elm and elm-test to get all diagnostics and elm-format for formatting. If your setup fails to find the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you try to reinstall it? We recently had someone who thought it got stuck on install and aborted it and it still was callable from path.
Just setup a new machine and having the same issue.
elm-format
doesn’t run when I save.elm-format
from the command lineelm.json
in the root folderelm-tooling.json
in the root folder.elm
files. Same resultNot sure what else to try.
The Elm output in VS code looks fine. No mention of
elm-format
, though.