Strange using TMPro and using UnityEngine.UI errors

Hey yall, so im basically done with the demo for my project and of course its giving me the strangest error (its been giving me different random ones all day).

so the current problem, is that in visual studio, the using statments mentioned in title (TMPro and UnityEngine.UI) have red squiggles under them. in turn, all the references mad e to that (TextMeshProUGUI and Button are some examples) also have the red squigglys.

it gets weird because although this should break alot of my scripts, not allowing it to compile, however, that does not happen. The game appears to be running fine, including all the ui that should be broken. to further test out this error i added a “Button button” in the script, again it gets the red squiggly under the Button class, but still runs fine.

has anyone had this problem and figured it out?

It may be useful to note some of the prior bugs that ive been getting to narrow down the search. keep in mind i see these errors anymore. so first my computer crashed while i was working and it gave me a package manager error. after i restarted the game worked fine, but then as i renamed a script, it gave me a few empty errors (timestamp but the rest was empty).

Then it’s almost certainly just a case of Visual Studio drinking too much and ending up in the gutter. It is Friday the Thirteenth after all.

This may help you with intellisense and possibly other Visual Studio integration problems:

Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.

https://discussions.unity.com/t/778503

Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button

Also, this: https://discussions.unity.com/t/805330/7

for sure, i forgot it is fri the 13, would explain the crazy different 6 errors in different places today! so i’m pretty sure it fixed itself about 4 hours later, but hopefully the crazy random errors stopped there

thanks for the reply, i’ll keep it in mind for any future errors!