Closed Duologic closed 3 weeks ago
Does it fail in some public library? It works for me on the prometheus-operator/kube_prometheus repo, which this output looks like.
It's in https://github.com/grafana/jsonnet-libs/blob/master/prometheus/ but the code I'm calling goes through a few more layers. I'll try to come up with something reproducible when I find the time.
Anyway, the issue here is code like this is run:
local v = null;
v(1)
std.prune
should not cause this, as it is implemented in the same way as cpp-jsonnet one: https://github.com/netomi/jsonnet/blob/96aa98e305a108da5d38f06bb3894324ef50cec4/stdlib/std.jsonnet#L1603
For easier debugging, jrsonnet supports --trace-format option: jrsonnet file.jsonnet --trace-format=explaining
std.prune is now implemented as builtin, feel free to reopen if the issue persists.
I ran into this error and can't make sense of it yet. It seems to fail on
std.prune
but I can't find a way to reproduce this in smaller snippet.Here's the stack trace: