products forums blog support careers about
  History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ROR-211
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Chris Williams
Reporter: Chris Williams
Votes: 0
Watchers: 1
Operations

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

Unable to retrieve local gem listing

Created: 05/Dec/07 09:49 AM   Updated: 26/Dec/07 09:08 AM
Component/s: RubyGems
Affects Version/s: 0.9.1
Fix Version/s: 1.0.0, 1.0.0 RC 1

Importance: Critical
Studio Install Type: N/A
Participants: Chris Williams


 Description  « Hide
From ROR-207. Some users are seeing blank lists of installed gems in the RubyGems view. This can lead to other issues where we don't think that particular gems are installed (code completion, go to declaration, prompting to install gem they already have, etc).

 All   Comments   Change History      Sort Order:
Chris Williams - 05/Dec/07 09:52 AM
I think this is related to ROR-183. I can't regularly reproduce either myself, unless I'm debugging them.

I think what's happening is that in both cases we're trying to launch a process to gather the listings, then read that back in from a temp file or a Stream and pare the values out. I don't think we can reliably grab the output properly, it happens to work OK on my machine when not debugging, but it seems to be a timing issue.

I need to find some other way to grab the output of these launches!


Chris Williams - 05/Dec/07 10:34 AM
I included a possible fix. Before to grab the output we'd add ourselves as a stream listener, which history tells me is not really reliable (thanks Eclipse! This is why we couldn't get the PID for a launched server and kill webrick properly on non-win systems for a long time).

Now I added a "backup" plan B. We also tell it to capture output to a file (which seems to be more reliable), and then we read the file's contents if we received no output from listening to the stream.