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

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

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

'unable to detect ruby' => hang

Created: 02/Jan/08 04:54 PM   Updated: 14/Jan/08 12:36 PM
Component/s: Installation
Affects Version/s: 1.0.0 RC 1, 0.9.2
Fix Version/s: 1.0.0, 0.9.3

File Attachments: 1. Text File hang_not_detecting_ruby.log (84 kb)
2. Text File ruby_hang_after_reinstall.log (297 kb)

Environment:
eclipse.buildId=M20070921-1145
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86 -clean
Issue Links:
Duplicate
 

Importance: Critical
Studio Install Type: N/A
Operating System: Fedora
Participants: Chris Williams, Luis Cipriani and Wayne Stidolph


 Description  « Hide
Have Aptana Pro installed into Eclipse 3.3.1.1. Create new workspace using Workspace Launcher, with Eclipse running using -clean flag. Apatana reports "Unable to detect" ruby installation (it's in /usr/bin). I can then select an option, but to ne effect - Eclipse freezes (no repaints) until I force a quit. (logfile attached) When I restart Eclipse in the same workspace, I still get the "Unable to detect Ruby" dialog. Ruby, rails, and gem are available from the same command line environment I use to launch eclipse:

[wstidolph@bunter ~]$ ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-linux]
[wstidolph@bunter ~]$ rails -v
Rails 2.0.2
[wstidolph@bunter ~]$ gem -v
1.0.1
[wstidolph@bunter ~]$ which eclipse
~/Tools/eclipse/eclipse

Looking in the features dir to get version info on what's installed (since eclipse is hung):
[wstidolph@bunter features]$ ls | grep aptana
com.aptana.ide.feature_1.0.1.004323
com.aptana.ide.feature_1.0.2.004323_p1
com.aptana.ide.feature_1.1.0.005032
com.aptana.ide.feature.editor.css_1.0.1.004323
com.aptana.ide.feature.editor.css_1.0.2.004323_p1
com.aptana.ide.feature.editor.css_1.1.0.005032
com.aptana.ide.feature.editor.html_1.0.1.004323
com.aptana.ide.feature.editor.html_1.0.2.004323_p1
com.aptana.ide.feature.editor.html_1.1.0.005032
com.aptana.ide.feature.editor.js_1.0.1.004323
com.aptana.ide.feature.editor.js_1.0.2.004323_p1
com.aptana.ide.feature.editor.js_1.1.0.005032
com.aptana.ide.feature.editor.php_0.2.10.200709261655
com.aptana.ide.feature.editor.php_0.2.11.004971_200712051937
com.aptana.ide.feature.editors_1.0.1.004323
com.aptana.ide.feature.editors_1.0.2.004323_p1
com.aptana.ide.feature.editors_1.1.0.005032
com.aptana.ide.feature.frameworks_1.0.0.004323
com.aptana.ide.feature.frameworks_1.0.0.005032
com.aptana.ide.feature.professional_1.0.10.200711191212
com.aptana.ide.feature.professional_1.1.10.200712051732
com.aptana.ide.feature.syncing.ftp_1.0.1.004323
com.aptana.ide.feature.syncing.ftp_1.1.0.005032
[wstidolph@bunter features]$ ls | grep ruby
org.eclipse.eclipsemonkey.ruby_0.9.1.200711131528NGT
org.eclipse.eclipsemonkey.ruby_0.9.9.6011
org.rubypeople.rdt_0.9.1.200711131528NGT
org.rubypeople.rdt_0.9.9.6011
[wstidolph@bunter features]$ ls | grep radrails
org.radrails.rails_0.9.1.200711131528NGT
org.radrails.rails_0.9.9.6011
org.radrails.rails_feature_0.9.1.200711131528NGT
org.radrails.rails_feature_0.9.9.6011



 All   Comments   Change History      Sort Order:
Chris Williams - 04/Jan/08 01:23 PM
From the log it appears that one of the core Ruby plugins is not being loaded up properly, which could be a cause of the issue. Does this happen every time? if you upgrade to a nightly build (http://www.aptana.com/docs/index.php/Changing_your_update_version_type_of_Aptana), does it clear up?

Wayne Stidolph - 04/Jan/08 03:13 PM
I don't know - I don't seem to be able to update (see SAS-10)

Wayne Stidolph - 04/Jan/08 08:19 PM
Fixed: I uninstalled and re-installed Aptana Studio Pro and RadRails plugins, updated to Aptana Pro (Alpha)1.1.10.200712051732 and RadRails 0.9.9.200712220421NGT (the same username and password that were being rejected were accepted - weird) then created a new workspace and my existing Ruby was properly detected.

Wayne Stidolph - 06/Jan/08 05:57 PM
Actually, not fixed. There is still a problem - and this has cost me many hours of hung systems, re-installations, troubleshooting and stomping around.

I took the re-installatoin action above on a Windows machine, then reported "fixed" ... a bit too quickly - I can't get this to work on my Fedora 8 (main) workstation.

First, as to the passwords (re SAS-10) ... I have gone to each of the password entry forms several times and always put in exactly the same password every time. Obviously I can log into the ASAP system, and I can log into the forums, and I can log into my "store" account. I think that means all the passwords are set up the same - does it?

Next, on my Fedora 8 installation I decided to just not mess with de-installing and instead go for a complete clean re-start. I deleted my eclipse installation, downloaded a fresh copy of eclipse and installed/updated it in a clean new workspace. I re-downloaded/installed and updated Aptana Pro (and when I put in my license I was asked if I wanted to install the Pro features and said yes, then subsequently updated and supplied my username/password and it seemed to be accepted - I got updated to the 'Alpha' versions)

I install RadRails and restart, and I get the 'unable to detect' dialog and hang - and so I can't update any more (or do anything else). Sigh.

I'll attached the .log from the new workspace (as 'ruby_hang_after_reinstall.log'), and here's the feature/plugin list:
[wstidolph@bunter Tools]$ cd eclipse
[wstidolph@bunter eclipse]$ cd features
[wstidolph@bunter features]$ ls | grep aptana
com.aptana.ide.feature_1.0.2.004323_p1
com.aptana.ide.feature_1.1.0.005032
com.aptana.ide.feature.editor.css_1.0.1.004323
com.aptana.ide.feature.editor.css_1.0.2.004323_p1
com.aptana.ide.feature.editor.css_1.1.0.005032
com.aptana.ide.feature.editor.html_1.0.1.004323
com.aptana.ide.feature.editor.html_1.0.2.004323_p1
com.aptana.ide.feature.editor.html_1.1.0.005032
com.aptana.ide.feature.editor.js_1.0.1.004323
com.aptana.ide.feature.editor.js_1.0.2.004323_p1
com.aptana.ide.feature.editor.js_1.1.0.005032
com.aptana.ide.feature.editors_1.0.1.004323
com.aptana.ide.feature.editors_1.0.2.004323_p1
com.aptana.ide.feature.editors_1.1.0.005032
com.aptana.ide.feature.frameworks_1.0.0.004323
com.aptana.ide.feature.frameworks_1.0.0.005032
com.aptana.ide.feature.professional_1.0.10.200711191212
com.aptana.ide.feature.professional_1.1.10.200712051732
com.aptana.ide.feature.syncing.ftp_1.0.1.004323
com.aptana.ide.feature.syncing.ftp_1.1.0.005032
[wstidolph@bunter features]$ ls | grep radrails
org.radrails.rails_0.9.2.6172
org.radrails.rails_feature_0.9.2.6172
[wstidolph@bunter features]$ ls | grep rdt
org.rubypeople.rdt_0.9.2.6172
[wstidolph@bunter features]$ cd ../plugins
[wstidolph@bunter plugins]$ ls | grep aptana
com.aptana.ide.branding_1.0.1.004323.jar
com.aptana.ide.branding_1.1.0.005032.jar
com.aptana.ide.core_1.0.1.004323.jar
com.aptana.ide.core_1.1.0.005032.jar
com.aptana.ide.core.ui_1.0.1.004323.jar
com.aptana.ide.core.ui_1.0.2.004822.jar
com.aptana.ide.core.ui_1.1.0.005032.jar
com.aptana.ide.debug.core_1.0.1.004323.jar
com.aptana.ide.debug.core_1.1.0.005032.jar
com.aptana.ide.debug.core.ie_1.0.10.200711191212.jar
com.aptana.ide.debug.core.ie_1.1.10.200712051733.jar
com.aptana.ide.debug.ui_1.0.1.004323.jar
com.aptana.ide.debug.ui_1.1.0.005032.jar
com.aptana.ide.documentation_1.0.1.004323.jar
com.aptana.ide.documentation_1.1.0.005032.jar
com.aptana.ide.editor.css_1.0.1.004323.jar
com.aptana.ide.editor.css_1.1.0.005032.jar
com.aptana.ide.editor.erb_0.9.2.6172.jar
com.aptana.ide.editor.html_1.0.1.004323.jar
com.aptana.ide.editor.html_1.1.0.005032.jar
com.aptana.ide.editor.js_1.0.1.004323.jar
com.aptana.ide.editor.js_1.1.0.005032.jar
com.aptana.ide.editors_1.0.1.004323.jar
com.aptana.ide.editors_1.1.0.005032.jar
com.aptana.ide.editors.codeassist_1.0.1.004323.jar
com.aptana.ide.editors.codeassist_1.1.0.005032.jar
com.aptana.ide.editor.text_1.0.1.004323.jar
com.aptana.ide.editor.text_1.1.0.005032.jar
com.aptana.ide.editor.xml_1.0.1.004323.jar
com.aptana.ide.editor.xml_1.1.0.005032.jar
com.aptana.ide.editor.yml_0.9.2.6172.jar
com.aptana.ide.epl_1.0.1.004323.jar
com.aptana.ide.epl_1.1.0.005032.jar
com.aptana.ide.extras_1.0.1.004323.jar
com.aptana.ide.extras_1.1.0.005032.jar
com.aptana.ide.internet.proxy_1.0.1.004323.jar
com.aptana.ide.internet.proxy_1.1.0.005032.jar
com.aptana.ide.intro_1.0.2.004822.jar
com.aptana.ide.intro_1.1.0.005032.jar
com.aptana.ide.io.file_1.0.1.004323.jar
com.aptana.ide.io.file_1.0.2.004822.jar
com.aptana.ide.io.file_1.1.0.005032.jar
com.aptana.ide.jface.text.source_1.0.1.004323.jar
com.aptana.ide.jface.text.source_1.1.0.005032.jar
com.aptana.ide.js.docgen_1.0.1.004323
com.aptana.ide.js.docgen_1.1.0.005032
com.aptana.ide.lexer_1.0.1.004323.jar
com.aptana.ide.lexer_1.1.0.005032.jar
com.aptana.ide.libraries_1.0.0.31932
com.aptana.ide.libraries_1.1.1.003472
com.aptana.ide.libraries.jetty_1.1.0.005032.jar
com.aptana.ide.logging_1.1.0.005032.jar
com.aptana.ide.parsing_1.0.1.004323.jar
com.aptana.ide.parsing_1.1.0.005032.jar
com.aptana.ide.professional_1.0.10.200711191212
com.aptana.ide.professional_1.1.10.200712051733
com.aptana.ide.regex_1.0.1.004323.jar
com.aptana.ide.samples_1.0.1.004323.jar
com.aptana.ide.samples_1.1.0.005032.jar
com.aptana.ide.scripting_1.0.1.004323
com.aptana.ide.scripting_1.1.0.005032
com.aptana.ide.search_1.1.0.005032.jar
com.aptana.ide.search.epl_1.1.0.005032.jar
com.aptana.ide.server_1.1.0.005032.jar
com.aptana.ide.server.core_1.0.1.004323.jar
com.aptana.ide.server.core_1.1.0.005032.jar
com.aptana.ide.server.jetty_1.1.0.005032
com.aptana.ide.server.ui_1.0.1.004323.jar
com.aptana.ide.server.ui_1.1.0.005032.jar
com.aptana.ide.snippets_1.0.1.004323.jar
com.aptana.ide.snippets_1.1.0.005032.jar
com.aptana.ide.syncing_1.0.0.004323.jar
com.aptana.ide.syncing_1.0.0.005032.jar
com.aptana.ide.syncing_1.0.10.200711191212.jar
com.aptana.ide.syncing_1.1.10.200712051733.jar
com.aptana.ide.update_1.0.2.004822.jar
com.aptana.ide.update_1.1.0.005032.jar
com.aptana.radrails.scripting_0.9.2.6172.jar
com.aptana.rdt_0.9.2.6172.jar
com.aptana.rdt.ui_0.9.2.6172.jar
[wstidolph@bunter plugins]$ ls | grep radrails
com.aptana.radrails.scripting_0.9.2.6172.jar
org.radrails.db.core_0.9.2.6172.jar
org.radrails.db.ui_0.9.2.6172.jar
org.radrails.doc_0.9.2.6172
org.radrails.ide.ui_0.9.2.6172.jar
org.radrails.rails.core_0.9.2.6172.jar
org.radrails.rails.ui_0.9.2.6172.jar
org.radrails.server.core_0.9.2.6172.jar
org.radrails.server.ui_0.9.2.6172.jar
[wstidolph@bunter plugins]$ ls | grep rdt
com.aptana.rdt_0.9.2.6172.jar
com.aptana.rdt.ui_0.9.2.6172.jar
org.rubypeople.rdt.branding_0.9.2.6172.jar
org.rubypeople.rdt.core_0.9.2.6172
org.rubypeople.rdt.debug.core_0.9.2.6172.jar
org.rubypeople.rdt.debug.ui_0.9.2.6172
org.rubypeople.rdt.doc.user_0.9.2.6172.jar
org.rubypeople.rdt.launching_0.9.2.6172
org.rubypeople.rdt.refactoring_0.9.2.6172.jar
org.rubypeople.rdt.testunit_0.9.2.6172
org.rubypeople.rdt.ui_0.9.2.6172


Luis Cipriani - 06/Jan/08 07:53 PM
Hi, I'm with the same problem in Ubuntu 7.10.

cipriani@cipriani-laptop:~$ ruby -v
ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]
cipriani@cipriani-laptop:~$ rails -v
Rails 2.0.2
cipriani@cipriani-laptop:~$ gem -v
0.9.5

