-
Notifications
You must be signed in to change notification settings - Fork 117
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
Ruby/2.3.3 support #150
Comments
I've same issue on a clean installation with ruby 2.3.3p222, and it seems to be not finding the gem's lookup path or something. Even that You can get timetrap to run by using the |
ok, thanks for the hint, i would say you can close my issue. |
I have the same problem. Running |
I'd love to help you all (because I love this gem). @jgphpc your gem search path looks weird; can you share more about the system you're on and how you installed Ruby? Are you able to successfully install and use other global CLI gems? (you can try one of mine, /cc @walm @legrostdg trust, but verify: dashkb/dburl |
compared to
I use Debian unstable, with ruby installed with
|
I retried with ruby/2.4.0 and timetrap/1.14.1 and the issue is not present anymore: Suse
RedHat
I could try on other systems too but i consider my problem to be resolved. |
Yeah @jgphpc I'd have to guess something was messed up with your install of 2.3.3. @legrostdg does it work for you on the latest ruby? |
Hi, I am getting the same error:
I've installed timetrap with:
My OS is Debian 9.0 (Sid/Unstable) |
I'm having this same issue on a recent install of Fedora 25 with the default ruby 2.3.3.
|
If y'all can set up an easy repro (like in a docker container or something) then I'll try to debug... My advice failing that is to NOT use the system Ruby (or apt/yum/whatever) and use either RVM or Homebrew/Linuxbrew to install a Ruby owned by your user, so you don't need |
I just realized that an issue I opened (#159) may actually be a duplicate of this. For the record, I am using rvm on Ubuntu. @dashkb "Ruby is up to 2.4 anyway" is not an acceptable answer for 2 reasons:
As a final thought, I'm not 100% convinced this is timetrap's fault, but I have no trouble with any other gems under 2.3.3, so it seems likely that it is and at the very least seems like it's reasonable for the timetrap community to help track down the problem. |
I spent way more time on this than I have, but here's what I found. This line https://github.com/samg/timetrap/blob/master/lib/Getopt/Declare.rb#L1267 checks A little more examination shows that the error appears to occur prior to even loading Something like |
@ToadJamb sorry I frustrated you with my suggestions.
* I am not a Timetrap maintainer
* everything works fine for me on 2.3 and 2.4
So I suggested upgrading because I suspected it might be an environment
problem, and upgrading Ruby (which is always a good idea unless another
factor makes it impractical) is either a helpful diagnosis step, or the
fix, depending on how much you care about getting it working on 2.3.
Edit: ~~@ToadJamb 2.4 wasn't my only suggestion; if you're using 2.3 installed through a package manager or pre-installed on your system I suggest you build/install or use rvm or https://github.com/postmodern/ruby-install; something that results in a Ruby compiled on your system and owned by your user.~~ (Can't edit an email reply to add strike-through; but ignore that sentence)
Sorry- I can't read; you said you're using rvm; and you've got more useful info in #159. I now have zero suggestions for you because your environment (afaict) is the same as mine. 2.4 might not even help you. But, since you're using rvm, it would be a very low-cost and low-impact solution for you to try.
|
I was able to replicate this issue. As far as I can tell it's related to some subtle difference in how load_paths are set up in new ruby installs. I believe I've fixed the issue in https://rubygems.org/gems/timetrap/versions/1.14.2 by updating the syntax for requiring the timetrap lib files relative to the bin. Could you let me know if this resolves the error on your install and close out the issue if so. Thanks! |
I am not a Ruby expert hence apology in advance for my question.
Whle i can install/use timetrap with Ruby/2.2.2, it fails with Ruby/2.3.3:
Ruby/2.3.3 (not ok)
Ruby/2.2.2 (OK)
Any hint please ?
The text was updated successfully, but these errors were encountered: