-
Notifications
You must be signed in to change notification settings - Fork 141
Please save before fixing #972
Comments
I'm guessing that the method
If you have enabled the Fix on Save option, we add an observer for all editors that triggers when they are saved. Before sending a @IanVS do you think we should just silently exit if the editor isn't valid instead of telling the user something went wrong? I'm not sure we could handle this in any other way. @adamreisnz You can safely ignore the message, it's mainly just there to yell at people that try to fix unsaved files 😉. |
Thanks, I figured it'd be something like that :) |
I'd be fine with that. Not getting a success message should be enough to indicate that nothing happened. If we wanted to be a bit safer, we could also send a log to the console, just in case someone is confused and checks it. |
@adamreisnz do you want to take a crack at a PR? |
@IanVS I would if I had the time, but unfortunately between my contracting work, personal projects and open source projects that I'm already involved in I don't have the time currently to dig into any other packages, sorry! |
When a fix job is triggered but the TextEditor is invalid by the time the job runs silently return. Fixes #972.
When a fix job is triggered but the TextEditor is invalid by the time the job runs silently return. Fixes #972.
Released in v8.3.0, sorry about the delay! |
Issue Type
Bug
Issue Description
I occasionally see the message "Please save before fixing", without any further explanation.
This happens usually when I do a replace in file in multiple files across a project (with one or more of those files open in Atom).
Why does this message appear? What can be done about it? This didn't use to appear before a few versions back.
Bug Checklist
Restart Atom
Yes, also happens after restart.
Verify the
eslint
CLI gives the proper result, whilelinter-eslint
does notNot applicable here.
Paste the output of the
Linter Eslint: Debug
command from the Command Palette belowThe text was updated successfully, but these errors were encountered: