-
Notifications
You must be signed in to change notification settings - Fork 511
Editor services crashing when file in use #1499
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
Comments
Going to close this as a duplicate of #1471. @PrzemyslawKlys you'll be pleased to know that we're about to merge a fix for this one: PowerShell/PowerShellEditorServices#732. |
Great :-) Weirdly enough I started to experience this for first time in last 2 days. Before it was ok. |
Yeah I'm similar -- first time I got this crash was a couple of weeks ago. I just assumed that deleting a file while it's under CodeLens anaylsis is a rare scenario. The fix was for a fairly old piece of code. Anyway, it's fixed now and we actually got a 10x CodeLens performance improvement out of it too. |
I'm really excited working in VSCode and PowerShell. It's so great tool even with those crashes I can't get back and sooner or later we will be getting less and less problems. |
I hope so! We're wrangling with some technical debt, but I'm hoping we can make some solid improvements in the coming months. The debugger is the next problem area. It really didn't like the move to named pipes, but we didn't have much choice on that one. |
@rjmholt, that PR was to address when the file goes missing but this issue is when PSES can not access the file in question because something else is using it. The change does catch an IOException: I would like to assume this would catch the error in question above: |
Yes I was working on the assumption that catching an |
System Details
$PSVersionTable
:Issue Description
I am experiencing a problem with... Editor Services Crashing. I use VSCode with git but also all files are stored on OneDrive. So it's possible that when I save OneDrive (I'm guessing here) kicks in at same time that Format on Save (since this error happens on Save) and I believe this is related to that.
Attached Logs
Follow the instructions in the README
about capturing and sending logs.
EditorServices.zip
The text was updated successfully, but these errors were encountered: