Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio not displaying compile time errors in editor

For example, when I write:

string x = "turtle"; x.Go(); 

There is no red squiggly line detecting the absence of the Go() method on String.

Only when I compile does the error get detected.

I've just upgraded to Windows 7, I have Visual Studio 2008.

In my old environment the errors were detected before the actual compile.

Is there a setting that I am missing?

EDIT: "Tools -> Options -> Text Editor -> C# -> Underline errors in the editor" is checked.

I dont have the "Live Semantic" option. Maybe I need to go to SP1?

like image 591
geejay Avatar asked Jan 19 '10 14:01

geejay


People also ask

Why is Visual Studio not showing errors?

Please check the option “Always show error list if build finishes with errors” under Tools > Options > Projects and Solutions > General . Then, delete the hidden . vs folder in the project folder and re-launch your Visual Studio to try again.

How do I see compile errors in Visual Studio?

To get help on a particular diagnostic message in Visual Studio, select it in the Output window and press the F1 key. Visual Studio opens the documentation page for that error, if one exists. You can also use the search tool at the top of the page to find articles about specific errors or warnings.

Why is my VS code not showing errors?

This is because the C/C++ IntelliSense, debugging, and code browsing extension does not know about the current project. Navigate to View | Command Palette, enter and select C/C++ Build and debug active file: Select Project, and then select the correct project that you want to work with.

Why is my IntelliSense not working?

If you find IntelliSense has stopped working, the language service may not be running. Try restarting VS Code and this should solve the issue. If you are still missing IntelliSense features after installing a language extension, open an issue in the repository of the language extension.


1 Answers

You need to turn on the underline errors in the editor and show live semantic errors options in Visual Studio.

These options can be found here:

Tools > Options > Text Editor > C# > Advanced > Editor Help

Edit: You will need to install SP1 for this functionality to work.

like image 104
Andrew Hare Avatar answered Oct 11 '22 01:10

Andrew Hare