google / bamboo-soy

An intellij plugin supporting Closure Template language (Soy)
Apache License 2.0
48 stars 27 forks source link

Missing required parameters with default error #199

Closed dikmax closed 4 years ago

dikmax commented 4 years ago

When template have parameters with default arguments, call site still shows an error, if parameter is not passed. Example:

{namespace test.templates}

{template .render}
  {call .withDefaultArg_ /}
{/template}

{template .withDefaultArg_ visibility="private"}
  {@param default: string = ''}

  {$default}
{/template}

{call .withDefaultArg_ /} will be underlined with an error: "Missing required parameters: default".

Tested with plugin v.1.5, wasn't working with 1.4 too.