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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

356 views 20 10
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