ervandew / eclim

Expose eclipse features inside of vim.
http://eclim.org
GNU General Public License v3.0
1.04k stars 127 forks source link

Suggestion: Support multiple paths for $ECLIPSE_HOME #550

Open BrainBlasted opened 6 years ago

BrainBlasted commented 6 years ago

Hey @ervandew, I've been having some trouble installing Eclim on my Linux machine. I have observed both #541 and #436. On Arch Linux, and probably other linux distributions, Eclipse is installed to /usr/lib/eclipse. This is where the launcher for eclipse is stored, and where the eclim launcher can properly find it. For users on Linux, Eclipse plugins properly go in ~/.eclipse/.../plugins/ where ... is a long string with various eclipse info. It is considered bad practice and is not allowed by programs run by non-root users to modify or place files in /usr/. The eclim installer tries to install to /usr/lib/eclipse when provided with that path, causing #541. When trying to provide the proper path, #436 occurs. I suggest that the installer uses either two separate paths/environment variables, like ECLIPSE_ROOT and ECLIPSE_HOME, or it behaves like most shells and searches each directory in ECLIPSE_HOME for the needed files before installing it's own.

ervandew commented 6 years ago

The eclim gui installer was built with the user local eclipse directory in mind and should support it. However, I just release an all new installer that completely replaces the gui installer. Please give that a shot and if it doesn't work for you, run it with the --debug flag and send me all the output so I can take a look.