-
Notifications
You must be signed in to change notification settings - Fork 199
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
MudBlazor on MacOS arm64 does not recognize tags resulting in RZ10012 in many places #9881
Comments
Thanks @petrhank . When you say custom components, are they contained within a separate project or the same project? If possible, can you share a sample solution? |
@ryzngard I have the same issue. I have to use omnisharp to have a usable problems pane.
|
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. Please see our Issue Management Policies for more information. |
@ryzngard bump to keep issue open |
Thanks @mikes-gh , I'll take the needs more info label off so I can verify the repro |
@mikes-gh I was able to reproduce this at startup, but it eventually went away as project information populated. I'm using the following versions: C#: v2.18.16 Essentially at startup I would see the "Problems" fluctuate from 0 to 1k+ over and over again, but as the project loaded, nuget restore happened, and builds happened, eventually I got to a steady state. I was verifying by opening Let me know if this matches your experience, if you have more details on what to check, or if the configuration is different than yours. |
Yes, it takes a very long time and doesn't always reliably finish. Heres my current problems page on MudBlazor that has been open all night. There are no compile warnings |
@ryzngard I see this has gone stale. Is there anything else you need. |
Thanks for the ping @mikes-gh. I believe this issue has been resolved and not shipped, so I'm waiting for our next version of the C# extension to verify it's resolved. Testing locally from dotnet/vscode-csharp resolved the issue for me. #10007 is the issue that was fixed, and I believe MudBlazor projects would suffer heavily. Once we have shipped I'll check in with you to see if it's resolved before closing. |
OK great. I did some extension authoring a while back so I'll see if I can run the extension from source. What branch would it be. |
You can check main for https://github.com/dotnet/vscode-csharp . It should be straight forward, but make sure you're using node v18. The steps are roughly below
|
Thanks @ryzngard will 20.11.1 LTS be ok |
Unfortunately not. There's a known issue about that |
Hi ! I'm facing the same issue with vscode, on a blazor project using mudblazor as well. I have more than 800 "problems" / warnings on razor files (RZ10012, CS0013) But enabling Omnisharp doesn't fix my case. I just can't develop with vscode anymore for now, obliged to switch back to Visual Studio. Do you guys know if there is a workaround ? |
You have to disable C# Dev Kit in order for OmniSharp to work after changing the setting. Hope this helps |
Yep, it's better, thanks a lot ! |
@mikes-gh version |
@ryzngard I have |
Thank you for testing! I'll take a look sometime this week on my mac and see if I can get the current repro. I wasn't able to immediately get a local repro with the latest so it will take a bit more digging. |
Ah, please file a separate issue for windows. With a repro if you have it and can share |
@ryzngard this issue was filed under windows. Maybe this is a cross platform issue? |
@mikes-gh it's been an unfortunate set of issues that result in similar behavior, but all root caused differently. Right now I'm using this to track the mac OS issue with the mudblazor project. |
I'll update the title, but I spent time this afternoon debugging. I hit a few issues with building the razor repo on mac arm, so added some fixes there. I noticed after a while the c# code eventually works. One key thing to look for is the presence of a I'll continue to dig into this time permitting, but wanted to give a short update. As of now for the repro I have MudBlazor functions on Windows but not MacOS. I may do a sanity check on linux over the weekend to see if it might have a related issue. |
@ryzngard Is there anything I can do testing wise to help? |
Still same problem using Staying on Omnisharp |
@mikes-gh we definitely still have issues here, and a larger architecture change happening that will reduce problems in this area. That said, I'm still looking for ways to make targeted fixes. Thank you for your diligence reporting and patience 🙏 |
@Jad-EL yes, with a repro project if you can. |
Unfortunately It's hard to repro because the issue only occurs with big projects, when there is a lot of components inside. But I will create the ticket anyway. Thanks for your work. |
Working on a Blazor WASM with MudBlazor, on a macOS arm64. I found that if I create a new .razor file in the same folder than the non resolved component, it fixes the issue :) |
Reliability should be resolved with I tested multiple times with different projects and after "settling" things were reliably working. If you are still hitting issues please let me know and I'll reopen. Thanks everyone for your input! |
@ryzngard For me its not fixed. Using head of MudBlazor After opening a few files all problems disappear. As if the analysers just stopped working. |
@mikes-gh just to double check, Mac arm64? Cleaning out bin / obj should no longer change anything but it's always worth a try. If opening files fixes it I believe we have a separate issue for that. I'm currently on holiday though so and don't have the easiest way to find it. Definitely let me know if anything else ends up resolving the issue! If you're reliably seeing issues filing a new feedback might get more traction. Especially if opening files fixes because that seems to be a different root cause. |
@ryzngard Unfortunately whilst opening files does cause more analysis RZ10012 remains even after leaving the solution open for many minutes. This is using Mac arm64. |
Perhaps you have a repro where it works so I can follow step by step. |
I've consistently experience the same issue on MacOS arm. Attached a minimum repo with a blazor project with class library. It looks like it is dependent on the number of components declared in the library, in this sample there are 20 components in lib1/components The symptoms start after the plugin reports an error of the type: See |
I was testing with MudBlazor on latest dev. @tn-5 that looks like an issue with C# Dev Kit based on the stack
I would file a new issue using |
@ryzngard On Windows 11 / arm I get the same RZ10012 error on components with the sample project. On that platform it does not give the dev kit exception though - just the RZ10012 warning. |
@ryzngard I also see the same issue on codespaces (Linux?) The issue is this one that is now closed. |
Thanks @mikes-gh for checking. I'll take a look soon. It happening in codespaces is helpful information |
We can't load our large blazor project either. This is very sad since Microsoft dropped support for vs for Mac. The errors don't disappear also after more than 10 minutes waiting. |
On my mac with dotnet sdk 8.0.400 I was able to get MudBlazor components loaded. This happened relatively fast (within about 2 minutes) on my M1 Max I did notice that MudBlazor.Docs took a bit longer to work. I also hit #10654 which I'll be investigating next. #10600 is being used to find ways to improve perf here. Testing in codespaces it looks like the init never gets sent from the extension, so server setup never happened. That seems to be a completely different issue #10735 |
Type: Bug
Issue Description
When trying to work on our Blazor WASM project in VS Code, I get RZ10012 error highlited on every custom component in Razor pages. It could do something with LSP, because when I select "Use Omnisharp" in C# extension settings, the problem goes away.
It works as expected in every other IDE.
Logs
extensions log.zip
Environment information
VSCode version: 1.85.2
C# Extension: 2.15.30
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 8.0.100 Commit: 57efcf1350 Workload version: 8.0.100-manifests.8d38d0ccRuntime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.100\
.NET workloads installed:
Workload version: 8.0.100-manifests.8d38d0cc
[wasm-tools-net6]
Installation Source: VS 17.8.34322.80
Manifest Version: 8.0.0/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.workload.mono.toolchain.net6\8.0.0\WorkloadManifest.json
Install Type: Msi
[wasm-tools]
Installation Source: VS 17.8.34322.80
Manifest Version: 8.0.0/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.workload.mono.toolchain.current\8.0.0\WorkloadManifest.json
Install Type: Msi
[maui-windows]
Installation Source: VS 17.8.34322.80
Manifest Version: 8.0.3/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.3\WorkloadManifest.json
Install Type: Msi
[maccatalyst]
Installation Source: VS 17.8.34322.80
Manifest Version: 17.0.8478/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maccatalyst\17.0.8478\WorkloadManifest.json
Install Type: Msi
[ios]
Installation Source: VS 17.8.34322.80
Manifest Version: 17.0.8478/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.ios\17.0.8478\WorkloadManifest.json
Install Type: Msi
[android]
Installation Source: VS 17.8.34322.80
Manifest Version: 34.0.43/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.android\34.0.43\WorkloadManifest.json
Install Type: Msi
Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71
.NET SDKs installed:
8.0.100 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
Extension version: 2.15.30
VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: