grafana / vscode-jsonnet

Full code support (formatting, highlighting, navigation, etc) for Jsonnet
Apache License 2.0
65 stars 7 forks source link

Getting "'opts.calledFrom' is unset or empty" even when doing new(std.thisFile) #33

Open patoarvizu opened 8 months ago

patoarvizu commented 8 months ago

I have the following lines in a jsonnet file

local tanka = import 'github.com/grafana/jsonnet-libs/tanka-util/main.libsonnet';
local helm = tanka.helm.new(std.thisFile);

And I'm seeing the 'opts.calledFrom' is unset or empty warning anyway.

image

I'm on the latest version (0.4.1), I'm running in Tanka mode, the chartfile.yaml file and the charts/ directory are there, and I have the dependency on https://github.com/grafana/jsonnet-libs.git pointing to master in jsonnetfile.json.

Also, running tk show ... on the command line works fine, both on the integrated terminal and on an external terminal.

Am I missing something? Is there a setting I can configure to make the warning go away?