On 2014-11-08 19:04:57, Kannan wrote:
> Eric,While I was working on debugger branch, I was able to compile junit code by running ant test.jdt. This doesn't work anymore after I moved to main branch. Can you tell me what I am doing wrong? For e.g., I have some test classes defined under org.eclim.jdt/test/junit/org/eclim/plugin/jdt/command/debug/. I want them compiled into the classes dir.
> Here is the error. I don't know why it is not able to connect to the test instance. Is there a failure in starting the test instance that I am not able to see? This failure is causing the test class compilation to not happen.
> --- deploy [echo] Unable to connect to eclimd on port 9092: Connection refused
> BUILD FAILED/Users/krajah/.vim/bundle/eclim/build.xml:74: The following error occurred while executing this line:/Users/krajah/.vim/bundle/eclim/build.xml:160: : Failed to connect to test eclimd instance. -- Kannan
Sorry for the late response, this email ended up in my spam folder for
some reason.
The unit tests will attempt to connect to eclimd on the non-default
port of 9092. There is an eclimrc file located at
org.eclim.core/test/eclimrc.test which can be used to start an eclim
daemon for use by the unit tests:
$ eclimd -f org.eclim.core/test/eclimrc.test
As you have probably noticed after building eclim many times at this
point, whenever the current commit hash for eclim changes, then during
the deploy stage of the build, eclim will stop any existing daemons
whose current version doesn't match that hash. This is to ensure that
as you switch branches, pull the latest code from git, etc. that you
are never running a daemon that is not up to date with the vim client
side code.
So, based on the build failure line you've posted you've either a)
not yet started the unit test eclimd instance or b) you started it but
the current commit hash changed and the build stopped your unit test
instance.
--
eric