This project is archived and is in readonly mode.
[Patch] Can't install plug in on Windows
Reported by pupeno@pupeno.com | April 3rd, 2010 @ 05:52 PM
When trying to install a plug in on Windows I've got this error:
c:\projecx\> ruby script/plugin --verbose install http://github.com/rails/rails_xss.git/
Plugin not found: ["http://github.com/rails/rails_xss.git/"]
#<Errno::EACCES: Permission denied - /dev/null>
This really happens because /dev/null doesn't exist on Windows. I fixed it by creating c:\dev\null :) I think it would be great if you don't generate commands that pipe to /dev/null. Maybe not getting the output to the terminal can be solved on Ruby code, or at any rate, in Windows, I'd rather not have the output redirected to /dev/null than have the install fail.
I forgot which line was this in, but it shouldn't be so hard to find: grep -R "> /dev/null"
Comments and changes to this ticket
-
Anil Wadghule April 8th, 2010 @ 05:10 PM
Attached the patch for the issue. Basically fixed regex to determine Windows environment and made consistent with other uses. This patch is against 2-3-stable branch. Can somebody change milestone of this ticket to 2.3.6?
-
Anil Wadghule April 8th, 2010 @ 05:43 PM
- Title changed from Can't install plug in on Windows to [Patch] Can't install plug in on Windows
-
José Valim April 10th, 2010 @ 12:33 PM
- State changed from new to open
- Assigned user set to José Valim
Could you please check if this is also broken in Rails 3.0?
-
Anil Wadghule April 10th, 2010 @ 04:03 PM
The above issue does not exist for Rails 3 on Windows machine. See this pastie http://pastie.org/912838.
This patch is created against 2-3-stable repository of Rails.
I have created separate ticket with patch for Rails 3 (for consistent usage of RUBY_PLATFORM regex for Windows). https://rails.lighthouseapp.com/projects/8994/tickets/4345-make-rub.... But that patch is not related to the current issue.
-
Anil Wadghule April 11th, 2010 @ 07:20 PM
- Tag changed from git, install, plugin, script, windows to git, install, patch, plugin, script, windows
-
Repository April 12th, 2010 @ 10:13 AM
- State changed from open to resolved
(from [c69dc1afaa06c956624e20528adb2540fda0eb18]) Fix for plugin not getting installed on Windows environment [#4320 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/c69dc1afaa06c956624e20528adb25... -
José Valim April 12th, 2010 @ 10:14 AM
Thanks Anil, I just applied both patches!
I'm sure the Rails community using Windows appreciate your efforts! -
csnk May 18th, 2011 @ 08:21 AM
- Importance changed from to Medium
We are the professional sweaters manufacturer,sweaters supplier, sweaters factory, custom sweaters.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 2267 Generated migration for namespaced model prefixes table name This can be closed as we're addressing the issue in #4320
- 4320 [Patch] Can't install plug in on Windows (from [c69dc1afaa06c956624e20528adb2540fda0eb18]) Fix for...