-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove formatting with linenumber
#539
Comments
`linenumber` has been deprecated since v1.0.0, which was released in Aug 2014. It is time to remove it. Fixes rodjekGH-539 Signed-off-by: Romanos Skiadas <rom.skiad@gmail.com>
I'm down with that. I'm not sure if that's acceptable for 2.1.0, since it was marked deprecated in 1.x, or if we should wait for 3.0.0. Either way, I think we should wait for flycheck to receive its fix, first. @rski please keep us apprised of that effort, and in the meantime we can discuss how quickly we can deprecate it. |
Ah, the joys of semver |
Heh, indeed. I do think we will have a 3.x soonish regardless, as p3/Ruby 1.8.7 support disappears, so I will tag this appropriately. |
Puppet-lint has deprecated formatting with `linenumber` in favour of `line`. It has been deprecated since v1.0.0 in 2014 and will be removed in v3.0.0: rodjek/puppet-lint#539 Closes flycheckGH-1050 Signed-off-by: Romanos Skiadas <rom.skiad@gmail.com>
Puppet-lint has deprecated formatting with `linenumber` in favour of `line`. It has been deprecated since v1.0.0 in 2014 and will be removed in v3.0.0. See rodjek/puppet-lint#539 Closes flycheckGH-1050 Signed-off-by: Romanos Skiadas <rom.skiad@gmail.com>
Puppet-lint has deprecated formatting with `linenumber` in favour of `line`. It has been deprecated since v1.0.0 in 2014 and will be removed in v3.0.0. See rodjek/puppet-lint#539 Closes flycheckGH-1050
Puppet-lint has deprecated formatting with `linenumber` in favour of `line`. It has been deprecated since v1.0.0 in 2014 and will be removed in v3.0.0. See rodjek/puppet-lint#539 Closes GH-1050
Fixes where you can run into the error below. The puppet-lint deprecation http://github.com/rodjek/puppet-lint/pull/540 has been merged into master. According to rodjek/puppet-lint#539 it was meant to be added at version 3 but is now merged with 2.0.2. Thanks @Feandil for diagnosis. ``` rake aborted! KeyError: key{linenumber} not found /afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:102:in `%' /afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:102:in `format_message' /afs/cern.ch/user/s/straylen/.gem/ruby/bundler/gems/puppet-lint-32e93d43a3bf/lib/puppet-lint.rb:136:in `block in report' ```
@rnelson0 I think there is something still using this. If this was tagged as for 3.x why is it merged in 2.x?
|
@cdenneen It's not released with 2.x though, master is ahead of 2.x and 3.x could be cut from it any time.
This seems misleading because puppet-lint 2.0.2 was released at 9bf6d30 and b02628a is the current tip of master. |
@rski you are correct, i read the |
yup. You can probably track it down and fix it quite easily :-). Until then pinning puppet-lint to 2.0.2 should work. |
I am guessing it is a plugin using it. Regardless, you should either not point to github and use gem versions, or point to github/HEAD and accept that breakage may happen as you'll be using some unreleased code. We appreciate those testing against HEAD but certainly recommend you be able to drop to a pinned version in a hurry when the breakage starts to affect you. |
It looks like puppet lint removed linenumber in favor of line rodjek/puppet-lint#539 Modify the rake task and fix lint issues in config.pp
It's use has apparently been deprecated for a while and was finally removed in August 2016: rodjek#539
This diff updates ArcanistPuppetLintLinter.php to be compatible with the latest `puppet-lint`. Based on the change made by the `puppet-lint` maintainers in Issue rodjek/puppet-lint#539 and commithttps://github.com/rodjek/puppet-lint/pull/540 the `linenumber` format string is no longer supported. While the issue was already reported in https://secure.phabricator.com/T10038 and https://secure.phabricator.com/T12169 it has never been fixed.
As pointed out here, formatting the output with
linenumber
has been deprecated since two years ago andline
has been available since v1.0.0.It might be time to remove
linenumber
.The text was updated successfully, but these errors were encountered: