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
failed to load templates from ../webrpc/gen-golang: template: struct.go.tmpl:23: function "trimPrefix" not defined
I thought we'd be able to require specific Template Functions API from within the templates & that's why we have introduced minVersion .WebrpcGenVersion "v0.7.0" function. However, it looks like Go templates look up all the functions up-front and fail early before even executing the template (no matter if the missing function would be executed or not).
We'll need to support this in some other way, so we have better & user-friendly errors.
The text was updated successfully, but these errors were encountered:
VojtechVitek
changed the title
webrpc-gen fails to load templates on unknown template functions
webrpc-gen fails to load templates with unknown template function(s)
Nov 25, 2022
I thought we'd be able to require specific Template Functions API from within the templates & that's why we have introduced
minVersion .WebrpcGenVersion "v0.7.0"
function. However, it looks like Go templates look up all the functions up-front and fail early before even executing the template (no matter if the missing function would be executed or not).We'll need to support this in some other way, so we have better & user-friendly errors.
The text was updated successfully, but these errors were encountered: