Issue #21874 has been updated by Henrik Lindberg.

Status changed from Needs More Information to Accepted

I now know what the cause of the problem is. There are two things going on here:

The error is the result of faulty validation, when fixing that the error 
becomes this deprecation warning
<pre>
Warning: Deprecation notice: Resource references should now be capitalized. The 
given 'ensure_packages' does not have the correct form
</pre>

And, yes naturally... the problem is that a NAME (like `ensure_packages`, 
`notice`) is indistinguishable from the deprecated form of resource reference 
e.g. `file[foo]` (which should be written `File[foo]`
The first part of the problem is easy to address, the rest requires 
investigation - it is probably not meaningful to keep the support that enable 
the deprecation warning in the future parser, it should instead consider 
NAME[x] to be a function call to NAME with [x] as an argument (unless not being 
top level where it would be an error since function calls must have parentheses 
around the arguments).



----------------------------------------
Bug #21874: Enabling --parser future causes classes to be not found and other 
errors
https://projects.puppetlabs.com/issues/21874#change-99231

* Author: Lee Lowder
* Status: Accepted
* Priority: Normal
* Assignee: Vasiliy Boulytchev
* Category: compiler
* Target version: 
* Affected Puppet version: 3.2.2
* Keywords: future_parser customer
* Branch: 
----------------------------------------
(from a customer)

After setting parser = future in puppet.conf, code that was working now causes 
errors.

Sample error:

    undefined method `value' for 
Puppet::Pops::Model::AccessExpression:Puppet::Pops::Model::AccessExpression at 
/etc/puppetlabs/puppet/modules/.../manifests/logic.pp:24

(code sample is in the support ticket, will be linked to in a comment)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to