I tested with Eclipse 3.3.1.1 and with AptanaStudio distributed by you and the problem occurred on both situations.

There is another way to set the Ruby install? Because it seems that Aptana/Eclipse works fine if this "detection" isn't showed on startups. Pretty annoying bug, just on the last installation step.

Any suggestions?

Thanks

Cipriani
Sao Paulo, Brazil


Chris Williams - 07/Jan/08 01:28 PM
My guess is that this may be related to ROR-349. That bug was essentially caused by some sort of race condition in the UI code where a prompt was trying to appear but could never acquire a lock to do so.

Chris Williams - 07/Jan/08 01:31 PM
Wayne: The last log you attached shows that it's running RadRails 0.9.2.6172, which means it's 99.9% likely that you're actually running into ROR-349 on the Linux box. Is it still working OK on the machine running 1.0.0 RC 1?

Luis: Which version of RadRails are you running?


Wayne Stidolph - 07/Jan/08 01:58 PM
Thanks for the pointer to ROR-349, I'll try that new build this afternoon sometime. My Windows machine installation seems OK - I can "switch workspaces" to an all-new workspace, and the new workspace has the correct native ruby detected. It's currently got RadRails 0.9.9.200712220421NGT, and Aptana Studio Professional (Alpha) 1.1.10.200712051732, is that 1.0.0 RC 1 (or later)?

