eclipse 3rdrail db migration wizard fails

10 views
Skip to first unread message

brian sur

unread,
Jul 23, 2013, 12:31:14 PM7/23/13
to rubyonra...@googlegroups.com
Hello,
I am attempting to do a new db migration on an existing project however
when I try to run the migration wizard it fails with the following error
in my console window.

>script/generate migration --force tests
Unable to locate the Ruby interpreter. Please configure one via 'Window
| Preferences... | Ruby/Interpreters'.
>

I have already specified "Generic Ruby" Located at:
C:\Ruby200-x64\bin\ruby.exe

I also tried "Generic Ruby" Located at: C:\Ruby187\bin\ruby.exe

since I do have both versions installed.

I am on windows 7 x64 running 3rdrail and eclipse.

I am bran new to ruby development and look forward to learning!

Thanks

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Jul 23, 2013, 3:25:25 PM7/23/13
to rubyonra...@googlegroups.com
On 23 July 2013 17:31, brian sur <li...@ruby-forum.com> wrote:
> Hello,
> I am attempting to do a new db migration on an existing project however
> when I try to run the migration wizard it fails with the following error
> in my console window.
>
>>script/generate migration --force tests
> Unable to locate the Ruby interpreter. Please configure one via 'Window
> | Preferences... | Ruby/Interpreters'.
>>
>
> I have already specified "Generic Ruby" Located at:
> C:\Ruby200-x64\bin\ruby.exe
>
> I also tried "Generic Ruby" Located at: C:\Ruby187\bin\ruby.exe

What do you mean you "tried" them?

What happens if you do
C:\Ruby200-x64\bin\ruby.exe script/generate migration --force tests
or the same with the other Ruby?

>
> since I do have both versions installed.
>
> I am on windows 7 x64 running 3rdrail and eclipse.

I am sorry to hear that, you have my sympathies.

>
> I am bran new to ruby development and look forward to learning!

Work right through a good tutorial such as railstutorial.org (which is
free to use online). That will show you the basics of rails. If at
all possible move to a Linux OS such as Ubuntu for your rails
development. You will find fewer problems and will find it easier to
get help as most rails developers use Linux or Mac. You can run
Ubuntu in a virtual machine in Windows or set your PC up to dual boot
Win and Ubuntu. I suspect the problem you have described is a Win
issue.

Colin

brian sur

unread,
Jul 23, 2013, 3:32:55 PM7/23/13
to rubyonra...@googlegroups.com
Colin Law wrote in post #1116404:
I made some progress, I removed the 187 interpreter I then re-added it
and my migration ran. However I had auto build checked and now its been
building at 4% for 2 hours. I have read other had this issue as well but
I have not found any information on fixing builds that last forever. My
project is not that big. I have done several tutorials and they worked
great, But this is an existing project that I did not write that I am
currently working in.

Colin Law

unread,
Jul 23, 2013, 3:37:34 PM7/23/13
to rubyonra...@googlegroups.com
On 23 July 2013 20:32, brian sur <li...@ruby-forum.com> wrote:
>
> I made some progress, I removed the 187 interpreter I then re-added it
> and my migration ran. However I had auto build checked and now its been
> building at 4% for 2 hours. I have read other had this issue as well but
> I have not found any information on fixing builds that last forever. My
> project is not that big. I have done several tutorials and they worked
> great, But this is an existing project that I did not write that I am
> currently working in.

What is autobuild? There is normally nothing to build on a Rails
project (at least in development mode). Just start the server and off
it goes.

Colin

brian sur

unread,
Jul 23, 2013, 3:42:31 PM7/23/13
to rubyonra...@googlegroups.com
Colin Law wrote in post #1116406:
I am using 3rdrail and eclipse At the top of screen:
Project->Build Automatically

Colin Law

unread,
Jul 23, 2013, 4:02:00 PM7/23/13
to rubyonra...@googlegroups.com
No idea what that does, sorry. You will have to find someone with
3rdrail or eclipse knowledge (you have not made it clear whether that
is an eclipse action or 3rdrail). 3rdrail is a paid for product is it
not? Presumably they offer support.

Colin

brian sur

unread,
Jul 24, 2013, 7:58:10 AM7/24/13
to rubyonra...@googlegroups.com
Colin Law wrote in post #1116409:
This is a feature of eclipse, I also found out that what is triggering
these builds is when I select the ruby interpreter, It apparently needs
to do an initial build.
Reply all
Reply to author
Forward
0 new messages