Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Red squigglies in all razor pages in latest update (2.28.11) #10351

Closed
lonix1 opened this issue May 8, 2024 · 11 comments
Closed

Red squigglies in all razor pages in latest update (2.28.11) #10351

lonix1 opened this issue May 8, 2024 · 11 comments
Assignees
Labels
area-compiler Umbrella for all compiler issues bug Something isn't working severity-blocking
Milestone

Comments

@lonix1
Copy link

lonix1 commented May 8, 2024

Environment data

dotnet --info output: 7.0.18
VS Code version: 1.89.0 (latest)
C# Extension version: 2.28.11 (latest)

OmniSharp log

n/a

Steps to reproduce

I just updated to the latest extension, offered a few hours ago.

Now all my razor pages show red squigglies, even though they compile correctly and the app runs without error.

The red squigglies make this version completely unusable so I intend to roll back to a previous version.

Expected behavior

No squigglies.

Actual behavior

Squigglies.

Additional context

Here's an example from one of many razor (Foo.cshtml) files:

Ambiguity between 'Pages_Customers_Orders_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper' and 'Pages_Customers_Orders_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper'CS0229
Ambiguity between 'Pages_Customers_Orders_Index.__tagHelperRunner' and 'Pages_Customers_Orders_Index.__tagHelperRunner'CS0229
Ambiguity between 'Pages_Customers_Orders_Index.__tagHelperExecutionContext' and 'Pages_Customers_Orders_Index.__tagHelperExecutionContext'CS0229
Ambiguity between 'Pages_Customers_Orders_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper' and 'Pages_Customers_Orders_Index.__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper'CS0229
@dibarbet dibarbet transferred this issue from dotnet/vscode-csharp May 8, 2024
@phil-allen-msft
Copy link
Contributor

@lonix1 , we're sorry you are running into this. We noticed the same recently and are already working on it, and we'll keep you (and others who run into it) posted here.

@phil-allen-msft phil-allen-msft added bug Something isn't working severity-blocking labels May 8, 2024
@phil-allen-msft phil-allen-msft added this to the 17.11 P2 milestone May 8, 2024
@lonix1
Copy link
Author

lonix1 commented May 9, 2024

@phil-allen-msft NP these things happen. My fault for being an early adopter! :-)

@chsienki chsienki self-assigned this May 9, 2024
@chsienki chsienki added the area-compiler Umbrella for all compiler issues label May 9, 2024
@jeffnyalik
Copy link

Same problem here:
Ambiguity between 'Pages_Movies_index.__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper. Any work around it is so annoying.

@davidwengier
Copy link
Contributor

@jeffnyalik you should be able to roll back to the previous version of the extension in VS Code, using the "Install specific version" dropdown

@jeffnyalik
Copy link

@davidwengier I have rolled back to the previous version and the red squiggly still persist. Here is the extension am using:
https://github.com/KreativJos/csharpextensions

@lonix1
Copy link
Author

lonix1 commented May 14, 2024

I rolled back to the previous version (2.23.15) and the problem disappeared. You probably have a different issue.

@jeffnyalik
Copy link

Thanks @Ionix1 and @davidwengier rolling back C# for Visual Studio Code to version 2.23.15 solved the issue.

@phil-allen-msft
Copy link
Contributor

Update: We understand what caused the issue, we understand why it didn't occur before, and have a plan to fix it. We'll keep you posted here.

ryzngard added a commit that referenced this issue May 16, 2024
Part of fixing #10351

Copied build targets to the razor repo so they can be shipped by us and used in vs code
ryzngard added a commit to dotnet/roslyn that referenced this issue May 17, 2024
@ryzngard
Copy link
Contributor

Fix has been merged into prerelease in vscode with dotnet/vscode-csharp#7134

@lonix1
Copy link
Author

lonix1 commented May 21, 2024

To anyone who lands here, don't upgrade to v2.30.28 either. I guess the fix will be in the version after that.

Stay on 2.23.15 for now.

@lonix1
Copy link
Author

lonix1 commented May 30, 2024

Just installed 2.31.19. Problem RESOLVED! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-compiler Umbrella for all compiler issues bug Something isn't working severity-blocking
Projects
None yet
Development

No branches or pull requests

6 participants