QuieterSoySyntaxException when adding a form to my Confluence Blueprint

Trying to create a Confluence blueprint and I am loosely following the Intermediate Tutorial supplied by Atlassian (all Tutorials seem to be using outdated syntax) and I copied their code into my plugin:

{template .page1Form}
<form action="#" method="post" class="aui">
<fieldset>
<div class="field-group">
<label for="vname">{getText('es.blueprint.form.label.title.vName')}</label>
<input id="vname" class="text" type="text" name="vName">
</div>
</fieldset>
</form>
{/template}

When I run (atlas-run) this plugin, I get the following error message:

 [INFO] [talledLocalContainer] com.atlassian.soy.impl.QuieterSoySyntaxException: Found error where declared syntax version 2.0 is not satisfied: In file /soy/enablements.soy:6, template ESPlugin.Blueprints.Enablements.page1Form: Tag {template .page1Form}: Template is missing SoyDoc.

Is this template missing some field?

Is there a reference with the updated syntax for adding these forms to the plugin (I obviously need to create a more extensive form for my plugin, and having a reference would be very helpful)?

1 answer

0 votes

Is it simply that your template has no documentation tag? This is required, as explained here. In your case, because your "page1form" template seems to take no parameters, it might look like this:

/**
 * Shows my nice form.
 */

I see that the tutorial page does contain such a tag. Although it looks like a mere comment, it's actually required by the Soy compiler.

Thanx, but the full Soy code was/is the following (copied from the tutorial [except the name space]):

{namespace ESPlugin.Blueprints.Enablements}
/**
* A form that accepts a person's name
*/

{template .page1Form}
<form action="#" method="post" class="aui">
<fieldset>
<div class="field-group">
<label for="vname">{getText('es.blueprint.form.label.title.vName')}</label>
<input id="vname" class="text" type="text" name="vName">
</div>
</fieldset>
</form>
{/template}

  

Found that the problem was apparently with the blank line between the javadoc comment and the template line. Not allowed to have whitespace in the beginning of these lines.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

255 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you