-
Notifications
You must be signed in to change notification settings - Fork 147
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
Failure in posix-spawn #32
Comments
Can't reproduce, but you're not the only one who's got it - #33 sounds similar, seems either posix-spawn or grit is misbehaving. Let me know if you find anything. |
It works when I remote to my Ubuntu server running ruby 1.8.7. I'm running ruby 1.9.2p180 at work on a Windows 7 machine and it's not working. |
I have the same issue:
but it only happens when running Looks like this might have something to do with the environment changes RVM makes? as the thread owner also seems to use rvm. |
@ahmeij I am using rvm, yes. My hardware is a mac with the latest OSX. |
I tried running git-up and I got the same error on my work machine (Windows 7) |
I had the same problem (OS X, rvm), but don't anymore. Unfortunately I'm not sure exactly what fixed it. When working on other things I installed the latest Command Line Tools for OS X (https://developer.apple.com/downloads/), and also reinstalled git, and I guess anyone of them could have something to do with it working again. |
Which version of grit is everyone running? Check with: gem list grit --local I'm on 2.5.0. I'm getting closer to a resolution and it seems to be with grit, but I'm not positive yet. |
I'm also on grit 2.5.0. It might help to say that I'm using OSX gcc instead of the default mac dev stuff. |
2.5.0 |
My versions (keeping in mind I don't have the bug) are: ruby 1.9.3p194, git-up 0.5.8, grit 2.5.0, posix-spawn 0.3.6. Not sure which dev tools I'm using, but my gcc seems to be symlinked to llvm-gcc-4.2. |
My versions: grit (2.5.0), posix-spawn (0.3.6), git-up (0.5.8), rvm 1.16.8, ruby 1.9.3p194, git version 1.7.4.4 Symptoms:
I tried making making this ruby default in rvm and installing git-up in the default gemset, both did not change anything I'm happy using git-up instead of git up, just trying to help figure out the issue pspawn 187 is called with these arguments when failing:
And when succeeding:
|
I've created a Google spreadsheet to collect this data; please fill yours in and colour your row appropriately. I've already filled in mine and @ahmeij's as a demonstration. https://docs.google.com/spreadsheet/ccc?key=0Aj-xJbNYtfg1dDdXajlkTzZ0a0ljTGFyMzc2OTNMcVE |
Same problem as ot-brett-jones trying to use either git-up or git up in Win 7, msysgit, RubyInstaller w/ DevKit. Updated the spreadsheet with my information. |
Balls - actually, according to rtomayko/posix-spawn#30, posix-spawn won't work on a Windows environment, and since grit uses it, by definition it won't work on a Windows machine. Ah well. |
Well there you have it... @aanand, you can probably close this issue since it's not related directly to git-up. |
I wouldn't necessarily say that's the case - it's only proven that posix won't work on Windows. Considering the other people who are reporting are on different infrastructures, I'd say that our problem is unrelated but the issue still stands. |
I'm away from my computer until tomorrow, but if someone could add an OS column, and everyone could fill theirs in, that'd be great. On Thursday, 18 October 2012 at 20:17, Alex Dancho wrote:
|
Added my details to spreadsheet |
Also seeing bug, details added. |
Also have this bug for |
@Port3M5, you are the first person on the spreadsheet to experience a problem with git-up but not with git up. Are you sure that it works that way round? |
No I can confirm that it does in fact work that way round as you can see below
|
That's not the same error. You're getting "Permission Denied" when you run "git-up". Try changing the permissions of the git-up script with chmod +x |
I do see what you're saying about it being a different issue, however chmodding has not fixed this issue. Thanks for the help regardless. |
I was getting the posix issue when I was using git version 1.7.10.2 (Apple Git-33). The issue went away after I installed the latest git from homebrew (git version 1.8.0.1). Make sure that /usr/local/bin appears in $PATH before /usr/bin so that you don't use the older git version bundled with Xcode. |
Interesting. I just tried it on a machine with an older Apple Git installed and it worked fine, though:
Could you add both cases to the spreadsheet, in any case? |
Having this issue too on latest MacOS, heroku toolbelt, RVM:
|
This has been bugging me a lot recently so I decided to take a deep dive and came up with a workaround. First git looks internally for the command, then if it can't find it: it will attempt to run Simples! https://github.com/git/git/blob/master/git.c#L473 I think the problem is that even though the environmental variables are the same (i think they get copied somewhere in run_command_v_opt()), RVM doesn't get to do it's stuff so So to fix the problem we somehow need force git-up to use RVM's instance of ruby.
That seems to do the trick for me, it works because git adds Enjoy! 😸 |
this works for me, thanks! On Tue, Jan 8, 2013 at 11:02 PM, Daniel Upton [email protected]:
|
This presents us with another problem:
I'm pretty sure this is all to do with If you take a look at the source it attempts to load rubygems-bundler: #!/usr/bin/env ruby
original_file=ARGV[0]
ARGV.shift
$PROGRAM_NAME=original_file
require 'rubygems'
begin
require 'rubygems-bundler/noexec'
rescue LoadError
warn "unable to load rubygems-bundler/noexec" if ENV.key?('NOEXEC_DEBUG')
end
eval File.read(original_file), binding, original_file I think the issue here is that somewhere along the line bundler is going to incorrectly hit our projects Gemfile. So here's another hack on a hack which fixes it for me, edit the RVM wrapper we generated and change this:
to this:
It's hack for sure, but I'm not sure if there's a clean fix. Out of interest does anyone have this problem on rbenv? |
Excellent work, @boxofrad. Assuming this is the source of everyone's pain, would you care to write up a friendly description of the problem and how to work around it? I'll put it in a separate file in the repo and link to it in the README under a "Warning for RVM users" header or something. As for rbenv, no-one seems to have reported a problem under it, according to the spreadsheet. |
Sure thing :) |
Add RVM known issues and workaround #32
This still fails for both git-up and git up on windows with no RVM, but using the ruby installer and dev kit (to make it build native extensions): http://rubyinstaller.org/ The same issue affects the gollum wiki server.... I have updated your spreadsheet |
@silasdavis posix-spawn doesn't seem to officially support Windows - you could try following the steps in #34. |
When I run I get:
What am I doing wrong? |
@akrabat I'm not an RVM user, but I'm gonna guess
|
I also have the issue. |
I have done all the things at the RVM guide; it made no difference: rlpowell@shell01> /usr/libexec/git-core/git-up "git up" does the same thing, as does many other things I have tried. No way of calling this program seems to work. The truly strange part is that if I add:
at the line in question in spawn.rb, I get:
which seems about as inoccuous as a command could possibly get! No idea what's going on here or what to do about it. |
Here's the fun part: the following:
works with no trouble. Having done so, the following also works: sudo rvm wrapper ruby-2.0.0-p247@git-up --no-prefix git-up So, no idea, but creating the new gemset fixed it, so there's an addition to |
Note: if you experience this issue, or even if you don't, please add a row to this Google spreadsheet to help track this bug down.
git-up fails when I try to execute it from ruby 1.9.3-p194:
The text was updated successfully, but these errors were encountered: