C# is kinda messed up and I cant fix it

so today c# decided to give me this error for no reason

Unhandled exception. System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (0x8007000B)
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

all that happened is that the autofill is not working all the way and is broke, I know it is not a big issue but id like to know how to fix it when someone can help me

I got the same error and can’t fix it.

Are you using a Mac and your project is on an external drive that’s formatted with a filesystem different than HFS ir AFS, by chance?

no im using some janky HP and the project is on its drive also the day befor i posted the origonal post it was fine, but it just broke, thats just my laptop in a nutshell, things work then my laptop says no

Having the same problem was working fine one day but then this happened. Did Anyone find a way to fix this?

EDIT - Looks like it’s a really new problem so I’m guessing we might have to wait a while before this is fixed. I might just move to a visual studio while this is happening.

EDIT - vs Community works fine but vs code does not. So if anyone is stumped at the moment and wants to continue their project a workaround is to set your external script editor to vs community and regenerate your project files. This is not a permanent fix if you wish to use vs code but it works non the less.

so still no solution for vs code ill just re install it maybe that would work

Edit: didn’t work i just switched to visual studio 2022

I have the same problem. I can’t use the vs code

This fixed it for me

If you still need Unity or .NET Framework support, you can set omnisharp.useModernNet to false in your VS Code settings and restart OmniSharp.

https://github.com/OmniSharp/omnisharp-vscode