Format on saves failure
See original GitHub issueUsing 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:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top 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 >
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 Free
Top 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

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.
Seems to be fixed