error message does not identify source

オープン
#383 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
cli

調査の方向性

Issue に表示されているクライアント/デーモンプロトコルの正確な警告を Rust ソースから検索し、その後、近くにあるエラー報告コードと関連するテストを調べます。警告が shpool を発生元として示し、プロトコルのバージョンと再起動の案内を維持したうえで、関連するテストが引き続き通れば完了です。

索引モデルが issue の本文から書いたものです。

説明

AI Policy: acknowledged

What happened
When I connect into my remote host, I see:
warning: client protocol ("0.4.1") is newer than daemon protocol (version "0.3.5"), try restarting your daemon

This is apparently #377 , originating from shpool. but I am not here to report that there is a mismatch. Instead I am reporting that the error message is not helpful. there is no indication that shpool is the source of this message. because I am using shpool through another layer (an internal tool called "roadwarrior" invokes it), and because my shell is starting up so it runs through .bash_profile and so on, it was not clear to me, immediately, what program or tool was issuing this message.

What I expected to happen
Something like
shpool warning: client protocol ("0.4.1") is newer than daemon protocol (version "0.3.5"), try restarting your daemon

or

warning: shpool client protocol ("0.4.1") is newer than daemon protocol (version "0.3.5"), try restarting your daemon

More info
I restarted the shpool daemon and the message went away.

I am not sure WHY shpool needed to be restarted. My machine had just restarted two days ago as part of periodic maintenance. I had the latest shpool already. Anyway I'm not interested in spending time to diagnose that.

The main point here is to suggest the message is less than 100% helpful when shpool is used in this way.

Version info

$ shpool version
shpool 0.10.2 (cl/929545807)
主要言語
Rust
スター
2k
フォーク
70
平均マージ
2日 3時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

shell-pool/shpool のほかの issue

shell-pool/shpool の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。