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.

Format on saves failure

See original GitHub issue

Using the latest formatter (v2.8.0) on MacOS, I always get an error when trying to format the document. If I call the rust formatter manually I get:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 9, kind: Other, message: "Bad file descriptor" }', libs/datamodel/core/src/ast/reformat/reformatter.rs:88:38
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Syttencommented, Oct 10, 2020

I am going to give it a try next week. I am using the extension, but then I tried to do it manually with the binary in the node modules. Interesting that it would miss permissions I will check that as well. I can open and save the file no problem so I didn’t think that it might be a problem.

0reactions
Syttencommented, Nov 12, 2020

Seems to be fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code Formatting fail on save - Stack Overflow
18 Answers 18 · uninstall other formatters which are not required. · press ctrl + shift + p or command +shift + p...
Read more >
Format on Save (prettier) stopped working with latest update
Same thing happened to me just now. I set prettier as the Default Formatter in Settings and it started working again. My Default...
Read more >
VS Code tips — Format on save - YouTube
Today's VS Code tip: Format on saveAutomatically format your code when you save it. No more worrying about checking in unformatted codeUse ...
Read more >
How to enable auto format on save with prettier in VS Code ...
Explainer video about How to enable auto format on save in VS Code (Visual Studio Code) editor with prettier code formatter extension on...
Read more >
You may receive a "Your changes could not be saved" error ...
These symptoms only occur if you save a file in the Excel Workbook or Template format. Cause. This issue occurs if Excel cannot...
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