Preferred Ruby plugin for Eclipse? [closed] - ruby

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
RDT (Ruby Development Tool) seems to be the preferred plugin for adding Ruby support to Eclipse. However, I see that the main developer on that project has joined Aptana RadRails. Does this mean that project is no longer up-to-date for Ruby in Eclipse?
If so, which plugin is the preferred and best choice these days?

Try the Dynamic Languages Toolkit for Ruby. It's available from Eclipse's Software Updates panel.
Update May 2020: Ruby support was dropped in DLTK 6.0 in favour of Eclipse Solargraph.

Good question. I've used Aptana/radrails, and that's definitely one to steer clear of.
It writes a database in whatever directory you happen to start Eclipse from, and generally takes over Eclipse, changing a lot of useful key bindings.
One of the most irritating things is that Ctrl-1 stops working in Java files, and that's a hotkey I use all the time.
I'm looking forward to hearing people's answers on this one, because I'd like to know of a good one.

Looks like the update site is here: http://download.eclipse.org/technology/dltk/updates/
I found it on www.eclipse.org/dltk/install.php

I faced this problem after installing aptana studio plugin for Eclipse. So, I decided to try dynamic languages toolkit for eclipse.
If you want to uninstall the aptana plugin: Eclipse > Help > About Eclipse > Installation Details > Installed Software tab > Aptana plugin > Uninstall. This should do a clean, frustration free uninstall.
Now, lets install the DLTK plugin.
Go to link - http://marketplace.eclipse.org/content/ruby-dltk. Press the green down arrow. copy the link from popup.
Eclipse > help > install new software > work with = copied link.
Now you see a list of plugins. In that list,expand the Programming Languages > check the box: Dynamic languages toolkit - Ruby Development Tools > press button: next > obvious steps.
After this, install the RubyInstaller for windows at http://rubyinstaller.org/
Find the location of ruby.exe created by this installation. You will need this to set the ruby interpreter when you create your first eclipse ruby project.
Once you successfully create a Ruby project, eclipse asks you if you want to open the ruby perspective. Say ok. To test if it works, create ruby project, then create an empty ruby script inside this project. Then execute this command puts "hello ruby" as a ruby script. Enjoy sparkling ruby !

I have used Aptana/RadRails in the past and thouroghly enjoyed it. I suggest giving it a try. There is a standalone Eclipse plugin available that supports non-Rails projects decently as well if that's what you're going for.
My only experience with Eclipse was through Aptana, however, so there may be other considerations.

Dynamic Languages Toolkit (DLTK) is the preferred. step-by-step installation in eclipse:
Open eclipse
Go to Help -> "Eclipse Marketplace..."
Type DLTK on Find text box and click Go button
Click Install button under Ruby (DLTK) section
Follow the instruction in eclipse pop-up
Verification of installation after successful installation:
Go to Window -> Preferences and you would see "Dynamic Languages" and "Ruby" are enlisted on the left panel

Related

History, etc. of Nodeclipse & Enide

I'm an experience-zero Japanese newbie for Nodeclipse & Enide. Could anyone answer my questions below? I can't find anything related to them inside Nodeclipse & Enide homepage:
What is the difference between Nodeclipse and Enide?
When and for what did Nodeclipse community (or Joyent) raise Enide?
Thank you in advance.
Fujio Nakano
As Nodeclipse author I can tell that
Nodeclipse was started at Lamb Gao from China,
then Tomoyuki Inagaki from Japan integrated debugging (see Eclipse and Node.Js debugging) and did few more releases with small contribution from Paul Verest.
And after Tomoyuki went into non responsive state, Paul Verest(me) continued and for much longer time.
Initially Enide, was .p2f file to quickly install Nodeclipse together with some other found related plugins: like Markdown. Then I used Enide for something broader then Nodeclipse: general tools and tools for Java, full standalone Eclipse IDE packages as Enide Studio.
While using Nodeclipse for Node.js tools and organization name.
There is http://www.nodeclipse.org/history page that link to some issues, but all has been public in https://github.com/nodeclipse/nodeclipse-1 issues.
You can change the website as you would like by just making change to https://github.com/nodeclipse/www.nodeclipse.org
I dont know if its appropriate question for stackoverflow or not but i am answering for your understanding!
NodeEclipse is a Node.js development plugin for Eclipse IDE while Enide is a full IDE based on Eclipse and NodeEclipse. So if you install Enide it feels like you are using Eclipse may be thats why you got confused!

eclipse - how to make required gems auto-completable

I'm using eclipse for ruby development and I have installed the Ruby Development Tools plugin. Seems eclipse doesn't auto-complete required gems, for example
require "gemA"
a = gemA.new
a. # no auto-completion
Is there a way to make it work in eclipse?
You may want to check out JetBrain's Ruby Mine. It's not free, but I've heard it's worth the money.
Also, I doubt eclipse has auto-completion for that plug-in. To make sure, check your IDE preferences that auto-completion is enabled.

Download documentation for Appcelerator [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I tried finding a way to download documentation of titanium appcelerator for offline reading
I searched a lot but couldn't find any direct or indirect way to download it
Has anyone downloaded documentation ?
It is not possible (as far as I know) to make the docs offline directly using the online version.
However it is possible to build the docs using the source code, as we all know that Titanium is open-source.
Download the source from: https://github.com/appcelerator/titanium_mobile, or clone the repo with: git clone https://github.com/appcelerator/titanium_mobile.git
Unzip the source code
cd titanium_mobile-master
Ensure that you have python installed, as well as pyyml and pygments, you can install them with: sudo easy_install pyyml, pygments
Ensure you have jsduck installed in your system, if not then install it with: gem install jsduck
write this command: apidoc/docgen.py --format=jsduck --output=dist/apidoc
cd dist/apidoc
jsduck --touch-examples-ui --output Whole titanium.js, where Whole is the output directory containing the generated docs
If you want the builtins to be included in your generated docs make the last command:
jsduck --builtin-classes --touch-examples-ui --output Whole titanium.js
That is it, you have a full searchable Ti docs offline.
By the way, I have found a working solution for one of the most common problems Ti developers face.
Working offline with Titanium Studio:
After going offline, Titanium Studio won't allow you to neither create new projects nor build/package existing projects, to work this around:
-- I have applied this procedure prior to inventing the one below, so I am not sure if it has any effect: http://developer.appcelerator.com/question/119830/use-titanium-withour-internet-connection-or-logged-off, Adam Fisher's procedure.
Open Titanium Studio while offline.
go to: ~/.titanium
vim auth_session.json
change the false to true.
Done
Now you can build and create new project as you like.
I made a shell script out of user1537325's answer. This is specific to Ubuntu 12.04, but you can probably modify it to your own OS without too much trouble. Be sure to upvote his answer as well.
https://gist.github.com/eric-hu/4952258
Warning: The layout and color scheme of the generated docs look different from those of the online docs for Titanium 3.0. I'm not sure if there are differences yet. The output from jsduck also included many warnings about "Unknown type".
You cannot directly download the API documentations from the appcelerator site, but you can use offline surfing softwares to download the website for offline reading
Here are some links from where you'll get some notes
Training resources from appcelerator
You can download and read Appcelerator Titanium Smartphone App Development Cookbook which will help you for developing applications with titanium
http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/BNAPP_ebook
Also you can refer this answers Learning titanium
There's an app for the Mac called Dash (http://kapeli.com/dash). Dash is an off-line documentation browser for software developers. It supports many languages, one of which is the Titanium API; it's a must...if you use a Mac.
However, all the documentation for the Titanium API is available as JSON files (http://docs.appcelerator.com/titanium/data/index.html), so I guess it's just a matter of building an off-line JSON reader.
R
You can download the .mobi file from
"http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/BNAPP_ebook"
and use a mobi to pdf to converter to convert it to pdf format. You can use the free service provided at :
http://www.mobi-to-pdf.com/
to do the conversion.
Hope this helps.
If you use Mac OS X you can install Dash
Dash link
Dash screenshot

How to import the ruby flickr gem "Flickraw" into eclipse?

I'm totally new to Ruby but I'd like to use it for a small application I've in mind.
But I'm struggeling at the beginning: How can I use the library "flickraw" in order to access the flickr api within eclipse?
I've managed to update ruby to 1.9.3 but in eclipse I found only an older interpreter (1.8).
Could someone please tell me how I can show eclipse where ruby 1.9.3 is installed?
Beside of that, how can I use this flickraw library in eclipse? I only know how to import jar's for a java project but not how to do it for a ruby project :(
Could someone please tell me how I can import a external ruby library into eclipse?
Machine: Mac OS X Mountain Lion,
IDE: Eclipse Juno,
flickraw library: http://hanklords.github.com/flickraw/
many thanks!
You've probably already answered your question (being 6 months ago), but I answer this to help future generations of Eclipse Rubyists who come upon your question.
I assume you're using Eclipse RDT (Ruby Development Tools). I'm using Eclipse Juno (4.2.1) on Windows, but the menu items should be the same on any OS for similar versions of Eclipse.
To change or set your Eclipse Ruby interpreter:
Go to "Windows" > "Preferences"
Click the "Ruby" entry on the left pane of the "Preferences" window
Click the "Interpreter" subentry (also on the left pane)
Click the "Add" button
Click "Browse" by the Interpreter Executable text box
Now find your Ruby executable - I used RailsInstaller on Win7, so mine is in C:\RailsInstaller\Ruby1.9.3\bin
If you found a good executable, Eclipse should figure out the rest of the interpreter information itself
To import Ruby libraries into an Eclipse project: I'm not sure per se. This is what led me to your post. I thought I needed to import all my gems by hand. But when I used the gem installer ("./gem install targetgem") and restarted Eclipse, Eclipse was magically aware of the gems. (I'm not sure what dark magic allowed Eclipse to do that.)
Hope this helps future Rubyites.

What's wrong with Aptana RadRails Eclipse update site?

I'm trying to install Aptana Studio as Eclipse plugin in Eclipse 3.3 (Europa), and I'm following instructions on this link. However, the recommended update address for Eclipse 3.3 http://update.aptana.com/install/studio/3.2/ returns the following error message:
"Unable to access site: "http://update.aptana.com/install/studio/3.2/" [Server returned HTTP response code: "403 Forbidden" for URL: http://update.aptana.com/install/studio/3.2/.]"
The latest version does install on Eclipse 3.4 (Ganymede), however I'm trying to add a bit of Ruby to existing Java-based projects and 3.3 environment my team currently uses.
Questions:
Is this only a temporary error, am I doing something wrong?
Did someone get Aptana Studio to work with Eclipse 3.3?
Is there a way to install only RadRails plugin without complete Aptana Studio? It seems to include a bunch of stuff I don't really need.
Idea here is to integrate a bit of Ruby into existing Java project, but so far Ruby has been pain in the buttocks to get working. Switching to NetBeans or installing Aptana as standalone are not really options I'd like to consider, and I'll switch to Eclipse 3.4 if I have to, but to be honest I'm currently at the point where I'm seriously considering ditching Ruby as "not mature enough" and considering other options (like Groovy for example).
There was a ticket 3913 mentioning this workaround:
manually modify the following line in the feature.xml file under C:\Program Files\Aptana\Aptana Studio 1.2\features\com.aptana.ide.feature.framework.air_1.2.5.*:
<update label="%updateSiteName" url="http://update.aptana.com/update/air/3.2/"/>
to
<update label="%updateSiteName" url="http://update.aptana.com/update/air/1.5/3.2/"/>
But in your case, both
http://update.aptana.com/install/studio/3.2
http://update.aptana.com/install/studio/1.5/3.2
redirect to:
http://update15.aptana.org/studio/26124/3.2
http://update15.aptana.org/studio/26124/1.5/3.2
So... may be a new ticket to Aptana support is in order.
I ended up using Ruby Developer Tools as described here, which were enough for my needs at this point.

Resources