-
Notifications
You must be signed in to change notification settings - Fork 2
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
rspec-sinatra not initializing in Ruby 2.4.0 #2
Comments
hi @sliute - haven't tried this with 2.4 yet - you might try bundle update ... or possibly even deleting the Gemfile.lock and seeing if a gems update will fix things ... |
ah, sorry, scratch that, we don't have a Gemfile - hmmm |
I replicated this in 2.4 - not immediately sure how to fix ... |
Hey,
I'll try going more in-depth, but I'm a noob, so I can't guarantee anything
:-)
Cheers,
…On 19 January 2017 at 12:07, Sam Joseph ***@***.***> wrote:
I replicated this in 2.4 - not immediately sure how to fix ...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATbkW62P5LmZl8WUhbNejJO4MlieiTjRks5rT1HvgaJpZM4Llrlf>
.
|
Upshot is I can only confirm that gem works fine on 2.3.3 and gives parser / templater errors on 2.4.0. This is the same whether gem is built on 2.3.3 or 2.4.0. I'm really interested in any solutions that arise from investigations, and helping further to resolve.
Details of what I did below:I cloned locally.
The build ran successfully with ruby 2.3.3 and produced the same errors when I switched to ruby 2.4.0 - see "peed" output below.
Worked perfectly with 2.3.3 Then I switched to ruby 2.4.0 and deleted gem
It errors on 2.4.0 with original error Stefan posted 2.3.3 runs successfully again though build was on 2.4.0 So conclusion is something changed at 2.4.0 with interaction of The error occurs |
See https://docs.ruby-lang.org/en/2.4.0/OptionParser.html#method-i-permute-21 the error occurs on
These lines are in methods listed
Perhaps write custom module using updated option parser to cut out errant templater? |
thanks for looking @olwend - PRs very gratefully received :-) |
Hi guys ! Root of issue: Solution: class Array |
@dmitrys That is great - blast from the past thanks for sharing this solution. Which files would you make this change to (sorry long time since I looked at this..) |
Hi, For example in our product we use templater gem (templater use OptionParser and extlib) for generate sources etc. So I added this code in our main generator file - this code executed after load extlib (after require templater) and before we execute run_cli from templater |
Hi!
When running
rspec-sinatra init --app MyApp lib/app.rb
(in Ruby 2.4.0) I got the following error message:I tried messing around with the rspec-sinatra bin, but didn't get very far. The init works well in Ruby 2.2.3.
Is there something I can do to make this work in 2.4.0?
Thanks!
The text was updated successfully, but these errors were encountered: