bacon icon indicating copy to clipboard operation
bacon copied to clipboard

Bacon seems to skip a page (?) and hide my errors

Open qleguennec opened this issue 6 months ago • 13 comments

When I run bacon check, bacon seems to output things (the "computing" phase) and then skips a page.

I cannot go back to the previous page when I press "up"

To avoid that issue, I can smash up during the computing phase, and then I can stay on this page.

It seems odd that a bug like this could make it to bacon, what's happening ?

qleguennec avatar Jun 24 '25 07:06 qleguennec

"skip a page" ? I'm sorry but I don't see what you mean here. Can you maybe post a screenshot ?

Canop avatar Jun 24 '25 07:06 Canop

@Canop

Image

I have errors in my rust code here, but bacon isn't showing them.

Image

qleguennec avatar Jun 24 '25 07:06 qleguennec

So bacon doesn't seem to see errors in this project ? Can you reproduce this in a public/sharable project ? With a vanilla configuration ?

Canop avatar Jun 24 '25 07:06 Canop

It does, but it clears the terminal afterwards to then show only warnings.

I guess it'll be better explained with a video, I'll post one asap.

No way to reproduce this in a shareable project yet.

qleguennec avatar Jun 24 '25 07:06 qleguennec

It does, but it clears the terminal afterwards to then show only warnings. I guess it'll be better explained with a video, I'll post one asap.

I understand now what you mean. No video is needed. But a reproduction is. I never encountered something like this and I don't see how it can happen.

Canop avatar Jun 24 '25 07:06 Canop

I encountered this issue too. cargo check showed errors, bacon would show them for a split second too, then refresh the "page" and only show the warnings.

I use direnv on nix. Issue seemed to kick in when rapidly switching between two branches, one using the latest stable compiler and the other using the latest nightly compiler in the shell.nix. Issue persisted, even after a system reboot.

Fixed the issue by rebuilding the dev environment: chaning both branches to a previously unused compiler version and then doing direnv deny followed by direnv allow .

JPDye avatar Oct 31 '25 12:10 JPDye

Getting the same as @JPDye, also using nix and direnv, but I could not get it to work by changing compiler versions, and have not been changing git branch or anything.

skoove avatar Nov 05 '25 06:11 skoove

Thanks for the report. I'll investigate with nix and direnv when I find enough time (might not be soon unfortunately).

Canop avatar Nov 05 '25 07:11 Canop

I am having the same issue. cargo check lists errors, bacon lists warnings at the top, and shows 10 warnings at the top bar, but if I scroll down I can see errors as well.

The errors don't appear to be picked up by bacon, because they are formatted differently, and if I toggle s to summary, then only the summary of those 10 warnings are shown, and the errors are completely hidden.

This seems to be a nightly issue, nightly-2025-09-05 works fine, but nightly-2025-10-29 does not.

JeanMertz avatar Nov 14 '25 15:11 JeanMertz

@JeanMertz Do you have bacon 3.20.1 ?

Canop avatar Nov 14 '25 15:11 Canop

@Canop I did not (still on 3.19.0)! I do now, and nightly-2025-11-11 works! Thank you for all the amazing work you do.

JeanMertz avatar Nov 14 '25 18:11 JeanMertz

This specific change in nightly was caught by @narpfel, thank him ;)

Canop avatar Nov 14 '25 19:11 Canop

appears to be fixed for me too!!

skoove avatar Nov 28 '25 10:11 skoove