Open zombiedk opened 1 year ago
@zombiedk Thanks!, this is certainly not what you want.
I see you are running ruby 3 there. puppet-lint
is not yet supported on that platform, however I'll take a look and see if i can replicate your issue on a supported ruby.
In the meantime it would be great if you could run
gem list | grep puppet-lint
and paste the output.
thank you!
I have replicated your issue so will continue to investigate.
It looks to me that the issue you are experiencing is being caused by a conflict of interest with two community plugins.
tokens.insert(idx, comma)
) it fails because idx
is nil
and not a valid index.@zombiedk please can you open an issue at https://github.com/voxpupuli/puppet-lint-trailing_comma-check and link to this?
puppet-lint (3.3.0, 2.4.2)
puppet-lint-absolute_classname-check (3.1.0)
puppet-lint-anchor-check (1.1.0)
puppet-lint-file_ensure-check (1.1.0)
puppet-lint-leading_zero-check (1.1.0)
puppet-lint-lookup_in_parameter-check (1.1.0)
puppet-lint-manifest_whitespace-check (0.2.9)
puppet-lint-optional_default-check (1.1.0)
puppet-lint-param-docs (1.7.6)
puppet-lint-param-types (1.0.0)
puppet-lint-params_empty_string-check (1.1.0)
puppet-lint-resource_reference_syntax (1.2.0)
puppet-lint-strict_indent-check (2.1.0)
puppet-lint-topscope-variable-check (1.2.0)
puppet-lint-trailing_comma-check (1.0.0)
puppet-lint-unquoted_string-check (2.2.0)
puppet-lint-variable_contains_upcase (1.3.0)
puppet-lint-version_comparison-check (1.1.0)
voxpupuli-puppet-lint-plugins (4.0.0)
Hey thanks for that. As an aside, I see that you have two versions of puppet-lint installed. That might cause you some grief in the future.
Check out this article: https://dev.to/puppet/puppet-lint-soft-dependency-conflicts-after-updating-430l
You may benefit from cleaning up your installation.
Fixed
puppet-lint (3.3.0)
puppet-lint-absolute_classname-check (3.1.0)
puppet-lint-anchor-check (1.1.0)
puppet-lint-file_ensure-check (1.1.0)
puppet-lint-leading_zero-check (1.1.0)
puppet-lint-lookup_in_parameter-check (1.1.0)
puppet-lint-manifest_whitespace-check (0.2.9)
puppet-lint-optional_default-check (1.1.0)
puppet-lint-param-docs (1.7.6)
puppet-lint-param-types (1.0.0)
puppet-lint-params_empty_string-check (1.1.0)
puppet-lint-resource_reference_syntax (1.2.0)
puppet-lint-strict_indent-check (2.1.0)
puppet-lint-topscope-variable-check (1.2.0)
puppet-lint-trailing_comma-check (1.0.0)
puppet-lint-unquoted_string-check (2.2.0)
puppet-lint-variable_contains_upcase (1.3.0)
puppet-lint-version_comparison-check (1.1.0)
voxpupuli-puppet-lint-plugins (4.0.0)
Describe the Bug
if you have these 2 errors next to each other it will crash, if you manaualy fix just one of them it work fine
Whoops! It looks like puppet-lint has encountered an error that it doesn't know how to handle. Please open an issue at https://github.com/rodjek/puppet-lint and paste the following output into the issue description.
puppet-lint version: 3.3.0 ruby version: 3.0.4-p208 platform: x86_64-linux-gnu file path: environments/testing/site-modules/kortftp/manifests/http.pp file contents:
error:
expected output