fish_tree
fish_tree

Reputation: 401

vs 2015 cannot go to metadata definition and it shows one or more errors occurred

It works when I click go to definition on the code that exists but it doesn't work if I click one in the metadata such as String, List.
Pressing ALT+F12, a blank page appears.
Pressing F12 shows:

one or more errors occurred

enter image description here

Upvotes: 21

Views: 4394

Answers (1)

Zoey
Zoey

Reputation: 2461

This is a bug being tracked at Microsoft's bug tracker as well as on the Roslyn issue tracker. It is caused by Microsoft only testing C# with space-based indentation.

The so-called "Workaround" is miserable, but still, it is to change your settings from using tabs to spaces.

There are a plethora of other issues (Namely with the C# Auto Formatter that cause tab-based work to be terrible in VS2015 until a patch comes out.

Edit:

There is now an extension available on VS Gallery, GoToDefinition Fix, which will serve well as a temporary fix for this issue.

Edit:

Visual Studio 2015 Update 1 CTP and RC variants both fix this issue, but the RC is the latest and should be installed instead of CTP if you are running it. Many formatting issues are addressed by these updates, and tabs are, basically, usable again.

Upvotes: 24

Related Questions