Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Bundler swallong LoadError? #4910

Closed
alexaltair opened this issue Aug 24, 2016 · 6 comments
Closed

Bundler swallong LoadError? #4910

alexaltair opened this issue Aug 24, 2016 · 6 comments

Comments

@alexaltair
Copy link

I have a gem named something-like-this. During the loading process in a rails app, this line turns it into something/like/this. It's actually located at something/like_this, so the next line raises again. Then the LoadError gets rescued again. But then the guard clause on this line, evades the reraise, and then the error is silently swallowed. Bundler continues with loading the next gem.

Is this the intended behavior? Am I doing something else wrong? (Other than not naming the gem something-like_this.)

@segiddins
Copy link
Member

I'll take a look at the particulars in the morning, but a quick fix would be to change your gemfile to include gem "something-like-this", require: "something/like_this"

@alexaltair
Copy link
Author

@segiddins Ping on this.

@segiddins
Copy link
Member

Do you have a gemfile we can use to reproduce the issue? That would help in creating a test case. Thanks!

@segiddins
Copy link
Member

Actually, bundler swallowing the error is the intended behavior unless you manually specify require: {true,name} in your Gemfile

@segiddins
Copy link
Member

@indirect can we close this as "behaves as intended"?

@segiddins
Copy link
Member

Closing as behaves as intended.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants