-
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
Razor ist not working with any constellation of extensions #9292
Comments
Thanks for the report @Kokujou. Could you let us know what version of the C# extension you're using, and whehter you have the C# Dev Kit installed too? The red component tags was fixed in dotnet/vscode-csharp#6304 but I'm not sure if that has been released in a version yet. If you can include the contents of the Razor Log output it might help us track down what is going on, and should also tell us which Razor server version you have. |
i used multiple and i also tried the c# dev kit, both in the current release version and the pre-release version the only part in the razor logs that seemed relevant to me is the formatting error that i already quoted: |
@Kokujou does this happen in every Blazor project you work with, or just a particular one? Are there any repro steps you can share to help diagnose issues, and/or a sample project you can provide us? |
Thanks for the information @Kokujou! I believe colorization issues you're seeing are another instance of #9336. I'll see if we can get that work scheduled on our roadmap.
Regarding broken formatting, do you have this option checked? We were previously seeing issues with formatting not applying properly when this option was disabled. Sharing the project would be helpful for diagnosing issues. Even if it's not in our scope, we can route the bugs to whichever team owns the specific area. |
in this case feel free to have a look on this project, i'm currently playing around with migrating a javascript application to blazor hybrid https://github.com/Kokujou/ObscuritasMediaManager/tree/master/ObscuritasMediaManager.Client in the default configuration of vscode, i already see the first issues in the file pages/MusicPlaylistPage.razor I don't know if i'm missing something that the formatting is not getting applied even when i use F1 -> Format Document (Forced), in the other project that i cannot share at least that works, but i'm getting the error documented above, but as i said that might be related to my current experimental state. i also see errors like: "Trying to create DocumentContext for razor/mapToDocumentRanges, with no project context," maybe this is saying you something? |
I'm sorry this report is going to be messy because i don't even know where to start...
i played around with preview versions and omnisharp on/off and stuff and here are some things i noticed:
Message: Specified argument was out of the range of valid values. (Parameter 'Range end line 43 matches or exceeds SourceText boundary 43.')
i'm using blazor with .razor pages and codebehind, i also have both razor and c# global imports.
so if anyone got this to work like expected, please tell me what configuration you used so i can get it too
The text was updated successfully, but these errors were encountered: