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
crash on assginments with do ... end blocks #1198
Comments
Hmm, I'm not seeing this error at all on |
Oh interesting I see you're using JRuby, let me check that out. |
Ah-ha! It's a JRuby bug. Thanks for the report I'll get this fixed. |
Ahh... unfortunately this is a known bug with JRuby (jruby/jruby#6642). |
kddnewton
added a commit
that referenced
this issue
Apr 13, 2022
Fixed by #1199 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Metadata
@prettier/plugin-ruby
orprettier
gem version: latestrubyArrayLiteral
-true
rubyHashLabel
-true
rubyModifier
-true
rubySingleQuote
-false
rubyToProc
-false
trailingComma
-"none"
Input
Just putting the following line in an empty .rb file and formatting it, crashes the formatter.
log:
Yes, the line isn't in line with most style guides. We actually arrive there by first splitting a long assignment over multiple lines, then a second rule replaces {...} with do...end on multi lines blocks. On the next run, we get the crash.
We run prettier and plugin-ruby from a visual studio code server on WSL2/CentOS, I haven't set it up, so I may be missing some details on the configuration and formatting rules.
The text was updated successfully, but these errors were encountered: