Closed trichoplax closed 4 months ago
Does rails c depend on the Qpixel installation? Or just the gemfile? Im new to Ruby but was under the impression rails c would just launch a console but wouldn't necessarily run a lot of app-specific things before launching. https://guides.rubyonrails.org/command_line.html
I'm not sure why opening the console from the terminal would depend on css_parser, but it may not be QPixel related. If I enter which rails
I get the same location regardless of whether I am in the QPixel directory, and that location is where the gems appear to be stored. So it appears that rails c
depends only on the gem file.
I suppose the link to QPixel is that Gemfile.lock
in the QPixel repository specifies the version of the css_parser
gem that is then shared by anything that uses the gem. I don't understand how gems work but the pull request updating css_parser
fixes the problem on my machine.
I can't remember if we support 3.3 or not - last I recall we upgraded to 3.1, can't remember if we've gone beyond that. Are you able to check with 3.1 without upgrading css_parser and see if that works (and vice-versa, if you can - if you upgrade the css_parser gem and use 3.1, does that work)?
Thanks for pointing this out. I've now checked with Ruby 3.1.0 and css_parser 1.11.0 (the version from the current Gemfile.lock
on the develop
branch) and it works fine. So the upgrade of css_parser won't be needed until we upgrade Ruby.
I've converted the associated pull request to a draft now that I understand that it is not needed until we upgrade Ruby.
Out of interest, I've just tested that the newer version of css_parser
(1.16.0) works fine with Ruby 3.1.0 so there doesn't seem any reason not to upgrade earlier if desired (it's just not necessary).
In that case let's upgrade the gem if it works with both. Wider support in this case is not a bad thing.
Describe the bug Trying to run Rails with either
rails s
orrails c
gives an errorwrong number of arguments (given 3, expected 1..2)
.This may be due to the change in how positional arguments are handled in Ruby 3.
To Reproduce Steps to reproduce the behavior:
rails c
and see the following error message:This appears to be fixable by upgrading the
css_parser
gem. I'm not sure why my previous installations of QPixel with Ruby 3 have worked without this error though.