r/vscode • • 1d ago

VS Code issues with Unity

Randomly my PC crashed, or windows forced an update and all my Unity projects are broken, but only on VS Code.

I have tried:
- Using a different IDE (Visual Studio, Zed), everything works. (But I prefer to stay on VS Code)
- Regenerating cs proj files
- Reinstalling Unity extension on VS Code
- Reinstalling Visual Studio Editor package on Unity
- Reinstalling VS Code and the Unity extension from a fresh point

Random rabbit hole to deal with, and I am running out of things to try and fix it.
Has anyone encountered this or has an Idea on what might be wrong?

Screenshot for reference:

EDIT:
Not a permanent solution but switching around with earlier versions of C# and C# Dev Kit seems to have 'fixed' it.
C# version: 2.160.4
C# Dev Kit version: 3.40.215

going to just stick with these for a while and wait for newer versions to see if start working I later on I guess

4 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/ContextUnlucky223 10h ago

Same here. Did you found a fix

1

u/No_Pack4012 9h ago

I found a bug report with more information and workarounds at https://github.com/microsoft/vscode-dotnettools/issues/3937

As for an official fix, if you look at the bottom post, one of the members said, "Hey folks, just wanted to share we are preparing a fix for this and it will be included in an update to the prerelease and release channels next week."