Open vsfeedback opened 3 years ago
You have an editorconfig value for csharp_using_directive_placement
that is not inside_namespace
or outside_namespace
.
@sharwell @jinujoseph do we have a tracking bug about making these errors easier to diagnose? I would like to dupe this against that. It's def a probem that we just throw new NotSupportedException()
without any sort of clear message to the user as to what the issue is.
@JoeRobich thoughts ?
We should remove throwing NotSupported when parsing the users editorconfig value string. Other parsing methods return the @default
value when the string contains an unexpected value.
@CyrusNajmabadi We have #19055 and #37347
Closing out as covered by other analyzers.
From #67299:
In the above case, the user has the following in their .editorconfig file:
# usings outside namespace csharp_using_directive_placement = true
This is producing an exception in the following parsing code:
The parsing code should be updated to provide a more detailed (actionable) error message for users.
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work] Hi, when I run a CodeAnalysis on my . Net5 solution I see 72 warnings in the Error List (I think one for every file). All the warnings are AD0001:
Original Comments
(no comments)
Original Solutions
(no solutions)