Skip to content

Missing documentation for CS8784 and CS8785 #47860

@poizan42

Description

@poizan42

Type of issue

Missing information

Description

The following warnings about errors from source generators are missing from the list:

  • CS8784 (WRN_GeneratorFailedDuringInitialization): Generator '{0}' failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type '{1}' with message '{2}'.
    {3}
  • CS8785 (WRN_GeneratorFailedDuringGeneration): Generator '{0}' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type '{1}' with message '{2}'.
    {3}

These are specified at https://github.com/dotnet/roslyn/blob/93efd6df1781488d8781f2f9c89d184dcd54ef0b/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs#L1794-L1795 with their en-US resources defined at https://github.com/dotnet/roslyn/blob/93efd6df1781488d8781f2f9c89d184dcd54ef0b/src/Compilers/CSharp/Portable/CSharpResources.resx#L6481-L6496

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/source-generator-errors

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/compiler-messages/source-generator-errors.md

Document Version Independent Id

845fd50d-3b2c-033f-05c1-0f9b37d4c512

Platform Id

f7615485-d530-c684-f92a-009bff109bed

Article author

@BillWagner

Metadata

  • ID: 96a59ed5-0be2-639f-bd02-4261709f2faf
  • PlatformId: f7615485-d530-c684-f92a-009bff109bed
  • Service: dotnet-csharp
  • Sub-service: errors-warnings

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions