Open tannertaylor opened 3 years ago
YES I have the same issues. Since today intellisense in Blazor files is completely broken and does no longer work!
I had the same issue. Doesn't go away no matter what you do. Then I downgraded one version to 1.23.11. I recommend you do this as well. I don't have those intellisense warnings anymore.
I did this already, thank you. The problems with omnisharp / razor are getting worse... I hope they fix it with the next release
Am Mi., 7. Juli 2021 um 06:05 Uhr schrieb Jaspreet Sandhu < @.***>:
I had the same issue. Doesn't go away no matter what you do. Then I downgraded one version to 1.23.11. I recommend you do this as well. I don't have those intellisense warnings anymore.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OmniSharp/omnisharp-vscode/issues/4635#issuecomment-875257887, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJEDNVILCSCZNASVVHDXH3TWPHBZANCNFSM47TPU5WA .
Issue Description
Invalid Intellisense warnings/errors in a brand new Blazor WASM project. In particular, it doesn't recognize the
App
type inProgram.cs
and it doesn't recognize the components inApp.razor
. In practice, however, the application compiles and runs perfectly.Steps to Reproduce
dotnet new blazorwasm -o project --pwa
code .\project
Program.cs
,App.razor
, and_Imports.razor
.Expected Behavior
I'd expect a brand new project to show no errors.
Actual Behavior
Intellisense shows invalid warnings and errors and the OmniSharp log shows the same error.
Logs
OmniSharp log
C# log
None
Environment information
VSCode version: 1.57.1 C# Extension: 1.23.12
Dotnet Information
.NET SDK (reflecting any global.json): Version: 5.0.202 Commit: db7cc87d51 Runtime Environment: OS Name: Windows OS Version: 10.0.19043 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\5.0.202\ Host (useful for support): Version: 5.0.5 Commit: 2f740adc14 .NET SDKs installed: 5.0.202 [C:\Program Files\dotnet\sdk] .NET runtimes installed: Microsoft.AspNetCore.All 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |blazorwasm-companion|ms-dotnettools|1.1.0| |csharp|ms-dotnettools|1.23.12| |csharpextensions|jchannon|1.3.1| |powershell|ms-vscode|2021.6.2| |prettify-json|mohsen1|0.0.3| |remote-containers|ms-vscode-remote|0.183.0| |remote-wsl|ms-vscode-remote|0.56.5| |TabOut|albert|0.2.0| |vscode-docker|ms-azuretools|1.14.0| |vscode-dotnet-runtime|ms-dotnettools|1.1.0| |vscode-icons|vscode-icons-team|11.5.0| |vscodeintellicode|VisualStudioExptTeam|1.2.14|;