fsharp
fsharp copied to clipboard
Code navigation and syntax highlighting in MSVS breaks after switching Git branches
Sometimes (not always, unfortunately) syntax highlighting and navigation breaks in some tabs, not all of them though.
Repro steps
- Have a solution open, multiple tabs open, some of them pinned (not sure if it matters). In my case, a lot of tabs were open.
- Switch branch, I suspect, it's better if it leads to projects or solution being reloaded.
- Hope that you caught the issue this time.
Expected behavior
This doesn't happen, code navigation and highlighting remain intact.
Known workarounds
Reopen Visual Studio.
Related information
- Operating system: Win 10
- .NET Runtime kind: dotnet 6.0
- MSVS version: 17.2.5, but it was definitely present in some of the earlier versions as well.
This is, apparently, different to the project-system bug we've fixed recently (#12982)
I have exactly the same issue in Rider.
- Operating system: Win 11
- .NET Runtime kind: dotnet 6.0
- Rider version: 2022.1.1 & 2022.1.2
I have exactly the same issue in Rider.
- Operating system: Win 11
- .NET Runtime kind: dotnet 6.0
- Rider version: 2022.1.1 & 2022.1.2
Rider should probably be reported to the JB's YouTrack.
@mvsmal Could you file an issue at our tracker and attach logs there, please?
@vzarytovskii @auduchinok Will do.
Just thought since it looks like exactly the same issue it might be somewhere in a shared place (FCS?). Just a wild guess, I have no idea what VS and Rider have in common in regards to F#.
@vzarytovskii @auduchinok Will do.
Just thought since it looks like exactly the same issue it might be somewhere in a shared place (FCS?). Just a wild guess, I have no idea what VS and Rider have in common in regards to F#.
Yeah, in vs it's most likely project system or us not kicking in re-check.
UPD:
Just caught it once more and this time 1 file got stuck so hard, that even reopening VS didn't solve it. Clean/Rebuild didn't solve it. The only thing that did fix it was manual deleting of all the bin
and obj
folders.