puppetlabs / pdk

The shortest path to better modules: Puppet Development Kit; Download:
https://puppet.com/download-puppet-development-kit
Apache License 2.0
225 stars 105 forks source link

getting error with "$ pdk validate" after upgraded to 1.5.0 (private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet/puppet_syntax.rb:88:in `parse_offense': undefined method` names' for nil:NilClass (NoMethodError)) #518

Closed cjfq closed 3 years ago

cjfq commented 6 years ago
$ pdk validate --debug pdk (INFO): Running all available validators... pdk (INFO): Using Ruby 2.4.4 pdk (INFO): Using Puppet 5.5.1 pdk (DEBUG): Checking for missing Gemfile dependencies. pdk (DEBUG): Using 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat' from PDK package. pdk (DEBUG): Executing 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat check --gemfile=C:/Users//PWK/Teams//Gemfile --dry-run' pdk (DEBUG): Command environment: pdk (DEBUG): PUPPET_GEM_VERSION: 5.5.1 pdk (DEBUG): GEM_HOME: C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0 pdk (DEBUG): GEM_PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0 pdk (DEBUG): PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin;C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\WINDOWS;C:\Windows\System32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\\AppData\Local\Microsoft\WindowsApps;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\Program Files (x86)\Microsoft VS Code;C:\Program Files (x86)\Microsoft VS Code\bin;C:\PWKit\Puppet\puppet\lib;C:\PWKit\Puppet\facter\lib;C:\PWKit\Puppet\hiera\lib;C:\PWKit\Puppet\mcollective\lib;C:\Program Files\Oracle\VirtualBox;C:\PWKit\RubyDev\bin;C:\PWKit\RubyDev\mingw\bin;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\PWKit\PuppetDevKit;C:\PWKit\PuppetDevKit\bin;C:\PWKit\PuppetDevKit\private\tools\bin;C:\PWKit\PuppetDevKit\private\git\mingw64\bin;C:\PWKit\PuppetDevKit\private\ruby\2.1.9\bin;C:\Users\\@\pe\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\\bin;C:\PWKit\Git\cmd;C:\PWKit\Git\bin;C:\PWKit\Git\usr\bin;C:\PWKit\Git\mingw64\bin;C:\PWKit\Vagrant\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4;C:\PWKit\PuppetDevKit\share\cache\ruby\2.4.0\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4\bin;C:\PWKit\PuppetDevKit\private\puppet\ruby\2.4.0;C:\PWKit\Puppet\bin;C:\Users\\PWK\Teams\\bin;C:\PWKit\RubyDev;C:\PWKit\VisualStudioCode\bin;C:/PWKit/PuppetDevKit/private/git/cmd;C:/PWKit/PuppetDevKit/private/git/mingw64/bin;C:/PWKit/PuppetDevKit/private/git/mingw64/libexec/git-core;C:/PWKit/PuppetDevKit/private/git/usr/bin pdk (DEBUG): Execution of 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat check --gemfile=C:/Users//PWK/Teams//Gemfile --dry-run' complete (duration: 1.233201s; exit code: 0) pdk (DEBUG): Updating Gemfile dependencies. pdk (DEBUG): Using 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat' from PDK package. pdk (DEBUG): Executing 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat lock --update --local' pdk (DEBUG): Command environment: pdk (DEBUG): PUPPET_GEM_VERSION: 5.5.1 pdk (DEBUG): GEM_HOME: C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0 pdk (DEBUG): GEM_PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0 pdk (DEBUG): PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin;C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\WINDOWS;C:\Windows\System32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\\AppData\Local\Microsoft\WindowsApps;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\Program Files (x86)\Microsoft VS Code;C:\Program Files (x86)\Microsoft VS Code\bin;C:\PWKit\Puppet\puppet\lib;C:\PWKit\Puppet\facter\lib;C:\PWKit\Puppet\hiera\lib;C:\PWKit\Puppet\mcollective\lib;C:\Program Files\Oracle\VirtualBox;C:\PWKit\RubyDev\bin;C:\PWKit\RubyDev\mingw\bin;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\PWKit\PuppetDevKit;C:\PWKit\PuppetDevKit\bin;C:\PWKit\PuppetDevKit\private\tools\bin;C:\PWKit\PuppetDevKit\private\git\mingw64\bin;C:\PWKit\PuppetDevKit\private\ruby\2.1.9\bin;C:\Users\\@\pe\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\\bin;C:\PWKit\Git\cmd;C:\PWKit\Git\bin;C:\PWKit\Git\usr\bin;C:\PWKit\Git\mingw64\bin;C:\PWKit\Vagrant\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4;C:\PWKit\PuppetDevKit\share\cache\ruby\2.4.0\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4\bin;C:\PWKit\PuppetDevKit\private\puppet\ruby\2.4.0;C:\PWKit\Puppet\bin;C:\Users\\PWK\Teams\\bin;C:\PWKit\RubyDev;C:\PWKit\VisualStudioCode\bin;C:/PWKit/PuppetDevKit/private/git/cmd;C:/PWKit/PuppetDevKit/private/git/mingw64/bin;C:/PWKit/PuppetDevKit/private/git/mingw64/libexec/git-core;C:/PWKit/PuppetDevKit/private/git/usr/bin pdk (DEBUG): Execution of 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat lock --update --local' complete (duration: 1.556201s; exit code: 0) pdk (DEBUG): Checking for missing Gemfile dependencies. pdk (DEBUG): Using 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat' from PDK package. pdk (DEBUG): Executing 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat check --gemfile=C:/Users//PWK/Teams//Gemfile --dry-run' pdk (DEBUG): Command environment: pdk (DEBUG): GEM_HOME: C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0 pdk (DEBUG): GEM_PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0 pdk (DEBUG): PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin;C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\WINDOWS;C:\Windows\System32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\\AppData\Local\Microsoft\WindowsApps;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\Program Files (x86)\Microsoft VS Code;C:\Program Files (x86)\Microsoft VS Code\bin;C:\PWKit\Puppet\puppet\lib;C:\PWKit\Puppet\facter\lib;C:\PWKit\Puppet\hiera\lib;C:\PWKit\Puppet\mcollective\lib;C:\Program Files\Oracle\VirtualBox;C:\PWKit\RubyDev\bin;C:\PWKit\RubyDev\mingw\bin;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\PWKit\PuppetDevKit;C:\PWKit\PuppetDevKit\bin;C:\PWKit\PuppetDevKit\private\tools\bin;C:\PWKit\PuppetDevKit\private\git\mingw64\bin;C:\PWKit\PuppetDevKit\private\ruby\2.1.9\bin;C:\Users\\@\pe\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\\bin;C:\PWKit\Git\cmd;C:\PWKit\Git\bin;C:\PWKit\Git\usr\bin;C:\PWKit\Git\mingw64\bin;C:\PWKit\Vagrant\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4;C:\PWKit\PuppetDevKit\share\cache\ruby\2.4.0\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4\bin;C:\PWKit\PuppetDevKit\private\puppet\ruby\2.4.0;C:\PWKit\Puppet\bin;C:\Users\\PWK\Teams\\bin;C:\PWKit\RubyDev;C:\PWKit\VisualStudioCode\bin;C:/PWKit/PuppetDevKit/private/git/cmd;C:/PWKit/PuppetDevKit/private/git/mingw64/bin;C:/PWKit/PuppetDevKit/private/git/mingw64/libexec/git-core;C:/PWKit/PuppetDevKit/private/git/usr/bin pdk (DEBUG): Execution of 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/bundle.bat check --gemfile=C:/Users//PWK/Teams//Gemfile --dry-run' complete (duration: 1.076353s; exit code: 0) pdk (DEBUG): Executing 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/ruby.exe -W0 C:/Users//PWK/Teams//bin/metadata-json-lint --format json --strict-dependencies C:/Users//PWK/Teams//metadata.json' pdk (DEBUG): Command environment: pdk (DEBUG): GEM_HOME: C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0 pdk (DEBUG): GEM_PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0 pdk (DEBUG): PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin;C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\WINDOWS;C:\Windows\System32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\\AppData\Local\Microsoft\WindowsApps;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\Program Files (x86)\Microsoft VS Code;C:\Program Files (x86)\Microsoft VS Code\bin;C:\PWKit\Puppet\puppet\lib;C:\PWKit\Puppet\facter\lib;C:\PWKit\Puppet\hiera\lib;C:\PWKit\Puppet\mcollective\lib;C:\Program Files\Oracle\VirtualBox;C:\PWKit\RubyDev\bin;C:\PWKit\RubyDev\mingw\bin;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\PWKit\PuppetDevKit;C:\PWKit\PuppetDevKit\bin;C:\PWKit\PuppetDevKit\private\tools\bin;C:\PWKit\PuppetDevKit\private\git\mingw64\bin;C:\PWKit\PuppetDevKit\private\ruby\2.1.9\bin;C:\Users\\@\pe\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\\bin;C:\PWKit\Git\cmd;C:\PWKit\Git\bin;C:\PWKit\Git\usr\bin;C:\PWKit\Git\mingw64\bin;C:\PWKit\Vagrant\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4;C:\PWKit\PuppetDevKit\share\cache\ruby\2.4.0\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4\bin;C:\PWKit\PuppetDevKit\private\puppet\ruby\2.4.0;C:\PWKit\Puppet\bin;C:\Users\\PWK\Teams\\bin;C:\PWKit\RubyDev;C:\PWKit\VisualStudioCode\bin;C:/PWKit/PuppetDevKit/private/git/cmd;C:/PWKit/PuppetDevKit/private/git/mingw64/bin;C:/PWKit/PuppetDevKit/private/git/mingw64/libexec/git-core;C:/PWKit/PuppetDevKit/private/git/usr/bin pdk (DEBUG): Execution of 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/ruby.exe -W0 C:/Users//PWK/Teams//bin/metadata-json-lint --format json --strict-dependencies C:/Users//PWK/Teams//metadata.json' complete (duration: 1.856908s; exit code: 0) pdk (DEBUG): task-metadata-lint: Skipped 'C:/Users//PWK/Teams/'. Target does not contain any files to validate (tasks/*.json). pdk (DEBUG): Executing 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/ruby.exe -W0 C:/Users//PWK/Teams//bin/puppet parser validate --config NUL C:/Users//PWK/Teams//config/vms/os/OEL/files/puppet/hiera5.pp C:/Users//PWK/Teams//manifests/agent/linux.pp C:/Users//PWK/Teams//manifests/agent/windows.pp C:/Users//PWK/Teams//manifests/app/baseline.pp C:/Users//PWK/Teams//manifests/app/master.pp C:/Users//PWK/Teams//manifests/app/mco.pp C:/Users//PWK/Teams//manifests/app/sign.pp C:/Users//PWK/Teams//manifests/ci/init.pp C:/Users//PWK/Teams//manifests/ci/jenkins.pp C:/Users//PWK/Teams//manifests/ci/jobs.pp C:/Users//PWK/Teams//manifests/ci/plugins.pp C:/Users//PWK/Teams//manifests/ci/slave.pp C:/Users//PWK/Teams//manifests/init.pp C:/Users//PWK/Teams//manifests/os/permissions.pp C:/Users//PWK/Teams//manifests/os/ulimit.pp C:/Users//PWK/Teams//manifests/params.pp C:/Users//PWK/Teams//manifests/pkg/gems.pp C:/Users//PWK/Teams//manifests/pkg/java.pp C:/Users//PWK/Teams//manifests/pkg/net.pp C:/Users//PWK/Teams//manifests/pkg/rvm.pp C:/Users//PWK/Teams//manifests/pkg/vim.pp C:/Users//PWK/Teams//manifests/pkg/wget.pp C:/Users//PWK/Teams//manifests/service/agent.pp C:/Users//PWK/Teams//manifests/service/cron.pp C:/Users//PWK/Teams//manifests/service/mco.pp C:/Users//PWK/Teams//site/adm/init.pp C:/Users//PWK/Teams//site/adm/manifests/app/chrome.pp C:/Users//PWK/Teams//site/adm/manifests/app/code.pp C:/Users//PWK/Teams//site/adm/manifests/app/firefox.pp C:/Users//PWK/Teams//site/adm/manifests/app/gnome.pp C:/Users//PWK/Teams//site/adm/manifests/os/account.pp C:/Users//PWK/Teams//site/adm/manifests/os/oracle.pp C:/Users//PWK/Teams//site/adm/manifests/pkg/gcc.pp C:/Users//PWK/Teams//site/adm/manifests/pkg/ruby.pp C:/Users//PWK/Teams//site/adm/manifests/pkg/x11.pp C:/Users//PWK/Teams//site/adm/service/firewall.pp C:/Users//PWK/Teams//site/adm/service/firewall_post.pp C:/Users//PWK/Teams//site/adm/service/firewall_pre.pp C:/Users//PWK/Teams//site/app/manifests/admin/chrome.pp C:/Users//PWK/Teams//site/app/manifests/admin/firewall.pp C:/Users//PWK/Teams//site/app/manifests/admin/firewall_post.pp C:/Users//PWK/Teams//site/app/manifests/admin/firewall_pre.pp C:/Users//PWK/Teams//site/app/manifests/admin/gcc.pp C:/Users//PWK/Teams//site/app/manifests/admin/gnome.pp C:/Users//PWK/Teams//site/app/manifests/admin/init.pp C:/Users//PWK/Teams//site/app/manifests/admin/oracle.pp C:/Users//PWK/Teams//site/app/manifests/admin/pgadmin.pp C:/Users//PWK/Teams//site/app/manifests/admin/ruby.pp C:/Users//PWK/Teams//site/app/manifests/admin/user.pp C:/Users//PWK/Teams//site/app/manifests/admin/x11.pp C:/Users//PWK/Teams//site/app/manifests/docker_master.pp C:/Users//PWK/Teams//site/app/manifests/init.pp C:/Users//PWK/Teams//site/app/manifests/puppet/init.pp C:/Users//PWK/Teams//site/ci/manifests/jenkins_master.pp C:/Users//PWK/Teams//site/ci/manifests/jenkins_slave.pp C:/Users//PWK/Teams//site/ci/manifests/job.pp C:/Users//PWK/Teams//site/ci/manifests/jobs.pp C:/Users//PWK/Teams//site/db/backup.pp C:/Users//PWK/Teams//site/db/pgadmin.pp C:/Users//PWK/Teams//site/domain/manifests/hieratest.pp C:/Users//PWK/Teams//site/hiera/manifests/hieratest.pp C:/Users//PWK/Teams//site/log/elastiksearch.pp C:/Users//PWK/Teams//site/log/kibana.pp C:/Users//PWK/Teams//site/log/logstash.pp C:/Users//PWK/Teams//site/log/splunk_agent.pp C:/Users//PWK/Teams//site/log/splunk_master.pp C:/Users//PWK/Teams//site/role/ci/master.pp C:/Users//PWK/Teams//site/role/ci/slave.pp C:/Users//PWK/Teams//site/role/docker_slave.pp C:/Users//PWK/Teams//site/role/server/admin.pp C:/Users//PWK/Teams//site/role/server/init.pp C:/Users//PWK/Teams//site/role/server/puppet.pp C:/Users//PWK/Teams//site/role/server/splunk.pp C:/Users//PWK/Teams//site/role/user/admin.pp C:/Users//PWK/Teams//site/role/user/jenkins.pp C:/Users//PWK/Teams//site/role/user/splunk.pp C:/Users//PWK/Teams//site/site.pp' pdk (DEBUG): Command environment: pdk (DEBUG): GEM_HOME: C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0 pdk (DEBUG): GEM_PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0 pdk (DEBUG): PATH: C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin;C:\Users\\AppData\Local/PDK/cache/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0;C:/PWKit/PuppetDevKit/share/cache/ruby/2.4.0;C:/PWKit/PuppetDevKit/private/puppet/ruby/2.4.0/bin;C:/PWKit/PuppetDevKit/bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\WINDOWS;C:\Windows\System32;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\\AppData\Local\Microsoft\WindowsApps;C:\PWKit\Puppet\facter\bin;C:\PWKit\Puppet\hiera\bin;C:\PWKit\Puppet\mcollective\bin;C:\PWKit\Puppet\puppet\bin;C:\PWKit\Puppet\sys\ruby\bin;C:\PWKit\Puppet\sys\tools\bin;C:\Program Files (x86)\Microsoft VS Code;C:\Program Files (x86)\Microsoft VS Code\bin;C:\PWKit\Puppet\puppet\lib;C:\PWKit\Puppet\facter\lib;C:\PWKit\Puppet\hiera\lib;C:\PWKit\Puppet\mcollective\lib;C:\Program Files\Oracle\VirtualBox;C:\PWKit\RubyDev\bin;C:\PWKit\RubyDev\mingw\bin;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\PWKit\PuppetDevKit;C:\PWKit\PuppetDevKit\bin;C:\PWKit\PuppetDevKit\private\tools\bin;C:\PWKit\PuppetDevKit\private\git\mingw64\bin;C:\PWKit\PuppetDevKit\private\ruby\2.1.9\bin;C:\Users\\@\pe\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\bin;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\;C:\PWKit\PuppetDevKit\share\cache\ruby\2.1.0\\bin;C:\PWKit\Git\cmd;C:\PWKit\Git\bin;C:\PWKit\Git\usr\bin;C:\PWKit\Git\mingw64\bin;C:\PWKit\Vagrant\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4;C:\PWKit\PuppetDevKit\share\cache\ruby\2.4.0\bin;C:\PWKit\PuppetDevKit\private\ruby\2.4.4\bin;C:\PWKit\PuppetDevKit\private\puppet\ruby\2.4.0;C:\PWKit\Puppet\bin;C:\Users\\PWK\Teams\\bin;C:\PWKit\RubyDev;C:\PWKit\VisualStudioCode\bin;C:/PWKit/PuppetDevKit/private/git/cmd;C:/PWKit/PuppetDevKit/private/git/mingw64/bin;C:/PWKit/PuppetDevKit/private/git/mingw64/libexec/git-core;C:/PWKit/PuppetDevKit/private/git/usr/bin pdk (DEBUG): Execution of 'C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/ruby.exe -W0 C:/Users//PWK/Teams//bin/puppet parser validate --config NUL C:/Users//PWK/Teams//config/vms/os/OEL/files/puppet/hiera5.pp C:/Users//PWK/Teams//manifests/agent/linux.pp C:/Users//PWK/Teams//manifests/agent/windows.pp C:/Users//PWK/Teams//manifests/app/baseline.pp C:/Users//PWK/Teams//manifests/app/master.pp C:/Users//PWK/Teams//manifests/app/mco.pp C:/Users//PWK/Teams//manifests/app/sign.pp C:/Users//PWK/Teams//manifests/ci/init.pp C:/Users//PWK/Teams//manifests/ci/jenkins.pp C:/Users//PWK/Teams//manifests/ci/jobs.pp C:/Users//PWK/Teams//manifests/ci/plugins.pp C:/Users//PWK/Teams//manifests/ci/slave.pp C:/Users//PWK/Teams//manifests/init.pp C:/Users//PWK/Teams//manifests/os/permissions.pp C:/Users//PWK/Teams//manifests/os/ulimit.pp C:/Users//PWK/Teams//manifests/params.pp C:/Users//PWK/Teams//manifests/pkg/gems.pp C:/Users//PWK/Teams//manifests/pkg/java.pp C:/Users//PWK/Teams//manifests/pkg/net.pp C:/Users//PWK/Teams//manifests/pkg/rvm.pp C:/Users//PWK/Teams//manifests/pkg/vim.pp C:/Users//PWK/Teams//manifests/pkg/wget.pp C:/Users//PWK/Teams//manifests/service/agent.pp C:/Users//PWK/Teams//manifests/service/cron.pp C:/Users//PWK/Teams//manifests/service/mco.pp C:/Users//PWK/Teams//site/adm/init.pp C:/Users//PWK/Teams//site/adm/manifests/app/chrome.pp C:/Users//PWK/Teams//site/adm/manifests/app/code.pp C:/Users//PWK/Teams//site/adm/manifests/app/firefox.pp C:/Users//PWK/Teams//site/adm/manifests/app/gnome.pp C:/Users//PWK/Teams//site/adm/manifests/os/account.pp C:/Users//PWK/Teams//site/adm/manifests/os/oracle.pp C:/Users//PWK/Teams//site/adm/manifests/pkg/gcc.pp C:/Users//PWK/Teams//site/adm/manifests/pkg/ruby.pp C:/Users//PWK/Teams//site/adm/manifests/pkg/x11.pp C:/Users//PWK/Teams//site/adm/service/firewall.pp C:/Users//PWK/Teams//site/adm/service/firewall_post.pp C:/Users//PWK/Teams//site/adm/service/firewall_pre.pp C:/Users//PWK/Teams//site/app/manifests/admin/chrome.pp C:/Users//PWK/Teams//site/app/manifests/admin/firewall.pp C:/Users//PWK/Teams//site/app/manifests/admin/firewall_post.pp C:/Users//PWK/Teams//site/app/manifests/admin/firewall_pre.pp C:/Users//PWK/Teams//site/app/manifests/admin/gcc.pp C:/Users//PWK/Teams//site/app/manifests/admin/gnome.pp C:/Users//PWK/Teams//site/app/manifests/admin/init.pp C:/Users//PWK/Teams//site/app/manifests/admin/oracle.pp C:/Users//PWK/Teams//site/app/manifests/admin/pgadmin.pp C:/Users//PWK/Teams//site/app/manifests/admin/ruby.pp C:/Users//PWK/Teams//site/app/manifests/admin/user.pp C:/Users//PWK/Teams//site/app/manifests/admin/x11.pp C:/Users//PWK/Teams//site/app/manifests/docker_master.pp C:/Users//PWK/Teams//site/app/manifests/init.pp C:/Users//PWK/Teams//site/app/manifests/puppet/init.pp C:/Users//PWK/Teams//site/ci/manifests/jenkins_master.pp C:/Users//PWK/Teams//site/ci/manifests/jenkins_slave.pp C:/Users//PWK/Teams//site/ci/manifests/job.pp C:/Users//PWK/Teams//site/ci/manifests/jobs.pp C:/Users//PWK/Teams//site/db/backup.pp C:/Users//PWK/Teams//site/db/pgadmin.pp C:/Users//PWK/Teams//site/domain/manifests/hieratest.pp C:/Users//PWK/Teams//site/hiera/manifests/hieratest.pp C:/Users//PWK/Teams//site/log/elastiksearch.pp C:/Users//PWK/Teams//site/log/kibana.pp C:/Users//PWK/Teams//site/log/logstash.pp C:/Users//PWK/Teams//site/log/splunk_agent.pp C:/Users//PWK/Teams//site/log/splunk_master.pp C:/Users//PWK/Teams//site/role/ci/master.pp C:/Users//PWK/Teams//site/role/ci/slave.pp C:/Users//PWK/Teams//site/role/docker_slave.pp C:/Users//PWK/Teams//site/role/server/admin.pp C:/Users//PWK/Teams//site/role/server/init.pp C:/Users//PWK/Teams//site/role/server/puppet.pp C:/Users//PWK/Teams//site/role/server/splunk.pp C:/Users//PWK/Teams//site/role/user/admin.pp C:/Users//PWK/Teams//site/role/user/jenkins.pp C:/Users//PWK/Teams//site/role/user/splunk.pp C:/Users//PWK/Teams//site/site.pp' complete (duration: 1.282352s; exit code: 1) C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet/puppet_syntax.rb:88:in `parse_offense': undefined method `names' for nil:NilClass (NoMethodError) from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet/puppet_syntax.rb:58:in `block in parse_output' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet/puppet_syntax.rb:57:in `each' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet/puppet_syntax.rb:57:in `parse_output' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/base_validator.rb:139:in `block in invoke' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/base_validator.rb:121:in `each' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/base_validator.rb:121:in `invoke' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet_validator.rb:22:in `block in invoke' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet_validator.rb:21:in `each' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/validate/puppet_validator.rb:21:in `invoke' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/cli/validate.rb:106:in `block (3 levels) in ' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/cli/validate.rb:105:in `each' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/cli/validate.rb:105:in `block (2 levels) in ' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/cri-2.10.1/lib/cri/command.rb:329:in `run_this' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/cri-2.10.1/lib/cri/command.rb:269:in `run' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/cri-2.10.1/lib/cri/command.rb:287:in `run' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/lib/pdk/cli.rb:18:in `run' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/lib/ruby/gems/2.4.0/gems/pdk-1.5.0/exe/pdk:6:in `' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/pdk:23:in `load' from C:/PWKit/PuppetDevKit/private/ruby/2.4.4/bin/pdk:23:in `
'
cjfq commented 6 years ago
$ pdk validate metadata pdk (INFO): Using Ruby 2.4.4 pdk (INFO): Using Puppet 5.5.1 [*] Checking metadata syntax (metadata.json tasks/*.json). [*] Checking module metadata style (metadata.json). info: task-metadata-lint: ./: Target does not contain any files to validate (tasks/*.json).
cjfq commented 6 years ago
$ pdk validate ruby validating ruby code its working, but not working the "$ pdk validate puppet" command which return the error
scotje commented 6 years ago

@cjfq can you post the output of pdk bundle show as well?

scotje commented 6 years ago

Also if you could run this, substituting the module name back in where needed, and post the output:

pdk bundle exec puppet parser validate --config NUL C:/Users//PWK/Teams/<module_name>/config/vms/os/OEL/files/puppet/hiera5.pp C:/Users//PWK/Teams/<module_name>/manifests/agent/linux.pp C:/Users//PWK/Teams/<module_name>/manifests/agent/windows.pp C:/Users//PWK/Teams/<module_name>/manifests/app/baseline.pp C:/Users//PWK/Teams/<module_name>/manifests/app/master.pp C:/Users//PWK/Teams/<module_name>/manifests/app/mco.pp C:/Users//PWK/Teams/<module_name>/manifests/app/sign.pp C:/Users//PWK/Teams/<module_name>/manifests/ci/init.pp C:/Users//PWK/Teams/<module_name>/manifests/ci/jenkins.pp C:/Users//PWK/Teams/<module_name>/manifests/ci/jobs.pp C:/Users//PWK/Teams/<module_name>/manifests/ci/plugins.pp C:/Users//PWK/Teams/<module_name>/manifests/ci/slave.pp C:/Users//PWK/Teams/<module_name>/manifests/init.pp C:/Users//PWK/Teams/<module_name>/manifests/os/permissions.pp C:/Users//PWK/Teams/<module_name>/manifests/os/ulimit.pp C:/Users//PWK/Teams/<module_name>/manifests/params.pp C:/Users//PWK/Teams/<module_name>/manifests/pkg/gems.pp C:/Users//PWK/Teams/<module_name>/manifests/pkg/java.pp C:/Users//PWK/Teams/<module_name>/manifests/pkg/net.pp C:/Users//PWK/Teams/<module_name>/manifests/pkg/rvm.pp C:/Users//PWK/Teams/<module_name>/manifests/pkg/vim.pp C:/Users//PWK/Teams/<module_name>/manifests/pkg/wget.pp C:/Users//PWK/Teams/<module_name>/manifests/service/agent.pp C:/Users//PWK/Teams/<module_name>/manifests/service/cron.pp C:/Users//PWK/Teams/<module_name>/manifests/service/mco.pp C:/Users//PWK/Teams/<module_name>/site/adm/init.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/app/chrome.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/app/code.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/app/firefox.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/app/gnome.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/os/account.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/os/oracle.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/pkg/gcc.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/pkg/ruby.pp C:/Users//PWK/Teams/<module_name>/site/adm/manifests/pkg/x11.pp C:/Users//PWK/Teams/<module_name>/site/adm/service/firewall.pp C:/Users//PWK/Teams/<module_name>/site/adm/service/firewall_post.pp C:/Users//PWK/Teams/<module_name>/site/adm/service/firewall_pre.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/chrome.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/firewall.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/firewall_post.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/firewall_pre.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/gcc.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/gnome.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/init.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/oracle.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/pgadmin.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/ruby.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/user.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/admin/x11.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/docker_master.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/init.pp C:/Users//PWK/Teams/<module_name>/site/app/manifests/puppet/init.pp C:/Users//PWK/Teams/<module_name>/site/ci/manifests/jenkins_master.pp C:/Users//PWK/Teams/<module_name>/site/ci/manifests/jenkins_slave.pp C:/Users//PWK/Teams/<module_name>/site/ci/manifests/job.pp C:/Users//PWK/Teams/<module_name>/site/ci/manifests/jobs.pp C:/Users//PWK/Teams/<module_name>/site/db/backup.pp C:/Users//PWK/Teams/<module_name>/site/db/pgadmin.pp C:/Users//PWK/Teams/<module_name>/site/domain/manifests/hieratest.pp C:/Users//PWK/Teams/<module_name>/site/hiera/manifests/hieratest.pp C:/Users//PWK/Teams/<module_name>/site/log/elastiksearch.pp C:/Users//PWK/Teams/<module_name>/site/log/kibana.pp C:/Users//PWK/Teams/<module_name>/site/log/logstash.pp C:/Users//PWK/Teams/<module_name>/site/log/splunk_agent.pp C:/Users//PWK/Teams/<module_name>/site/log/splunk_master.pp C:/Users//PWK/Teams/<module_name>/site/role/ci/master.pp C:/Users//PWK/Teams/<module_name>/site/role/ci/slave.pp C:/Users//PWK/Teams/<module_name>/site/role/docker_slave.pp C:/Users//PWK/Teams/<module_name>/site/role/server/admin.pp C:/Users//PWK/Teams/<module_name>/site/role/server/init.pp C:/Users//PWK/Teams/<module_name>/site/role/server/puppet.pp C:/Users//PWK/Teams/<module_name>/site/role/server/splunk.pp C:/Users//PWK/Teams/<module_name>/site/role/user/admin.pp C:/Users//PWK/Teams/<module_name>/site/role/user/jenkins.pp C:/Users//PWK/Teams/<module_name>/site/role/user/splunk.pp C:/Users//PWK/Teams/<module_name>/site/site.pp
scotje commented 6 years ago

Is the code you are running on a single module or a control repo?

cjfq commented 6 years ago

pdk bundle show pdk (INFO): Using Ruby 2.4.4 pdk (INFO): Using Puppet 5.5.1 Gems included by the bundle:

cjfq commented 6 years ago

pdk bundle exec puppet parser validate --config NUL [...] pdk (INFO): Using Ruby 2.4.4 pdk (INFO): Using Puppet 5.5.1

libfacter was not found. Please make sure it was installed to the expected location.

scotje commented 6 years ago

@cjfq Can you rerun that last command with the addition of --trace and see if it provides more context for that error?

scotje commented 6 years ago

Likely https://tickets.puppetlabs.com/browse/PDK-632

jpogran commented 3 years ago

This issue has not been responded to in some time, and is likely fixed by the referenced ticket. Please comment and reopen if this is still occuring