You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice how the # then remove remaining rows with duplicate emails comment got removed here altogether.
Expected output
Organization.includes(:users,:venues).where(id: org_ids).flatten.uniqdo |contact|
# first remove rows with duplicate names"#{contact[:first_name]}#{contact[:last_name]}#{contact[:org_name]}"end.uniqdo |contact|
# then remove remaining rows with duplicate emailscontact[:email]end.tapdo |res|
CSV.open(OUTPUT_PATH,'wb')do |csv|
csv << HEADERSres.each{ |d| csv << d.values}endend
That is, going directly to the last format round that no longer changes and keeps the comments somewhere in context.
The text was updated successfully, but these errors were encountered:
valscion
changed the title
Comments in a method chain need multiple format rounds to stabilize
Comments in a method chain can get removed after multiple format rounds
Sep 6, 2021
the comment gets attached to the baz ident as a leading comment. When that node ends up getting printed, the . has already been printed. The way to fix this is going to be to detect this kind of case and to call addLeadingComment on the operator node instead.
Metadata
@prettier/plugin-ruby
orprettier
gem version: latest (1.6.1)rubyArrayLiteral
-true
rubyHashLabel
-true
rubyModifier
-true
rubyNetcatCommand
-null
rubySingleQuote
-true
rubyToProc
-false
trailingComma
-"none"
Input
Current output after first format round
Output after another format round
Output after third format round (and it no longer changes)
Notice how the
# then remove remaining rows with duplicate emails
comment got removed here altogether.Expected output
That is, going directly to the last format round that no longer changes and keeps the comments somewhere in context.
The text was updated successfully, but these errors were encountered: