Skip to content
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

Dotnet build hangs at CoreCompile when specific NuGet package referenced #76531

Open
Forgind opened this issue Dec 20, 2024 · 3 comments
Open
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@Forgind
Copy link
Member

Forgind commented Dec 20, 2024


Issue moved from dotnet/sdk#45036


From @fabianoliver on Friday, November 22, 2024 10:10:28 AM

Describe the bug

When using SDK 9.0.100, building any project that references "ReactiveUI.SourceGenerations" version 1.1.31 hangs forever at the "CoreCompile" stage. Building the same project using SDK 8.0.100 works well.

Please feel free to close this issue if you reckon the package itself is at fault of course. I'm raising this here though as I would think that building this with a different SDK version "should" not be able to break the referenced package / source generator in any way?

To Reproduce

Build an empty project with the following csproj

<PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
    <PackageReference Include="ReactiveUI.SourceGenerators" Version="1.1.31" PrivateAssets="all" />
</ItemGroup>
@Forgind
Copy link
Member Author

Forgind commented Dec 20, 2024

I'm not 100% sure what's going on here, as I don't understand how adding a PackageReference could possibly make something hang, but I don't see how it's connected to the SDK, so since it's hanging in the CoreCompile stage, I'm tentatively moving it to roslyn for a first look.

@CyrusNajmabadi
Copy link
Member

Presumably an SG is running and has an infinite loop or something (or just takes a really really long time). Best is to open this in a profiler or debugger and see what stacks it is in when it appears to not be making progress.

@Youssef1313
Copy link
Member

Youssef1313 commented Dec 25, 2024

That's very likely an issue on https://github.com/reactiveui/ReactiveUI.SourceGenerators

@fabianoliver I can't repro by simply adding the package reference to a blank console app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

3 participants