dotnet / dotnet/roslyn

Enabling latest-All analyzers hangs build

Open
#74,434 0 comments 0 reactions 0 assignees View on GitHub
Area-Analyzers Bug
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

**Version Used**: NET SDK 8.0.303

**Steps to Reproduce**:

1. Clone https://github.com/sebastienros/parlot
2. Edit `Parlot.csproj` and add `latest-All`
3. Build

**Diagnostic Id**:

**Expected Behavior**: Build completes in reasonable time.

**Actual Behavior**: Build hangs and CPU usage is high. Using lower level like `latest-Recommended` allows compilation to happen fast (in seconds).

/cc @sebastienros

Contributor guide

Open the contributing guide

Research direction

Clone the linked sebastienros/parlot repository and inspect Parlot.csproj, first reproducing the build with AnalysisLevel set to latest-All. Compare it with latest-Recommended and investigate the analyzer execution path responsible for the high CPU usage. Done means the latest-All build completes in reasonable time without regressing the fast lower-level build.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.