On Sat, May 5, 2012 at 11:21 AM, Eric Van Dewoestine <
erva...@gmail.com> wrote:
>
> How soon after starting eclipse are you triggering the shutdown? I'm
> wondering if perhaps some eclipse startup jobs are still running in
> the background when you issue the shutdown and perhaps none of the
> eclipse shutdown api calls that headless eclimd makes are waiting on
> those jobs resulting in them being terminated unexpectedly, leaving
> corrupted index files, etc. in your workspace.
>
> Does the problem still occur if you wait for eclipse cpu utilization
> to drop for a bit after startup before forcing a shudown?
>
Good questions, it hadn't occurred to me that the timing would affect things.
I tried again:
1. double-click eclimd.bat
2. wait for CPU of eclipse.exe to drop to 00; eclimd console window
displays, at the very bottom:
2012-05-07 09:30:52,031 INFO
[org.eclim.eclipse.AbstractEclimApplication] Loaded plugin
org.eclim.core
3. At 9:33, launch gvim.
4. Run :EclimEnable command (my .vimrc has a VimEnter autocmd which
runs EclimDisable, because a lot of the time I don't already have
Eclipse running when I launch Vim)
5. PingEclim tells me to select my workspace, I do so, and it shows
version information.
6. :ShutdownEclim. Time is now 9:35 and eclipse.exe is still at 00
CPU. Note I am prompted again for workspace.
7. I now get, within Vim, "unable to connect to eclimd (port: 9091) -
connect: No connection could be made because the target machine
actively refused it
8. Exit Vim with :q, time is now 9:38 and there is no eclipse in taskmgr.
9. Launch Eclipse normally. Normally, my workspace automatically
opens. This time, it does not.
10. Eclipse is at 00 CPU in taskmgr. Wait until 9:40 and switch to my
workspace from the File menu.
11. Get the error mentioned (An error has occurred. See the log file).
>> Do you want the log mentioned in the error message? I'm certainly not able
>> to extract anything useful out of it, but then, I haven't done any sort of
>> java debugging since my entry-level CS courses back in college.
>
> It would hurt to have a look at it. Knowing eclipse error messages it
> probably won't help but who knows.
>
Prior to all this, I deleted the log file, so that the log file
contains only events from this session. See attached, I hope it is
useful.