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
The error messages from Hugo consist of multiple "frames" all run together as a single line. It's really hard to visually parse.
Example:
ERROR render of "D:/Dev/akbyrd.dev/content/tests/6-test-emoji.md" failed: "D:\Dev\akbyrd.dev\layouts\_default\baseof.html:30:9": execute of template failed: template: _default/single.html:30:9: executing "_default/single.html" at <partial "resource" (dict "Name" "favicon.ico" "Rename" false)>: error calling partial: "D:\Dev\akbyrd.dev\layouts\partials\resource.html:67:24": execute of template failed: template: partials/resource.html:67:24: executing "partials/resource.html" at <$resource.Width>: error calling Width: this method is only available for image resources
In a terminal
In a browser
Honestly, I can't make heads or tails of this. Even trying to figure out where the line breaks should be is confusing. Maybe something like this?
ERROR
render of "D:/Dev/akbyrd.dev/content/tests/6-test-emoji.md" failed:
"D:\Dev\akbyrd.dev\layouts\_default\baseof.html:30:9":
execute of template failed: template: _default/single.html:30:9:
executing "_default/single.html" at <partial "resource" (dict "Name" "favicon.ico" "Rename" false)>:
error calling partial: "D:\Dev\akbyrd.dev\layouts\partials\resource.html:67:24":
execute of template failed: template: partials/resource.html:67:24:
executing "partials/resource.html" at <$resource.Width>:
error calling Width: this method is only available for image resources
I think this is closer to ideal
ERROR Method "Width" is only available for image resources
layouts/partials/resource.html:67:24: at {{ $width = $resource.Width }}
layouts/_default/baseof.html:30:9: at {{ with partial "resource" (dict "Name" "favicon.ico" "Rename" false) -}}
layouts/_default/single.html
content/tests/6-test-emoji.md:
As it stands today
There's no visual line to follow for either locations or error messages
The same locations are listed multiple times.
Paths are sometimes relative and sometimes absolute
There are locations mentioned that don't even exist (single.html is 23 lines long)
Column numbers don't quite match reality (issues with whitespace maybe?)
Back and forward slashes are mixed, which makes searching with Ctrl+F harder.
Impractical to parse with an automated tool (e.g. a vscode problem matcher)
I don't know how much control Hugo has and how much this is dictated by Go templates, but I figure it's worth poking at.
The text was updated successfully, but these errors were encountered:
The error messages from Hugo consist of multiple "frames" all run together as a single line. It's really hard to visually parse.
Example:
In a terminal
![Image](https://private-user-images.githubusercontent.com/484784/408010547-6c769b29-90a1-48ff-91f9-94db9419258e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjE4MzIsIm5iZiI6MTczOTYyMTUzMiwicGF0aCI6Ii80ODQ3ODQvNDA4MDEwNTQ3LTZjNzY5YjI5LTkwYTEtNDhmZi05MWY5LTk0ZGI5NDE5MjU4ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQxMjEyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MmQ5YTFjZDE2NTFiZTMyZDljMWZhNzQ3ZTQwYzI1YjJhMzEwODUwZjJjNTgyOTI3M2M5NDUyMmRkODFlOTk1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.BB1Rk_y3he7C01pk_kttD5RvRGkKUOpB8DTXTXlESyE)
In a browser
![Image](https://private-user-images.githubusercontent.com/484784/408012756-c3da1ff8-94d2-41eb-a942-50281ef76430.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjE4MzIsIm5iZiI6MTczOTYyMTUzMiwicGF0aCI6Ii80ODQ3ODQvNDA4MDEyNzU2LWMzZGExZmY4LTk0ZDItNDFlYi1hOTQyLTUwMjgxZWY3NjQzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQxMjEyMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZTNlMWU3NGZhNzRhYTI4MmQwOWE1MWI2YTk1YjAzZjEyYjMwZjQ2MDJkZTQ3NjNiMGFkMzhhMzEyZTQxZDE4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yGGdGRcYfcfTT4X7PPuwIXBJJN8KsczDlufaLBHYUME)
Honestly, I can't make heads or tails of this. Even trying to figure out where the line breaks should be is confusing. Maybe something like this?
I think this is closer to ideal
As it stands today
I don't know how much control Hugo has and how much this is dictated by Go templates, but I figure it's worth poking at.
The text was updated successfully, but these errors were encountered: