Improve error message when library metadata request fails
まだ誰も着手していません。
評価
調査の方向性
No file or test is named. Start by tracing the library-resolution path that produces "Could not resolve the library" and compare failures for library names, versions, and metadata requests. Done means the error identifies the failed portion or cause instead of using the same generic message for every failure.
索引モデルが issue の本文から書いたものです。
説明
This issue is dedicated to one of the follow-up items in this comment: https://github.com/aspnet/LibraryManager/issues/370#issuecomment-637953775
Functional impact
Error is imprecise about the cause of failure and may lead to user confusion
Minimal repro steps
Happens randomly, no reliable repro
When downloading a library for the first time, if one of the metadata requests fails we get a generic "Could not resolve the library foo@1.2.3".
Expected result
Better indicate the cause of failure or the portion which failed, some ideas:
- Failed to retrieve file metadata for foo@1.2.3
- Failed to retrieve library metadata for foo@1.2.3. Received HTTP response 418.
- Unrecognized library name "foo"
- Unrecognized library version for "foo@1.2.3"
Actual result
All issues resolving the library and its metadata get a "Could not resolve the library foo@1.2.3" message.
- 主要言語
- C#
- スター
- 486
- フォーク
- 91
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aspnet/LibraryManager のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
aspnet/LibraryManager#824 · コメント 1 件 · リアクション 3 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
aspnet/LibraryManager#804 · リアクション 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 48/100
aspnet/LibraryManager#829 · コメント 1 件 · リアクション 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
aspnet/LibraryManager#820 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aspnet/LibraryManager#808 · コメント 5 件 ·
aspnet/LibraryManager の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
Type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/arrow-adbc#4809 ·
-
type/automation type/tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/vscode-azurefunctions#5197 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
microsoft/microsoft-ui-reactor#1274 ·