For anyone still running on eclipse 3.4 (ganymede), please note that
portions of the master branch may no longer compile against eclipse
3.4 (pdt and cdt support for example). So please don't pull the
latest code unless you are prepared to upgrade eclipse as well.
If anyone has an questions or concerns, please feel free to let me
know.
--
eric
Hey Eric,
I'm having an issue compiling the latest git code against Eclipse 3.5.
I'm getting this error:
% ant -Declipse.home=/Applications/Eclipse/ -Dplugins=ant,jdt
Buildfile: build.xml
init:
build.eclipse:
[javac] Compiling 30 source files to /Users/hinmanm/src/java/
eclim/build/temp/classes
[javac] /Users/hinmanm/src/java/eclim/src/java/org/eclipse/swt/
widgets/EclimComposite.java:30: cannot find symbol
[javac] symbol : method checkStyle(int)
[javac] location: class org.eclipse.swt.widgets.EclimComposite
[javac] super (parent, checkStyle (style));
[javac] ^
[javac] 1 error
Do you know what would be causing this issue?
- Lee
I'm not sure why that would compile for me and not you, but
regardless, I removed the call to checkStyle since it's not really
necessary anyways. Try pulling the latest from git and see if it
compiles for you now.
--
eric
Eric,
Pulling from the latest git fixed the problem, the only thing I had to
do was copy the $ECLIPSE_HOME/eclipse symlink to the new Galileo
Eclipse directory so the eclimd script could find the eclipse
executable (on OSX).
Thanks for the quick fixes!
- Lee
I ran into a similar issue as well and since then I haven't been able
to reproduce it. The steps that resolve the problem for me were:
1. delete all the eclim plugins from eclipse/plugins
2. start eclipse
3. stop eclipse
4. build eclim again (re-deploying the plugins).
Also, make sure that when you build eclim, that you include dltk (new
requirement for pdt support) in the list of plugins, otherwise you'll
just receive an error regarding that dependency not being found.
$ and -Dplugins=dltk,pdt,jdt
I'll try reproducing the problem some more and see if I can find a way
to avoid whatever caching eclipse is performing.
--
eric
Could you elaborate on that? What directory did you move the symlink
from and to? Also what path is your ECLIPSE_HOME set to, or if you
supplied it via -Declipse.home, what path did you use there? If it
makes sense to, I'll update the build script to accommodate your
scenario so you, or other users with a similar setup, don't have to
worry about the extra step of moving the symlink around.
--
eric
Evidently, the new Galileo tarball for OSX doesn't include a symlink
to the Eclipse binary in the Eclipse folder, so I moved the symlink I
had from my old Eclipse installation directory into the new one.
Here's the resulting Symlink:
~% ll /Applications/Eclipse/eclipse
lrwxr-xr-x@ 1 hinmanm staff 34B Jun 28 23:22 /Applications/Eclipse/
eclipse@ -> Eclipse.app/Contents/MacOS/eclipse
I set my -Declipse.home to be /Applications/Eclipse
In the future, I suppose it would make sense to check for OSX-ness (or
create the symlink) since the symlink was missing for me.
- Lee
Ah, I misread your earlier mail. I was thinking that the eclimd
symlink was the issue. I didn't realize that the eclipse executable
was located outside the eclipse home on the mac. Just to make it
clear, is the absolute path of your eclipse executable located under
your eclipse home?
/Applications/Eclipse/Eclipse.app/Contents/MacOS/eclipse
Did you install eclipse from an eclipse.org distribution? If this is
a standard location for the eclipse executable, then I can just update
the eclimd script to check that path if the executable isn't found
elsewhere, which should alleviate the need for the eclipse symlink.
--
eric
Yep, keep in mind that the Mac distribution untars to a folder named
"eclipse", not "Eclipse". I just change it because I'm OCD about
capitalization, so if someone didn't rename it, it'd be:
/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse
ECLIPSE_HOME in the first example:
/Applications/Eclipse
ECLIPSE_HOME in the second example:
/Applications/eclipse
Hope that makes sense, the actual symlink only links to
'Eclipse.app/Contents/MacOS/eclipse' (relative), not the full Eclipse
path.
> Did you install eclipse from an eclipse.org distribution? If this is
> a standard location for the eclipse executable, then I can just update
> the eclimd script to check that path if the executable isn't found
> elsewhere, which should alleviate the need for the eclipse symlink.
Yep, this is the OSX tarball downloaded from eclipse.org. The
executable for Eclipse should *always* be
ECLIPSE_HOME/Eclipse.app/Contents/MacOS/eclipse on OSX (unless the
Eclipse foundation changes it), so you should be able to add a check
for it.
Let me know if there's anything else I can do to help.
- Lee
I went ahead and added the additional path to the eclimd script, so if
you can, please pull the latest git, remove your eclipse symlink and
see if the new script finds your eclipse executable correctly.
Thank you very much for your help so far. Without direct access to a
mac myself, I've had to rely heavily on the helpfulness of mac users
such as yourself, and I really do appreciate it.
--
eric
What is the exact location of your eclipse executable?
--
eric
I think I see the issue. It looks like I had a typo in the shell
script used by the installer. To verify, if you remove that symlink,
does eclimd still start up correctly (headless version using
$ECLIPSE_HOME/eclimd)?
--
eric
Ok, good. I'll apply the change to the installer for the next
release. Thank you for the help.
--
eric