Open jtsom opened 3 months ago
Tagging @phil-allen-msft since this seems blocking.
This doesn't look related to razor at all, it's the C# Dev Kit extension reporting an error.
Are you seeing any impact on features from this? This doesn't appear for me locally but the current pre-release versions are higher than the ones used.
@ryzngard Are you seeing any impact on features from this?
See #1371 - where I'm also getting this.
In addition to a lot of bogus errors regarding unkown types as reported in that issue, I'm also stuck having to filter out approx 500 non-existent errors from *.cshtml__virtual.cs
files generated by Razor (i.e. plain old MVC Razor, not Blazor). So the two may in fact be connected.
@ryzngard Are you seeing any impact on features from this?
See #1371 - where I'm also getting this. In addition to a lot of bogus errors regarding unkown types as reported in that issue, I'm also stuck having to filter out approx 500 non-existent errors from
*.cshtml__virtual.cs
files generated by Razor (i.e. plain old MVC Razor, not Blazor). So the two may in fact be connected.
Agreed. This issue with the non-existent errors I reported months ago and it was punted from the VSCode C# extension to the Razor group, and there's been nothing done. (As far as I could tell, the problem began when the C# extension was changed to being built with the .Net 9 preview SDK. Installing an older version of the C# extension (I forget which version, but may be back to 2.32.16?) cleared up the error. You can see, looking at the release notes, the first version built with .Net 9, is when it broke.
@ryzngard, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.
The errors in this issue are if you open the developer console for vs code, not errors reported in the "Problems" output.
@rjgotten I didn't see cshtml mentioned in https://github.com/microsoft/vscode-dotnettools/issues/1371 . Are you seeing these problems only in MVC Razor?
@jtsom I'm assuming you're talking about https://github.com/dotnet/razor/issues/10505 ?
The errors in this issue are if you open the developer console for vs code, not errors reported in the "Problems" output.
@rjgotten I didn't see cshtml mentioned in #1371 . Are you seeing these problems only in MVC Razor?
@jtsom I'm assuming you're talking about dotnet/razor#10505 ?
I hadn't gotten round to filing the *.cshtml__virtual.cs
specific errors.
But those are only in the range of ~500 or so specific to classes being used in .cshtml
razor files.
Whereas the full number of 20K+ bogus errors wrt missing types largely comes from throughout the entire codebase mentioned in #1371 - i.e. also regular old C# 'library' projects.
dotnet/razor#10505 appears to also exactly be what I'm getting in #1371. I'm going to update that issue to make mention as well.
Describe the Issue
When selecting any Razor file in a .Net 8 Blazor app, there is an error reported in the console:
Steps To Reproduce
Expected Behavior
No Errors.
Environment Information
C# Extension: v2.41.26 (pre-release) C# Dev Kit: v1.9.53 (pre-release)