-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Multiple instances of VSCode fails #784
Comments
I haven't been able to recreate this, but it sounds like they were both trying to install csharpier at the same time, and the second one got an error because the first instance installed it. I'm guessing if you close out VSCode and reopen it, things will be working. I believe it should be possible to handle this condition by looking for that specific error. |
Hmm, very strange, I opened up a single instance today and noticed that it wasn't formatting, this time the full output:
Not sure about the warning, but the error is the same. Manually going to So maybe this is not related to two instances, but rather something else |
After waiting for a bit, one instance scenario is randomly now fixed, however I'm back to the same scenario with 2 instances running (one works ok, one fails). If I try to restart the bad instance with the good one still running, it does not help. If I exit the good instance, the bad one still fails. If I exit both instances and then start a new single instance, it works. Not sure what is going on. I'm on windows by the way. |
Sorry for the delay - I'm able to reproduce this consistently now. It appears that the second instance of VSCode somehow corrupts the install of csharpier, which then leaves it in a non-working state for the second instance. The first instance continues to work because it has csharpier already running in the background. If you close out all instances, the first instances started is able to recover from the corrupted install. I haven't had time to look into exactly why that happens, but I should have time in the next couple of days to get a fix out. |
This is fixed in version 1.3.6 of the extension, it should be available shortly. |
Much thanks! |
Hi,
I had two instances of VSCode opened up and I noticed that only on one of them formatting with csharpier got executed correctly. The second one outputs:
I believe this is particularly because of the
Tool 'csharpier' is already installed.
as it somehow fails to reuse/recreate the process? By the way I do not install csharpier locally, but I have 0.21.0 installed globally withdotnet tool
.The text was updated successfully, but these errors were encountered: