-
Notifications
You must be signed in to change notification settings - Fork 830
Description
When editing F# source files in my solution, I frequently experience a total hang in Visual Studio 2019 / 16.0.0 Preview 4.2, and I have to kill VS. When hanging, the CPU use of VS is close to 0, and memory doesn't seem unreasonable either.
Now for the important details.
Twice when this has happened, I have noticed that it was in connection with manually renaming a function-local let-binding (first time) and function parameter (second time). I started renaming the identifier declaration itself, then went on to rename its use in the function. After changing a few of them, suddenly VS hangs completely with the text "Locating the symbol under the caret..." leftmost in the status bar.
This is reproducible in the sense that I can restart VS and try to do the same thing over again, and VS hangs in exactly the same place again.
If I change the use of the identifier before changing the declaration of the identifier, then VS won't hang.
Unfortunately I am not able to grab this code and put it into a simple solution and reproduce it there. I will have to try to reduce my solution in order to create a repro, and this may take some time since I'm rather busy. Hopefully I can find some time this weekend. (Note to self: rev 1979, DisplayActor.fs, finnSkiftTilstanderForDato, change parameter "dato" to "tid" to reproduce. First case: earlier rev, change "dummies" to reproduce.)
Known workarounds
Edit in some other way, not necessarily outside of VS.
Can e.g. change the usages of the identifier before changing the declaration of the identifier, and then it won't hang.
Related information
Severity: Low, since workaround exists and this doesn't happen too frequently.