error message does not identify source

Aperta
#383 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Cerca nel codice sorgente Rust l'avviso esatto del protocollo client/daemon mostrato nell'issue, quindi esamina il codice vicino relativo alla segnalazione degli errori e gli eventuali test correlati. Il lavoro è completato quando l'avviso identifica shpool come propria origine, mantenendo le versioni del protocollo e le istruzioni per il riavvio, e i test rilevanti continuano a superare l'esecuzione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)
Lingua principale
Rust
Stelle
2k
Fork
70
Merge medio
2g 3h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di shell-pool/shpool

Tutte le issue di shell-pool/shpool

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.