You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Hugo are you using (hugo version)?
hugo v0.92.1-85E2E862+extended linux/amd64 BuildDate=2022-01-27T11:44:41Z VendorInfo=gohugoio
Recreate the issue
have a configuration in subdirectory
add in config/_default/params.toml a section [something.valid]
add a second identical section [something.valid]
Hugo prints a warning, but does not indicate failure. (Line "Rebuilt in 55 ms")
remove the faulty second line
nothing happens on CLI
stop Hugo by CTRL+C
plenty of errors (everything after "Rebuilt in 55 ms")
In my specific case the section was [dnb.social] so the errors sound out about social, not somthing.
Output
Change of config file detected, rebuilding site.
2022-02-10 20:21:34.313 +0700
ERROR 2022/02/10 20:21:34 Failed to reload config:
ERROR 2022/02/10 20:21:34 "/home/patrick/github.com/davidsneighbour/kollitsch.de/config/_default/params.toml:1:1": failed to unmarshl config for path "/home/patrick/github.com/davidsneighbour/kollitsch.de/config/_default/params.toml": unmarshal failed: toml: table social already exists
Rebuilt in 55 ms
^C^X
^CFatal Python error: init_import_site: Failed to import the site module
Python runtime state: initialized
Traceback (most recent call last):
File "/usr/lib/python3.9/site.py", line 606, in <module>
main()
File "/usr/lib/python3.9/site.py", line 592, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python3.9/site.py", line 322, in addusersitepackages
addsitedir(user_site, known_paths)
File "/usr/lib/python3.9/site.py", line 214, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/lib/python3.9/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 846, in exec_module
File "<frozen importlib._bootstrap_external>", line 941, in get_code
File "<frozen importlib._bootstrap_external>", line 1040, in get_data
KeyboardInterrupt
patrick@main:/dev/pts/0>
[20:29:02][patrick@main] (+1|%0|!2456|)
Also, typo there in failed to unmarshl config for path.
The text was updated successfully, but these errors were encountered:
What version of Hugo are you using (
hugo version
)?Recreate the issue
config/_default/params.toml
a section [something.valid]In my specific case the section was
[dnb.social]
so the errors sound out about social, not somthing.Output
Also, typo there in
failed to unmarshl config for path
.The text was updated successfully, but these errors were encountered: