MessagePack 3.1 causing issues with ServiceHub.RoslynCodeAnalysisService.exe and build times.
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- csharp
- 領域
- build-system, devtools
調査の方向性
リポジトリのファイルもテストも指定されていません。まず、Visual Studio 17.14.5-7 上の大規模な C# プロジェクトで MessagePack 3.1 を使って問題を再現し、その後、CPU、メモリ、Roslyn の動作、ビルド時間をバージョン 2.5.198 と比較してください。回帰が切り分けられ、互換性のある修正または確認済みの原因が特定されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Bug description
The bug with Roslyn is described here:
https://developercommunity.visualstudio.com/t/Roslyn-code-analysis-using-all-of-my-CPU/10902166.
About the "build time" issue:
The above article refers to several issues with Roslyn not working well with a couple of mentioned Nuget packages. I will also point out that whether it is related or not, build times also increase when Roslyn is not cooperating. The average build time so far for my current project has been over a minute for each attempt.
I discovered today in my attempt to resolve another issue listed in this forum (just below this one) that MessagePack 3.1 is another Nuget Package that leads to this particular issue with Roslyn. Downgrading to 2.5.198 got rid of my issues with Roslyn and lengthy compile/build times. Building took less than 5 seconds after downgrading.
Repro steps
Install version 3.1 of this NuGet package in any large project.
Expected behavior
A normal operation of Visual Studio without coding issues/crashing. Normal build times.
Actual behavior
Coding and navigating through code in Visual Studio while version 3.1 of MessagePack is installed causes 1) Roslyn to both spiral up in memory and cpu usage which 2) eventually leads Visual Studio to crash.
- Build's pause for a lengthy amount of time when compiling assemblies that use MessagePack. I did not attribute this to Version 3.1 previously but after downgrading, this stopped happening and my build went very smoothly.
- Version used:
Visual Studio 17.14.5-7, MessagePack 3.1
Additional context
Add any other context about the problem here.
- 主要言語
- C#
- スター
- 6.8k
- フォーク
- 783
- 平均マージ
- 19時間 47分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MessagePack-CSharp/MessagePack-CSharp のほかの issue
-
SerializableMemberTypeAnalyzer throws AD0001 when any referenced assembly has an assembly-level attribute with a single array argument対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MessagePack-CSharp/MessagePack-CSharp#2324 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MessagePack-CSharp/MessagePack-CSharp#2276 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
MessagePack-CSharp/MessagePack-CSharp#2252 · コメント 3 件 ·
-
dynamic type fails sourcegenerator CS8785 'MessagePackGenerator' failed to generate source.対応中かも @1AbdullahButt が 13 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
MessagePack-CSharp/MessagePack-CSharp#2318 · コメント 2 件 ·
MessagePack-CSharp/MessagePack-CSharp の issue をすべて見る
似ている issue
-
type:task ux
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elsa-workflows/elsa-foundation#5253 ·
メンテナーはふだん 1 日以内に返信