simonsobs / simonsobs/sorunlib

Error text doesn't render properly

Open
#126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
0
Forks
0
Avg merge
17h 32m
Merged PRs (30d)
1

Description

The errors that are multi-line, like this one:
https://github.com/simonsobs/sorunlib/blob/bfa059c38719c57ce1b7e7dd0b6c37df760b123b/src/sorunlib/_internal.py#L48-L49

They don't render properly, it ends up looking like this in stdout:

Failed to perform uxm_relock on OCSClient('det-controller-c1s6'), removing from targets list.
Task uxm_relock in Agent det-controller-c1s6 failed to complete " +             "successfully.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/sorunlib/_internal.py at lines 48-49 and reproduce the multi-line error shown in the issue. Inspect how the error text is assembled and rendered to stdout; the issue is done when multi-line errors display as intended without the literal concatenation text.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.