History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RUBY-1946
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Roman Chernyatchik
Reporter: Marcus Brito
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Ruby

System environment variables aren't passed to server

Created: 04 Oct 08 19:27   Updated: 07 Oct 08 15:50
Component/s: Run/Debug
Fix Version/s: 2.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. process-explorer-vista.jpg
(359 kb)
Environment: Windows Vista SP1, ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32], mongrel 1.1.5, Ruby Plugin 2.0.208178

Build: 8,858


 Description  « Hide
When starting a server (using a run configuration), apparently IDEA isn't passing system environment variables to the spawned process. I've noticed a "Include parent environment variables" checkbox, but apparently this doesn' change anything.

 All   Comments   Work Log   Change History      Sort Order:
Roman Chernyatchik - 06 Oct 08 20:17
done, rev. 208432 (will be available in the next plugin build)

REM: Idea #8858 doesn't listen state changed events from checkbox "Include parent environment variables". This bug will be fixed in next EAP. Thus to enable "Apply" button in #8858 after selecting/deselecting "Include parent environment variables" you should change any other parameter in Rails Server Run configuration(e.g. type and delete any character in "Server Arguments" textfield)


Marcus Brito - 07 Oct 08 04:28
It works in Windows XP, but not in Vista. The PATH environment variable for the ruby process still comes only up as "c:".

Marcus Brito - 07 Oct 08 04:44
BTW, this "c:;c:" value seems to come from the "Additional Path(s)" field in Ruby on Rails settings panel. I've tried changing this value, but it always returns to "c:;c:" no matter what I type in it.

Roman Chernyatchik - 07 Oct 08 11:54
Are other env. variables (except PATH) being passed to spawned process? It seems it is two different bugs.

Roman Chernyatchik - 07 Oct 08 14:55
Marcus,
I've created issue http://www.jetbrains.net/jira/browse/RUBY-1959 and I'm going to fix it today.

Marcus Brito - 07 Oct 08 15:44
PATH seems to be the only affected variable, so yes, it's probably a different bug. Great to hear you're already working on it.

BTW: is the code being publish at http://svn.jetbrains.org/idea/Trunk/ruby? I've tried checking out the source code yesterday, and it didn't see to be up to date (last commit was from Oct 3rd, and didn't include changes for the 208452 release). Some build instructions would also be appreciated


Dmitry Jemerov - 07 Oct 08 15:50
Marcus,

The code in Subversion is version 1.5 of the plugin for IDEA 7. Version 2.0 of the plugin is no longer open-source.