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

Unexpected ruby error (failed to load encoding) #433

Open
dduugg opened this issue Jun 14, 2023 · 0 comments
Open

Unexpected ruby error (failed to load encoding) #433

dduugg opened this issue Jun 14, 2023 · 0 comments

Comments

@dduugg
Copy link

dduugg commented Jun 14, 2023

  • Ruby version: 2.6.10
  • Rubyfmt git sha: 266b47b (v0.8.1)

Input file

https://raw.githubusercontent.com/Homebrew/brew/f71294d483e1ce9920fd10d8169b1419c0ba41fb/Library/Homebrew/test/cli/parser_spec.rb

Rubyfmt's output

$ rubyfmt Library/Homebrew/test/cli/parser_spec.rb
Error! source: Library/Homebrew/test/cli/parser_spec.rb
Rubyfmt experienced an unexpected ruby error: #<LoadError: failed to load encoding (Windows-31J)>

This breaks because

An error occurred (I was curious if rubyfmt would be a better fit for the repo than rubocop, but the latter is able to format this file.)

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