Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.2
-
Fix Version/s: JRuby 1.7.0.RC1
-
Component/s: Windows
-
Labels:None
-
Environment:jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM) Client VM 1.6.0_21) [Windows XP-x86-java]
-
Number of attachments :
Description
Running into the following when using the gem gemedit to easily open installed gems in an editor.
What it does is essentially this:
edit_command.rb
cmd = "#{options[:editor]} ."
Dir.chdir(spec.full_gem_path) do
exec cmd
end
This used to work ok on 1.6.0 under windows. However, now it doesnt seem like exec searches the PATH anymore when firing up the editor. I get:
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - cannot execute
If I set the full path to the editor I get the odd effect of the editor opening, but in the current directory where I issue the command, not spec.full_gem_path.
I assume something must have changed with regards to #exec on windows between 1.6.0 and 1.6.2.
Activity
Thomas E Enebo
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | JRuby 1.6.4 [ 17472 ] |
Thomas E Enebo
made changes -
| Priority | Major [ 3 ] | Blocker [ 1 ] |
Thomas E Enebo
made changes -
| Component/s | Windows [ 13600 ] |
Thomas E Enebo
made changes -
| Fix Version/s | JRuby 1.6.6 [ 18033 ] | |
| Fix Version/s | JRuby 1.6.4 [ 17472 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.7.0.pre2 [ 18527 ] | |
| Fix Version/s | JRuby 1.6.6 [ 18033 ] |
Charles Oliver Nutter
made changes -
| Fix Version/s | JRuby 1.7.0.RC1 [ 18717 ] | |
| Fix Version/s | JRuby 1.7.0.pre2 [ 18527 ] |
Charles Oliver Nutter
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Thomas E Enebo [ enebo ] | Charles Oliver Nutter [ headius ] |
| Resolution | Fixed [ 1 ] |
Under 1.6.3 it seems the PATH is used to find the executable, but I still get the odd effect of the editor opening in the current dir, not taking the Dir.chdir into account.
I'm executing a bat file. I wonder if that's the issue here. I'll investigate that further.