Luis Cipriani - 07/Jan/08 06:59 PM
Hi, sorry, but I had installed RadRails yesterday directly from the website and after the bug I uninstalled everything. I don't remember the version.

The good news is: today I installed the version RadRails 0.9.1.200711131528NGT (version installed by Aptana update manager) with AptanaStudio 1.0.0.00002 and everything is fine.

After install, however, radRails didn't detect my ruby install (in usr/bin/) but I was able to select without problem (using the dialog) and I created a rails project successfully.

If this info above isn't enough, I'm available for any tests needed to solve this bug.


Wayne Stidolph - 11/Jan/08 07:46 PM
Seems resolved for me: as part of efforts to resolve my pro-update login issues I ended up completely re-installing eclipse, aptana, radrails - and now this issue has gone away. Aptana/RDT correctly finds /usr/bin /ruby on my Fedora 8/Sun JVM 1.6.0_0/Ruby 1.8.6 with AS Pro Version: 1.1.10.200712051732, RDT/RadRails 0.9.3.6479 (I think this is a step back from 0.9.9, but I'm not sure ... my box is set up nightly updates and 'compatible' mode so it should be whatever is most-recent, but the 0.9.3 < 0.9.9 )

Chris Williams - 14/Jan/08 12:36 PM
Marking as resolved. I think this was really a dupe of the gem deadlock issue on the other ticket.

This is fixed in 0.9.3 and also in trunk (so when nightlies are back up, it's fixed there).