-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Probable race condition between CSharpier, Rider #573
Comments
Possibly related, I got this while changing branches using the command line. Using 0.13.0 and the beta2
|
I was able to fairly reliably reproduce the I have a new beta3 that I believe solves the issue. https://github.com/belav/csharpier/releases/tag/rider-1.2.0-beta3 I haven't yet reproduced the issue that I saw with |
Uh... I haven't looked too deep into how the Rider plugin works, but to clarify: when told to format the plugin uses csharpier to modify the active buffer, right? (not the file on disk). |
Correct, it makes use of Document |
I ran into a few roadblocks, and had to completely change the approach to how to format files on save, but have a new prerelease that solves the problem. I submitted 1.2.0 to jetbrains last friday because it fixed a number of other issues. I'll submit 1.2.1 sometime this week after some more testing. Some of the technical details, so that I have them recorded somewhere. |
* Switching to ActionsOnSaveFileDocumentManagerListener.ActionOnSave Possible fix for #573 * Get format on save to actually work * Who knows, trying everything * Little things * Little tweak * This is the way * Implementing AnActionListener to handle format on save * Self code review
This still seems to happen on the latest version of Rider if you use a macro that does a code cleanup and then cSharpier reformat |
Just had this happen on csharpier 1.8.2. with following exception:
|
This happened immediately after a "move class to file" refactoring and my guess is this is the equivalent of a concurrent modification by Rider and CSharpier. I've seen it a couple of times but it does not reproduce consistently.
The text was updated successfully, but these errors were encountered: