movatechtoday / jsonnet_pro

Other
1 stars 0 forks source link

"Unresolved variable reference" when using other parameters for the parameter default value #13

Closed l-ehlers closed 11 months ago

l-ehlers commented 1 year ago

Jsonnet allows to reference other parameters when defining the default value of a function parameter, see the example below.

However, Jsonnet Pro does not recognize the references and therefore shows an "unresolved variable reference" error (see screenshot of example). As Jsonnet is able to render the code listed below, this error seems to be a bug in Jsonnet Pro.

Example

Jsonnet

function(
  a=1,
  b=a+1,
  c=a+b+1,
)
  { a: a, b: b, c: c }

Output

{
    "a": 1,
    "b": 2,
    "c": 4
}

Screenshot of Jsonnet Pro

image

movatechtoday commented 1 year ago

Thank you for posting the issue. Taking into processing

movatechtoday commented 11 months ago

The issues has been fixed. Also, I have added completions for parameters