question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittant Failure Running elm-format

See original GitHub issue

Sometimes (but not always) VS Code will complain that running elm format failed. It seems like elm format does work (because the formatting on the file changes), but it’s still annoying. I’ve tried to fix this by setting the path to elm-format, but it hasn’t been effective. I assume that running elm-format is returning a non-zero result, but I don’t know enough to further debug it.

Expected Behavior

VS Code stops telling me to install elm-format and gives me a more specific error.

Current Behavior

Screen Shot 2021-02-25 at 1 16 37 PM Screen Shot 2021-02-25 at 1 17 13 PM Screen Shot 2021-02-25 at 1 33 14 PM

Example of a weird “ghost” problem that I think is caused by this: Screen Shot 2021-02-25 at 2 51 32 PM

Possible Solution

It would be great to get more verbose about what went wrong. I have an elm-format binary installed and it seems to work most of the time, so I don’t really know what’s going wrong.

Steps to Reproduce (for bugs)

Unfortunately, I don’t really have enough information to reproduce. I’ve done what I think is the standard thing - installing elm from a .pgk, use node to do a global install of elm-format, etc.

Context

It’s annoying and it ?might? be causing ghost problems to be reported by VS Code. It’s common for errors to get “stuck” in my UI, which I can fix by restarting VS Code.

Your Environment

  • Version used: 2.0.3
  • Editor name and version (e.g. VSCode 1.36.1): 1.53.2
  • Environment name and version (e.g. node.js 5.4): node v15.10.0, Elm 0.19.1, elm-format 0.8.5
  • Operating System and version: OS X 10.15.7

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aeturnumcommented, Feb 25, 2021

@Razzeee Building from source should be doable. I’ll take a look at it and report back if I manage it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

elm-format fails · Issue #107 - GitHub
When in the Output -Panel, select Elm from the dropdown on the right. If it's not showing up in that list, the server...
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. ... to run elm-format on the .elm files in this...
Read more >
Elm VSCode plugin does not format on save - Stack Overflow
One case where format on save does not work by following these suggestions is in the elm-0.19-workshop. Format on save will not trigger...
Read more >
Effortless LED Mapping by Enttec ELM User Manual rev 1.38
Basically, once a computer has been activated, it will be able to run ELM until it dies. No internet connection required, so you...
Read more >
Citrix Fixes and Known Issues – App Layering - JGSpiers.com
When trying to create or edit a connector, you receive a "Authentication Failed (401)" error. This is a problem caused by long-running Active ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found