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
[BUG] Opening a solution with C# Dev Kit causes dotnet build to ignore .editorconfig analyzer settings #5885
Comments
I already reported this issue in microsoft/vscode-dotnettools#160 but since I feel that this is a pretty serious issue that seems to be ignored I am cross reporting here as well. |
This is still in scope for pre C# Dev Kit GA, but post C# GA. |
I've only been able to reproduce this issue with the C# Dev Kit extension running. |
Hitting this issue as well, reproducing it is not 100% reliable. Running Historically, encountered this also in the old omnisharp-based extension but that's not super relevant now, I think, |
Is work on this currently planned? Unfortunately this is a pretty big blocker for me to use dev kit, as my team have a nontrivial |
Pulling into September opportunistically. |
Any updates here? This is also causing issues for our team as well |
I am no longer able to reproduce this issue, it seems to have been fixed somewhere at some point. @richardstanton wasn't able to reproduce the issue either as of last week and just closed my original issue so I guess I better close this one too. If anyone can confirm they still have this issue with the latest SDKs I can reopen. |
I'm seeing this on macOS w/ Apple Silicon, C# extension version 2.14.8. I've added Enabling omnisharp respects the editorconfig. Unfortunately, I can't use omnisharp though because it tends to hang indefinitely/long time when trying to format code on save. |
I had found that my issue ended up being an issue in my editorconfig so it could be a lack of error messages when this happens causing a lot of issues like this. |
@definitelyokay got the same issue. Enableing omnisharp as a language server solves this issue but i would prefer to be able to use edit: when omnisharp is disabled, is the config able to handle advanced |
Describe the Issue
I have multiple projects that build cleanly with no warnings using
dotnet build
at the CLI.But after having opened them using Visual Studio Code with the C# Dev Kit extension
dotnet build
shows warnings that are clearly disabled in the.editorconfig
file. Even after exiting Visual Studio Code I have to kill alldotnet.exe
processes to makedotnet build
build properly again.Steps To Reproduce
.editorconfig
, for exampledotnet_diagnostic.CA1040.severity = none
dotnet build
at the CLIExpected Behavior
Disabled warnings should not be displayed by
dotnet build
.Environment Information
Workaround
Set the environment variable
MSBUILDDISABLENODEREUSE=1
, this does makes builds slower but they'll be correct.The text was updated successfully, but these errors were encountered: