question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compiler freezes during build and never finishes

See original GitHub issue

Hi everyone,

when trying to build a Fabulous.XamarinForms.Templates the compiler freezes. This happens with Visual Studio 2022 and with msbuild via the commandline.

Repro steps

Requirements from Fabulous.XamarinForms.Templates

Provide the steps required to reproduce the problem:

  1. dotnet new install Fabulous.XamarinForms.Templates
  2. dotnet new fabulous-xf-vswin -n SplitApp
  3. cd SplitApp
  4. msbuild

Expected behavior

The compiler eventually finishes.

Actual behavior

The compiler never finishes. (Had it running for 6.30 hours…)

Known workarounds

Downgrade compiler from v12.0.5 to v12.0.4.

Related information

I already did some research at this Fabulous.XamarinForms ticket https://github.com/fabulous-dev/Fabulous.XamarinForms/issues/20 I even tried git bisect to further pinpoint the issue, but I can not really compile the project with my own compiler due to missing build targets:

"c:\Users\xxx\source\repos\SplitApp\SplitApp.sln" (default target) (1) ->
"c:\Users\xxx\source\repos\SplitApp\SplitApp.Android\SplitApp.Android.fsproj" (default target) (4) ->
  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\FSharp\Microsoft.FSharp
.Targets(4,3): error MSB4019: The imported project "C:\Users\xxx\source\repos\fsharp\artifacts\bin\fscAny\Debug\net47
2\Microsoft.FSharp.targets" was not found. Confirm that the expression in the Import declaration "C:\Users\xxx\source
\repos\fsharp\artifacts\bin\fscAny\Debug\net472\\Microsoft.FSharp.targets" is correct, and that the file exists on disk
. [c:\Users\xxx\source\repos\SplitApp\SplitApp.Android\SplitApp.Android.fsproj]
  • Operating system: W10
  • .NET Runtime kind: MonoAndroid/Xamarin
  • Editing Tools: Visual Studio 2022

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Confusetcommented, Jan 28, 2023

Brilliant. Thanks for the quick help on this. Tried VS2022 17.5.0 Preview 4.0 which also fixes the issue for me 😃

0reactions
auduchinokcommented, Jan 24, 2023

@auduchinok fyi - the repro for the IL attribute cluster reading issue.

Thanks a lot for letting me know about it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio hangs constantly during build
In Visual Studio, go to Tools / Options / Projects & Solutions / Build And Run, then check the MSBuild project build output...
Read more >
Visual Studion 2022 Version 17.6 Hangs on Build\Clean ...
I have upgraded my Visual Studio 2022 to the latest version 17.6.1. Since then when I try to Run\Build project it hangs and...
Read more >
can't stop compile and then hangs
When building a c++ solution, attempts to cancel the build will fail e.g. when you've observed a warning or build error.
Read more >
Visual studio build is stuck · Issue #5178
I am trying to build an .msi file using VisualStudio. The build looks like is finishing (because the logs), but the command is...
Read more >
UE 4.25 / 26 stuck on compiling, never completes
Hi, this error is affecting just a single project on both UE 4.25 and .26. Whenver I try to make a build or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found