debugging ruby with eclipse dltk - ruby

I'm trying to debug ruby scripts with eclipse helios (dltk installed) on a win7 x64 machine and ruby1.92 environment
I installed ruby-debug19, ruby-debug-base19, ruby-debug-ide19 gems but still can't debug rb scripts with eclipse dlt it says following,
Debugging Engine not started
The 'Fast Ruby Debugger (ruby-debug)' is selected, but the 'ruby-debug' gem doesn't seem to be installed in the selected Ruby Interpreter (C:\Ruby192\bin\ruby.exe)
I also added c:\Ruby192\lib\ruby\gems folder to system library paths of ruby interpreter settings in eclipse.
Any ideas?

Try setting the GEM_HOME and GEM_PATH environment variables on your machine.

It's just what I've been told by my programming-prof., but he told me there is acutally no way to use the debugger for Ruby > 1.8. So, maybe, if Ruby 1.8 suits for your requirements, you could use the 1.8 interpreter for debugging.

Related

Unable to install and use Ruby plug-in on IntelliJ for Mac

I am unable to get IntelliJ to list and recognize Ruby projects. I'm using a Mac (High Sierra). Ruby was installed using RVM.
After I installed the Ruby plug-in, the plug-ins tab under Preferences shows the Ruby plug-in in red (any idea why?). According to the download page, the version of the plugin I downloaded matches the version of IntelliJ I'm running.
Even then, when I try to create a new project, Ruby isn't listed as part of the options.
The Ruby plugin requires IntelliJ IDEA Ultimate (Community Edition is being used)

Program added to path but cmd not recognizing/finding it (ruby version manager for windows)

I've installed pik in a windows machine so I can manage my ruby versions I also added the path to the PATH variable, but pik is not being recognized, I also created an alias but that just results in an error when it's used but the program runs fine when I run it directly ("C:\ruby_bin\pik").
What is going on?
p.s. ruby is installed in "C:\ruby", just so you know.
In the end I used the windows installer and that worked, don't know why it worked over the ruby gem version but whatever, so lesson for the future, just use the windows installer.

Want to install Jruby but intimidated by RVM

Want to install Jruby and I am pretty sure that I want to manage it with RVM. My problem is that I am a little intimidated by RVM with its command line and all the dependencies (bash, git, etc.) I am on Windows 7, ruby 1.9.3.
Can someone please help a newbie out and explain this in English.
Thanks
RVM is not supported on windows.
"If you would like to manage multiple versions of ruby on windows please use pik which is an excellent tool by Gordon Thiesfeld. You can find it on GitHub."
Options to manage ruby version over windows:
pik is a tool to manage multiple versions of ruby on Windows. It can be used from the Windows command line (cmd.exe), Windows PowerShell, or Git Bash. Github-pik
You can also use Cygwin and then install the various packages required.
Checkout
How to install rvm on windows using cygwin
I would recommend using linux/mac OS when working with open source.
If you want to install ruby on Windows I suggest you to use PIK. It's sponsored by RubyInstaller.
And, about install Jruby on Windows ... all that you have to do is go to JRuby website and download the .exe file.
JRuby Website Link here: http://jruby.org/download

Ruby IDE and the Ruby Version Manager

I am trying to use either Aptana or RubyMine. I am using RVM so I can have multiple versions Ruby at once, but when I am starting a new project in either of them I get the 1.8.7, which is not what I want to use. I have installed the latest 1.9.2 and it is this version that I want to use, how do I manage that? (I have set the 1.9.2 as default in command line)
In RubyMine you can choose your Ruby version in the menu Preferences -> Ruby SDK and Gems.
In RubyMine 4, Preferences has been changed to File -> Settings...

RadRails (Eclipse plug-in) not recognizing 1.9.1 ruby features

I installed RadRails as a plugin to eclipse, and I set the interpreter to C:\ruby, the location of my ruby installation. I've also installed RubyGems 1.3.5 via the ruby setup.rb script.
When I run the following, however, I get syntax errors in eclipse, although running works.
test = {
raw: '1',
symbols: '2'
}
p test
Furthermore, when I start eclipse, a prompt asks me to install a number of gems. When I continue, I receive a number of unexpected tCONSTANT, expecting $end errors. Has anyone run into this, and is there a viable solution?
Assuming you've installed the latest version of RadRails, it seems as if 1.9 is not yet supported.
The quick and easy solution is to not use Eclipse and RadRails. Personally, the only Windows IDE I've been remotely pleased with is RubyMine. If you're on a Mac, the choice is much simpler: TextMate.

Resources