ccw-ide / ccw

Counterclockwise is an Eclipse plugin helping developers write Clojure code
https://github.com/laurentpetit/ccw/wiki/GoogleCodeHome
Eclipse Public License 1.0
218 stars 49 forks source link

REPL does not start: filename is too long #875

Open noncom opened 7 years ago

noncom commented 7 years ago

I am having a project where CCW refuses to start a REPL both in Lein-enabled and Java-launcher-enabled ways. The project depends on two other projects in the workspace, referenced from within checkouts as well as marked dependant in Eclipse project dependencies.

My current Eclipse is

Version: Neon Release (4.6.0) Build id: 20160613-1800 CCW is Version 0.35.0.STABLE001 OS: Windows 7

Previously it worked just fine on Eclipse Mars + CCW 0.34.0.STABLE001 but there is this issure with CCW on Neon for me. Plain lein repl in the OS command line works OK and starts the repl. In this case if I "Connect to REPL" that is started in the OS command line with lein repl, it connects and everything is fine.

But there is a hint for what's going on: lein clean or lein repl via CCW's "Generic Leiningen Command Line" says "Exception occurred executing command line.

Cannot run program "C:\Program Files\Java\jre1.8.0_91\bin\javaw.exe" (in directory "D:\my_project_dir"): CreateProcess error=206, The filename is too long"

lein clean and lein run from the OS command line work OK Eclipse Mars + CCW 0.34 also work OK

noncom commented 7 years ago

This issue is gradually becoming more and more pressing, effectively preventing me from using newer versions of CCW, Eclipse and, consequently, Clojure in some not so distant future. I envision this becoming critical in a matter of 6-12 months or so.

Therefore I am willing to help to sort it out. I'd be glad to thoroughly investigate it and maybe factor a fix if I can. The problem here is that I do not know how to begin debugging CCW for it. I have found no "How to contribute" (or smth like that) section in the manual to describe how to work with the sources of CCW and to debug them.

If someone would provide a hint or a bunch of links with a brief instruction on how can I setup the environment for that and work on finding the source of the issue in CCW code, I would take from there and try fixing it.

Failing to do so would mean that the issue will eventually force me to move to another IDE, likely Emacs/Spacemacs (which I found to be mostly ok), however, I like CCW workflow and while I do use Emacs on remote PCs, still I would not like to have to switch to something else for my main local PC devopment.

I also think that other users can come across the issue if their projects have a certain feature in their configuration. As of now, I am not sure what feature exactly causes this failure, so I can't name it or determine what kind of projects is in the group of risk.