From: Rha Date: 2008-02-09T12:59:55+09:00 Subject: Re: Anyone use eclipse on Windows? Try adding: require 'rubygems' at the beginning of your program, it won't hurt your program when run in Linux, and will probably fix your problem on Windows. Also check in the preferences, the paths to rake, rails and ruby. On Fri, 8 Feb 2008 21:36:38 -0500, Day wrote: >On Feb 8, 2008 2:20 AM, Dejan Dimic wrote: >> I am using: >> Eclipse: Version: 3.3.1.1 Build id: M20071023-1652 >> Subclipse: version 1.2.4 >> Apatana PlugIn >> RadRails 0.8.0.200707021211 > >What's Apatana? > >> and haven't encounter that kind of problems. >> Does it malfunction regarding requiring your files or in general? >> Perhaps you should use require File.expand_path(File.dirname(__FILE__) >> + your_file_relative_path). > >It complains about not being able to find the file. We're using some >init stuff that looks similar to that, but eclipse thinks it can't >find those, either. When I hand-add what you suggested, it works. >But... I shouldn't have to change my code to adapt to my IDE. That's >ridiculous. Does this maybe indicate that eclipse doesn't... know >where it is, sort of? Could it have to do with the fact that I added >the .project and .loadpath to the SVN repository's ignore list? That >doesn't seem to make sense. > >Thanks for your suggestion, but I guess I'm still looking for the >setting I need to twiddle to fix this. > > >Ben