Skip to content

fix: flush oclif output buffers on error#1774

Open
gandie wants to merge 2 commits into
masterfrom
fix/flush-on-errors
Open

fix: flush oclif output buffers on error#1774
gandie wants to merge 2 commits into
masterfrom
fix/flush-on-errors

Conversation

@gandie
Copy link
Copy Markdown
Contributor

@gandie gandie commented Apr 16, 2026

Trying to narrow down #1323 even further, i've discovered some passages that might also need flushing, as well as one passage in ExecRenderBaseCommand that might cause trouble on buffered consoles. Not yet tried on windows machine yet, dev version working fine so far.

Also relaxed cleanup pattern in package.json as my cleanups were incomplete with the given one, confusing me when using dev tools mentioned in contribution guide ( yarn compile did not rebuild dist after yarn clean , took some time to figure out root cause: the tsconfig.tsbuildinfo file was still present ).

setImmediate(async () => {
handle.unmount();
process.exit(1);
import("@oclif/core").then(async (oclif) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Import could be moved to the top of the module, I think.

@martin-helmich martin-helmich changed the title Fix/flush on errors fix: flush oclif output buffers on error May 8, 2026
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

Successfully merging this pull request may close these issues.

2 participants