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

error trying to convert sequel code #7

Open
dsisnero opened this issue Nov 15, 2023 · 0 comments
Open

error trying to convert sequel code #7

dsisnero opened this issue Nov 15, 2023 · 0 comments

Comments

@dsisnero
Copy link
Contributor

sequel/dataset.rb

You've found a bug!
It happened while trying to format the file ./lib/sequel/dataset.rb
Please report it to https://github.com/DocSpring/ruby_crystal_codemod/issues with code that trigg
ers it
f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_cry
stal_codemod/formatter.rb:3922:in bug': Expected keyword if, not end at [[60, 0], :on_kw, "end", END] (RubyCrystalCodemod::Bug) from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3 /lib/ruby_crystal_codemod/formatter.rb:3495:in consume_keyword'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3
/lib/ruby_crystal_codemod/formatter.rb:1020:in visit_suffix' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3 /lib/ruby_crystal_codemod/formatter.rb:353:in visit'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3
/lib/ruby_crystal_codemod/formatter.rb:542:in block (2 levels) in visit_exps' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3 /lib/ruby_crystal_codemod/formatter.rb:4039:in push_node'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3
/lib/ruby_crystal_codemod/formatter.rb:541:in block in visit_exps' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3 /lib/ruby_crystal_codemod/formatter.rb:520:in each'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:520:in each_with_index' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:520:in visit_exps'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:3807:in block in indent_body' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:3731:in indent'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:3806:in indent_body' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:1885:in visit_bodystmt'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:398:in visit' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:2313:in block in visit_module'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:4054:in push_type' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:2306:in visit_module'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:418:in visit' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:542:in block (2 levels) in visit_exps'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:4039:in push_node' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:541:in block in visit_exps'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:520:in each' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:520:in each_with_index'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:520:in visit_exps' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:219:in visit'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/formatter.rb:197:in format' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/command.rb:165:in format'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/command.rb:100:in format_file' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/command.rb:80:in block in format_args'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/command.rb:73:in each' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/command.rb:73:in format_args'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/command.rb:43:in run' from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/lib/ruby_crystal_codemod/command.rb:13:in run'
from f:/windows/tools/ruby/Ruby-3.2.2/lib/ruby/gems/3.2.0/gems/ruby_crystal_codemod-0.1.3/exe/ruby_crystal_codemod:4:in <top (required)>' from F:/windows/tools/ruby/Ruby-3.2.2/bin/ruby_crystal_codemod:32:in load'
from F:/windows/tools/ruby/Ruby-3.2.2/bin/ruby_crystal_codemod:32:in `

'

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