-
Notifications
You must be signed in to change notification settings - Fork 9
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
Format on save sometimes leaves view stuck read-only #34
Comments
I've had this occur more often when I've introduced small syntax errors in my code and then tried to format than any other time. I'm unsure if that's just a placebo, but I do think it's related to Restarting sublime text then closing the view and re-opening does remove the read only status for me. |
We had the same problem in the Go driver, I need to make room in my non existent spare time to try to fix it. |
I get this error when I run
Same behaviour as described above. |
ST3 build 3126 on Linux (CentOS 7), anaconda_rust 0.2.10.
Sometimes, with
rust_format_on_save
set, some files will hit a bug where the format seems to hang forever - the progress bar consistently shows "Auto formatting file..." and the view remains read-only. A close and re-open of the file clears the read-only state but sets it again as soon as I save. Restarting Sublime fixes for a while but eventually it starts happening again.I'm not sure whether I have some other plugin interfering but I've disabled pretty much everything else and I still hit this intermittently. It is intermittent, so it's not that the path to
rustfmt
is wrong or anything.From a quick look at
commands/rustfmt.py
, it looks like the problem might be in the timeout case - that callback doesn't seem to clear the progress bar or clear the read-only state? But I don't know the Anaconda internals well enough to be sure... I've tried looking at the jsonserver logfiles, but they don't show anything that looks like an error.The text was updated successfully, but these errors were encountered: