Skip to content
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

FYI: unable to determine line number or type of error/warning for output: lockfile.rb #846

Open
bmulholland opened this issue Apr 9, 2024 · 1 comment

Comments

@bmulholland
Copy link

rubocop/rubocop#12823 seems to cause an obscure error:

Unexpected output: unable to determine line number or type of error/warning for output:
/Users/bmulholland/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/rubocop-1.63.0/lib/rubocop/lockfile.rb:66:in `rescue in parser'
/Users/bmulholland/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/rubocop-1.63.0/lib/rubocop/lockfile.rb:60:in `parser'

Looks like they intend to fix that, but this error only happened on pre-commit hooks in overcommit, so posting here as an FYI.

@bmulholland
Copy link
Author

As a workaround I made rubocop run using bundle exec with the config at https://github.com/sds/overcommit?tab=readme-ov-file#configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant