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

Version 2.2.4 raises LoadError due to index missing. #1

Closed
chrisjohnson opened this issue May 21, 2019 · 7 comments
Closed

Version 2.2.4 raises LoadError due to index missing. #1

chrisjohnson opened this issue May 21, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@chrisjohnson
Copy link

chrisjohnson commented May 21, 2019

Overview

I tried to install tmuxinator, which depends on xdg (but doesn't specify that it should be <=2.2.3). gem install tmuxinator saw that xdg 2.2.4 was available and used that.

When I ran tmuxinator, I got the following error:

/Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/xdg-2.2.4/lib/xdg.rb:28:in `require_relative': cannot load such file -- /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/xdg-2.2.4/lib/xdg/index (LoadError)
        from /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/xdg-2.2.4/lib/xdg.rb:28:in `<module:XDG>'
        from /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/xdg-2.2.4/lib/xdg.rb:26:in `<top (required)>'
        from /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/tmuxinator-1.1.0/lib/tmuxinator.rb:6:in `<top (required)>'
        from /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /Users/cjohnson/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/tmuxinator-1.1.0/bin/tmuxinator:5:in `<top (required)>'
        from /Users/cjohnson/.rbenv/versions/2.4.6/bin/tmuxinator:23:in `load'
        from /Users/cjohnson/.rbenv/versions/2.4.6/bin/tmuxinator:23:in `<main>'

I tried various ruby versions to be sure. I checked in ~/.rbenv/versions/2.4.6/lib/ruby/gems/2.4.0/gems/xdg-2.2.4/lib/xdg/ and saw that there was no index.rb

My hunch is the 2.2.4 version should just be pulled down. It doesn't seem to match the latest master from the original rubyworks repository which does include an index.rb so I'm not sure where it came from.

Environment

macOS Mojave

@chrisjohnson
Copy link
Author

I put this here because it seems like you're actively working on things, and so I assume you were the one who pushed that 2.2.4 version up (it says that May 21 2019 is the date it was pushed). If that wasn't you feel free to direct me elsewhere

@bkuhlmann
Copy link
Owner

🙇 @chrisjohnson. Digging into this now. This release was only meant to add a post install message but how the original gem packaged itself is not straightforward. I'll get out another patch tonight, though.

@bkuhlmann
Copy link
Owner

bkuhlmann commented May 22, 2019

@chrisjohnson, @ryanmt, @g-arjones I've released 2.2.5 with the necessary patch. When you get a chance could you confirm all is well? It's important to note that I've not changed the implementation details. I've only added a post install message you'll see when installing the gem. It'll look like this:

Development of this project has been transfered here: https://github.com/bkuhlmann/xdg. This will be the last version supported within the 2.2.x series. Be aware major breaking changes will be introduced in the upcoming 3.0.0 release (2019-06-01).

Otherwise, functionality should be identical even though I packaged both the 2.2.4 and 2.2.5 release with a new version of Bundler.

@bkuhlmann bkuhlmann changed the title The 2.2.4 gem that got pushed up to rubygems today is broken Version 2.2.4 raises LoadError due to index missing. May 22, 2019
@bkuhlmann bkuhlmann added the bug Something isn't working label May 22, 2019
@bkuhlmann bkuhlmann self-assigned this May 22, 2019
@g-arjones
Copy link

All great, thank you for taking the time.. 👍

@chrisjohnson
Copy link
Author

Works well here! Thanks :)

@bkuhlmann
Copy link
Owner

Awesome, good to hear! I'm going to close this issue as resolved. Keep in mind the 3.0.0 release will introduce breaking changes (in a good way 😉). You can always lock XDG at the 2.2.x level until you are ready to upgrade, though. Anyway, FYI.

@ryanmt
Copy link

ryanmt commented May 22, 2019

👍 here as well. Thanks for quickly resolving!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants