Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Streams interface for xsl info/warings/errors #2136

Open
siefkenj opened this issue Mar 4, 2024 · 1 comment
Open

Use Streams interface for xsl info/warings/errors #2136

siefkenj opened this issue Mar 4, 2024 · 1 comment

Comments

@siefkenj
Copy link
Contributor

siefkenj commented Mar 4, 2024

Python supports Streams which allow for forwarding data as it arrives.

It would be nice if the CLI could filter/group warnings and info that is generated by the XSL. One way to do this would be if pretext core produced a stream rather than writing to stdout/stderr.

@oscarlevin Would a stream help the CLI make the output more friendly?

@rbeezer
Copy link
Collaborator

rbeezer commented Mar 5, 2024

Perhaps related: XSL processing log is now communicated better. Comments on the CLI side:

PreTeXtBook/pretext-cli#689

Code:

512775a

Beautiful error messages are not a priority. Complete, helpful, robust messages are. There's lots of room for improvment here, something I started to work on back in Ann Arbor, June 2022.

We use threads to communicate the XSL log on-the-fly. Maybe streams would be just as good, and better for other aspects. But unlikely to bubble-up in my queue anytime real soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants