Closed random-pixels closed 1 year ago
My colleagues and i are experiencing the same issue. We rolled back to version 1.25.2 of the extension which can format razor pages properly.
As the update to v1.25.4 came close to our migration to .Net 7 we are not sure what exactly caused the issue.
(probably a duplicate of #5561)
(probably a duplicate of #5561)
I mentioned in my original post that it could be related to #5561. Definitely not a duplicate, as steps to reproduce, symptoms, and actual error message are different.
I confirm the presence of this bug. Had to roll back to v1.25.2.
Closing as dupe of https://github.com/OmniSharp/omnisharp-vscode/issues/5561
Issue Description
When editing a Razor document, get constant popups "Request textDocument/onTypeFormatting failed." When I click the "Go to output" button, I see the following errors logged:
Steps to Reproduce
With Csharp extension 1.25.4 installed, create a new MVC Web Application. Then just edit the Index.cshtml file by typing or pasting some code in. Any keypress results in the popup.
Expected Behavior
No errors when typing
Actual Behavior
Error when typing
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.74.3 C# Extension: 1.25.4
Mono Information
There is a problem with running OmniSharp on mono: Error: Unable to find Mono. Ensure that Mono's '/bin' folder is added to your environment's PATH variable.Dotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.113 Commit: 4a23b50f97 Runtime Environment: OS Name: linuxmint OS Version: 21.1 OS Platform: Linux RID: ubuntu.22.04-x64 Base Path: /usr/lib/dotnet/sdk/6.0.113/ global.json file: Not found Host: Version: 6.0.13 Architecture: x64 Commit: 1af80ba017 .NET SDKs installed: 6.0.113 [/usr/lib/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.13 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.13 [/usr/lib/dotnet/shared/Microsoft.NETCore.App] Download .NET: https://aka.ms/dotnet-download Learn about .NET Runtimes and SDKs: https://aka.ms/dotnet/runtimes-sdk-infoVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |brackets-light-pro|fehey|0.4.6| |cpptools-themes|ms-vscode|2.0.0| |csharp|ms-dotnettools|1.25.4| |dotnet-test-explorer|formulahendry|0.7.8| |github-plus-theme|thenikso|1.4.3| |gitlens|eamodio|13.2.0| |isort|ms-python|2022.8.0| |jupyter|ms-toolsai|2022.11.1003412109| |jupyter-keymap|ms-toolsai|1.0.0| |jupyter-renderers|ms-toolsai|1.0.14| |php-debug|xdebug|1.31.0| |python|ms-python|2022.20.2| |ruby|rebornix|0.28.1| |sqltools|mtxr|0.27.1| |sqltools-driver-mysql|mtxr|0.5.1| |vscode-icon-theme|jtlowe|1.6.6| |vscode-icons|vscode-icons-team|12.2.0| |vscode-intelephense-client|bmewburn|1.9.4| |vscode-jupyter-cell-tags|ms-toolsai|0.1.6| |vscode-jupyter-slideshow|ms-toolsai|0.1.5| |vscode-pull-request-github|GitHub|0.56.0| |vscode-pylance|ms-python|2023.2.10| |vscode-ruby|wingrunr21|0.28.0|;Additional Information
May be related to https://github.com/OmniSharp/omnisharp-vscode/issues/5561