-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cannot find file nokogirl after upgrading to v2.0.1 #882
Comments
Had the same problem here with our rails app (using Konacha). Looking at the Gemfile.lock, it looks like the dependencies aren't getting added correctly...? Relevant portion of Gemfile.lock:
UPDATE: I've noticed some wonky bundler activity lately. A quick look at the bundler issues didn't show anything, but there are 350+ issues there and I don't have the time to mess with it right now. |
The second Really strange that v2.0.0 works fine and v2.0.1 doesn't though. |
I just double checked everything that could be wrong. I downloaded the gem files for 2.0.0 and 2.0.1 and manually unpacked them and compared them, they look identical. I went through the entire diff between 2.0.0 and 2.0.1, nothing which impacts the gem build process at all. I'm fairly convinced that this doesn't have anything to do with the 2.0.1 gem. |
Can confirm the “bug” and the “fix”. Everything looks fine 2.0.0...2.0.1, must be a bundler problem. |
I've been having the same problem. 2.0.1 keeps raising nokogiri errors even after I ran bundle install multiple times. I finally just switched to 2.0.0 and that seems to work fine. |
FWIW, I did a manual bisect and d21d6dd is the culprit. Looks like it's not capybara, but possibly something in xpath. I guess it could be a rubygems or bundler issue too. |
@christiannelson are you sure? It seems very strange that a git submodule would affect the gem. It isn't even part of the gem package. |
@jnicklas You're right... I botched my bisect. v2.0.1 results in this issue consistently and older versions don't. I'm going through all of the changes between 2.0.0 and 2.0.1 now to see what commit really causes the issue to surface. |
@jnicklas Interesting. Using ref: '537fd691a8d6045dcf44aff22c880c609fcb6ece' in my Gemfile works but '2.0.1' does not. That suggests that the gem is either bunk (which you already checked), rubygems isn't producing correct dependency data for bundler (not sure if this totally makes sense) or there's a legit bug in bundler. Thanks for looking into it and sorry for the goose chase. |
No worries, you don't seem to be the only one having this issue. It's very strange, I did everything exactly like I always do, and I've never had a problem. It sounds to me like maybe rubygems or bundler messed up somehow. Maybe the dependency API is not returning the correct result for the gem. Since I still can't replicate it myself, I don't really know how to proceed though. |
I pushed on this a little harder out of curiosity. I tried reproducing the error outside of raygun, since raygun is a bit of an oddity and has a lot going on. To my surprise it happened with a straight up rails app. Here's my console output: https://gist.github.com/4132139 Thinking maybe something is up with my machine's configuration, I spun up an ubuntu vm and followed the same steps. The error came up there as well. My guess is rubygems is coming back with incomplete dependency information. I might try to confirm that later after our holiday festivities. |
I'm also having this issue with capybara 2.0.1 with dependencies not added. Pointing my Gemfile to github fix the dependency issue. |
This is strange. In my case, the missing dependency was xpath. |
I had a case of missing xpath, specific error
Here is my bundle list:
The fix for me was to |
I just had the same problem a brand new rails app, just ran I'm assuming it has something to do with the way bundler loads the dependencies. |
+1 double |
running
Something is definitely messed up with dependencies. |
If it helps, pretty sure this was happening to me when I posted this on Stack Overflow http://stackoverflow.com/questions/13502511/rake-no-such-file-to-load-xpath |
And this too: guard/guard-jasmine#90 (comment) |
Seems like this problem has been solved with Capybara 2.0.2. I still have no idea what caused it, but I'm sure it wasn't anything inside Capybara. Closing this down. |
When I invoke
rake g rspec:install
this error occurs (some cruft removed for brevity):With version 2.0.0 there isn't a problem. Might be related to #880?
Found this while working on my rail app generator, raygun.
Follow the instructions in the readme to reproduce.(yanked the broken gem)The text was updated successfully, but these errors were encountered: