Discussion:
Data types and formatter problem
Alexandre Barth
2016-04-21 09:41:38 UTC
Permalink
Hello, i have a problem when using data types in Geppetto 4.3.1 (PP 4.0 is
selected to use future puppet language)

Optional[Array] $restricted_acl = undef

When saving the manifest, the formatter adds a space between Optional and
[Array], like this :

Optional [Array] $restricted_acl = undef

which is not the correct syntax for data types and leads to a puppet run
error.

How can i prevent this space insertion ?

Ty
--
You received this message because you are subscribed to the Google Groups "Puppet Geppetto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-geppetto+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Henrik Lindberg
2016-04-21 17:33:14 UTC
Permalink
Post by Alexandre Barth
Hello, i have a problem when using data types in Geppetto 4.3.1 (PP 4.0
is selected to use future puppet language)
Optional[Array] $restricted_acl = undef
When saving the manifest, the formatter adds a space between Optional
Optional [Array] $restricted_acl = undef
which is not the correct syntax for data types and leads to a puppet run
error.
How can i prevent this space insertion ?
I think only by turning off the format on save option under settings.
I don't remember if we added the ability to say something like
# noformat in a comment (I don't think we did).

The real fix is quite elaborate as the formatter would need a new rule
or two. It is not something we are going to fix I am afraid as we do not
have bandwidth to maintain Geppetto. (If someone is willing to take on
the work, I am happy to help explain how it works - but it is quite a
steep learning "curve" (if vertical is a curve)).

Sorry.
- henrik
Post by Alexandre Barth
Ty
--
You received this message because you are subscribed to the Google
Groups "Puppet Geppetto" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to
For more options, visit https://groups.google.com/d/optout.
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are subscribed to the Google Groups "Puppet Geppetto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-geppetto+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...