Open vsfeedback opened 11 months ago
Similar to https://github.com/dotnet/roslyn/issues/70159. Another case where creating a DocCommentId is just throwing.
@dotnet/roslyn-compiler to take a look. We're just taking a method symbol, passed back from the compiler, as an argument to DocumentationCommentId.CreateDeclarationId. All that API says is:
/// <summary>
/// Creates an id string used by external documentation comment files to identify declarations
/// of types, namespaces, methods, properties, etc.
/// </summary>
I would not expect any symbol to fail, esp. not because of a dynamic type symbol. I think the issue is:
public override bool VisitMethod(IMethodSymbol symbol)
{
if (this.Visit(symbol.ContainingSymbol))
{
which likely needs to be:
if (this.GetReferenceGenerator(symbol).Visit(symbol.ContainingSymbol)
(or somethign like that).
@jcouv can you triage this?
@CyrusNajmabadi Could you create a complete standalone repro? In order to answer the question, we need to have a clear understanding of the scenario.
@AlekseyTs https://github.com/dotnet/roslyn/issues/70159 has a repo for the pointer case. My guess is that it's similar here. Maybe a synthesized compiler operator dynamic methods?
@AlekseyTs @CyrusNajmabadi we now have 3 separate reports of this. We also have at least 68K hits in telemetry (AB#1774410)
In order to speed-up the investigation, could IDE team create a stand alone repro in the form of a compiler API unit-test? Basically the repro I am looking for is something like: here is a compilation, here is the API call that behaves in an unexpected way.
This issue has been moved from a ticket on Developer Community.
[severity:It bothers me. A fix would be nice] I don't use document outline - don't even know what it does - but I frequently see a status message at the top of VS indicating that it failed with this stack trace:
VS 17.7.5, but I've been seeing this for many versions - maybe as long as since VS 2022 first shipped.
Project is a C# class library (MSTest unit tests), .NET Framework 4.8 target.
Original Comments
Feedback Bot on 10/15/2023, 10:08 PM:
(private comment, text removed)
Chaojie Yang [MSFT] on 10/15/2023, 11:51 PM:
(private comment, text removed)
Feedback Bot on 10/25/2023, 01:33 AM:
(private comment, text removed)
Feedback Bot on 11/13/2023, 09:49 AM:
(private comment, text removed)
Feedback Bot on 11/13/2023, 09:52 AM:
(private comment, text removed)
Original Solutions
Nicole Hu [MSFT] solved on 11/8/2023, 11:09 PM, 0 votes:
We are unable to investigate this issue further without the additional information requested. If you are able to provide more information, you can request the issue being reactivate below. See our guidelines for further information about our process.