Hugo "Error while watching: short read in readEvents()" - unnecessary page refreshes

212 views Asked by At

The specific error is:
"Error while watching: short read in readEvents()"
this error is being output by the hugo server.

The phenomena this causes is continuous local server "Change detected, rebuilding site".

In trying to find a resolution (not to create a red-herring, but at least something I found), it seems that fsutil is used to watch for changes and this could possibly be related to fsutil, but this exceeded my limited understanding.

I am using Hugo, specifically:

hugo v0.82.1-60618210 
VendorInfo=gohugoio GOOS="windows" 
GOARCH="amd64" 
GOVERSION="go1.16"windows/amd64 
BuildDate=2021-04-20T11:02:50Z

A custom theme, relatively simple, I've created myself.

General size/content:
                   | EN
-------------------+------
  Pages            |  93
  Paginator pages  |   0
  Non-page files   |   3
  Static files     | 322
  Processed images |   0
  Aliases          |   2
  Sitemaps         |   1
  Cleaned          |   0

The issue being I am using hugo server to locally develop before pushing via git to a github repo that is connected to Amplify (AWS), so I do need that local environment and the continuous obsessive refreshing is making it hard to use.

This is my first time posting a question.

Please let me know if anything else is needed.

Please also note I am unable to post the repo, but any specific information I would be more than happy to provide (sorry if this is problematic or if their is another method I should use to supply information).

Thank you for everyone's time.

-- additional information if it assists: from Hugo server: panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x20 pc=0x18938d3]

goroutine 357 [running]

seems to stem from newWatcher which would be fsutil I believe...

Just trying to give more data if helpful.

0

There are 0 answers