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

Terminating zola serve on Windows prints Encountered an error #2628

Open
myfonj opened this issue Sep 2, 2024 · 2 comments
Open

Terminating zola serve on Windows prints Encountered an error #2628

myfonj opened this issue Sep 2, 2024 · 2 comments

Comments

@myfonj
Copy link

myfonj commented Sep 2, 2024

Bug Report

When Ctr+C-ing a zola serve session that detected at least one change during run, most of the times prints extra error message.

// Does not prevent regular usage; been told to create this issue in #2551#issuecomment-2297227134

Environment

  • Zola version: zola 0.19.2
  • Windows 10 22h2
  • CMD with Windows Batch, or PS

Expected Behavior

Clean exit without extra "error" prints, presumably.

Current Behavior

Most of the times there is printed either

Encountered an error: uncategorized error
Enable a logger to see more information.

or just

Encountered an error:

depending on terminal emulator used. Getting the first one with CMDer (ConEmu) the later with direct PS or CMD.
(Doing set RUST_BACKTRACE=1 before run has no effect on the outcome for me.)

Step to reproduce

zola init
n,n,n,n
zola serve

make some change, like

echo foo >> templates\index.html

in other term, and then ctrl+c in the first one.

@Tremoneck
Copy link

I got the same error with the prebuilt zola version. The release build with v0.19.2 checkout out on my own machine works.

@Keats
Copy link
Collaborator

Keats commented Nov 8, 2024

That's weird...

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

3 participants