Open mterwill opened 1 year ago
ahhh ya i thought we had a bug for this already but i can't find it right now.
Starlark treats undefined variables as syntax errors rather than as runtime errors. See: https://github.com/bazelbuild/starlark/blob/master/spec.md#name-binding-and-variables
so it's not really possible to fix this without pretty deep changes to the language itself (e.g., making a version_settings function that checks version at syntax-validation time)
Bummer 😕 appreciate the quick response though!
Expected Behavior
When new top-level functions like
ci_settings
are added, if there is an unmetversion_settings
constraint, Tilt fails with that error rather than an "undefined" message.Current Behavior
Tiltfile fails with, e.g.
undefined: ci_settings
.Steps to Reproduce
Tiltfile:
Output:
About Your Use Case
I want to be able to use the new
ci_settings
function in my Tiltfile. Engineers at my company should get a helpful error message to upgrade Tilt, rather than the above.