Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Configuration binding source generator throws ArgumentOutOfRangeException on macOS and Linux #89014

Closed

Description

@martincostello

Description

When using the Configuration binding source generator to compile and test an application on Linux, macOS and Windows the application fails to compile on Linux and macOS.

Exactly what is causing this I don't know, but I can reproduce it with three different repositories.

Logs for one such example can be found here.

My own computer runs Windows, so I didn't find this issue until I pushed my local changes which were working to GitHub and the CI ran.

Reproduction Steps

  1. Clone and checkout any of the following commits:
  2. Run build.ps1.

Expected behavior

The applications compile and the tests pass.

Actual behavior

The application fails to compile on macOS and Linux with the following exception:

CSC : error CS8785: Generator 'ConfigurationBindingGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'Specified argument was out of the range of valid values. (Parameter 'value')'

Regression?

No.

Known Workarounds

None.

Configuration

.NET SDK 8.0.100-preview.6.23330.14

Other information

No response

Activity

  1. ghost added
    needs-area-label
    on Jul 17, 2023
  2. ghost added
    untriaged
    on Jul 17, 2023
  3. added and removed
    needs-area-label
    on Jul 17, 2023
  4. vcsjones commented on Jul 17, 2023

    @vcsjones
    Member

    Could be related to #88918

  5. added this to the 8.0.0 milestone on Jul 17, 2023
  6. ghost removed
    untriaged
    on Jul 17, 2023
  7. added
    untriaged
    source-generator
    on Jul 17, 2023
  8. ghost removed
    untriaged
    on Jul 17, 2023
  9. layomia commented on Jul 17, 2023

    @layomia
    Contributor

    Can you try the suggestion here #88918 (comment)?

  10. martincostello commented on Jul 18, 2023

    @martincostello
    MemberAuthor

    Can you try the suggestion here #88918 (comment)?

    Still fails, but a slightly different error message:

    CSC : error CS8785: Generator 'ConfigurationBindingGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'repeatCount ('-4') must be a non-negative value. (Parameter 'repeatCount') [/home/runner/work/apple-fitness-workout-mapper/apple-fitness-workout-mapper/src/AppleFitnessWorkoutMapper/AppleFitnessWorkoutMapper.csproj]
    
  11. layomia commented on Jul 21, 2023

    @layomia
    Contributor

    Dup of #88918, fixed by #89150. Please circle back if you still face issues here.

  12. ghost locked as resolved and limited conversation to collaborators on Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Extensions-Configurationsource-generator

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions