fix(cli): output left over from #89 — doctor tables, the describe() format, multi-line errors
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Read the CLI paths for doctor, doctor --config, _say/_ok/_fail, and _reported, then compare Microscope.describe() with the formatting used by smc stage get. Check how smc profiles handles multi-line errors. Done means the listed output and error cases follow the stated rules; run the relevant CLI tests, though none are named in the issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened
These were left over from the review of #89. Each was measured on the PR's build with the demo devices unless stated otherwise.
doctor's tables.doctorkeeps its Micro-Manager table and its--configtable, and both still go through rich markup and wrap at 80 columns when redirected (FM-36, FM-37).smc doctor | catsplits the install path over two lines. A.cfglabel such asLaser [488]loses[488]indoctor --config(read from the code). The--configpath also runs outside_reported, so aRuntimeErrorfromgetXYPosition()prints a traceback.- Position format.
Microscope.describe(), as printed bysmc doctor, showsXY (-0.0, -0.0) µm: one decimal, and-0is not normalised.smc stage getprintsXY (0.00, 0.00) µm. Design §9 says positions have two decimals. - Multi-line errors. A
HardwareErrorwhose message has several lines prints several lines after its✗. Examples:No profile named …with its search paths, or an invalid profile with one line per problem. §9 says every error is one line.
What should have happened
- Every line
doctorprints goes through_say/_ok/_fail, and--configerrors go through_reported. describe()uses the CLI's position format (two decimals, no-0), ordoctorformats the state itself.- For multi-line errors, choose one: join the lines as
smc profilesdoes, or keep the list and indent it under the✗line.
Questions for the design session
The 2026-09-30 plan on #11 decided these, so they are not bugs. A later revision of §9 should look at them again:
✗lines go to stdout, sox=$(smc z get)captures an error text as the value. The exit code is still 1.--debugchanges the exit codes: a refusal exits 1 instead of 2, and Ctrl-C prints nothing.- The interrupted line says "any move under way was stopped" for
snapanddoctortoo, though neither moves anything.
Also: any optional item from the review of #89 that its fix round leaves undone. The ## Review addressed comment on #89 lists them.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Merge medio
- 13h 18m
- PR unite (30g)
- 65
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di EPFL-TOP/smart-microscope-control
-
fix(hardware): open_core leaves a half-loaded core when loadSystemConfiguration failsForse già presa @jay23606 l’ha presa oggi. Apertaarea: core priority: p2 type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
EPFL-TOP/smart-microscope-control#132 ·
I maintainer di solito rispondono entro 1 giorno
-
area: core priority: p2 type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
EPFL-TOP/smart-microscope-control#106 ·
I maintainer di solito rispondono entro 1 giorno
-
area: ci priority: p2 type: bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
EPFL-TOP/smart-microscope-control#142 ·
I maintainer di solito rispondono entro 1 giorno
-
chore(hardware): leftovers of #140 — autofocus edge paths, compound generations, focus_by_um's forceApertaarea: core priority: p2 scope: nikon-ti2 type: chore
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
EPFL-TOP/smart-microscope-control#141 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: core priority: p2 type: chore
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
EPFL-TOP/smart-microscope-control#138 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di EPFL-TOP/smart-microscope-control
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
aws-samples/sample-per-model-bedrock#295 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
pyrevitlabs/pyRevit#3792 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
zephyrproject-rtos/reqmgmt#177 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
polarsource/polar#15580 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
521xueweihan/HelloGitHub#4011 ·