Console Panel

42 views
Skip to first unread message

ethan dumas

unread,
Jun 12, 2013, 5:23:26 AM6/12/13
to eclim...@googlegroups.com
First thanks for creating Eclim. It is very useful. 

After search eclim user forum, I do not find similar one; so post my question here.

It's easy to edit Java program with the aid of eclim because it provides code aid, search, jump to function, etc. features. However, with current eclim (1.3.0.v20120522-1813), I do not know how to 

  1. run/ compile a program which will display in a console panel 

  2. then check the output message (e.g. javac compilation failure)

  3. go back to the editor panel, refactoring my code

  4. then go to 2 until all tasks are done.

Is there any command in eclim that can launch another panel (e.g. in the bottom) which shows the execution result? And then I can switch between console panel and editor pane for editing my program?

My current solution is using Vimux plugin to create a panel in the bottom to run interactive command (e.g. mvn clean package). With this plugin, the problem is if there is a e.g. compilation failure, I need to remember which line that goes wrong. Then type exit in the panel to exit Vimux, returning to eclim right hand side editor pane for refactoring my code. But I can't remember all error messages. So I have to execute the command again which I expect would produce error (or copy paste all error message into another editor). Then go back again to to eclim's editor pane. This cycle is in fact time consuming. 

So I would like to check if there is any way I can make use of eclim's command to launch a pane (in the bottom) for executing/ compiling program, then hide it if I want to edit the source; and then go back to max console panel if necessary? 

Thanks for help


Eric Van Dewoestine

unread,
Jun 15, 2013, 11:35:30 PM6/15/13
to eclim...@googlegroups.com
On 2013-06-12 02:23:26, ethan dumas wrote:
> First thanks for creating Eclim. It is very useful.
>
> After search eclim user forum, I do not find similar one; so post my
> question here.
>
> It's easy to edit Java program with the aid of eclim because it provides
> code aid, search, jump to function, etc. features. However, with current
> eclim (1.3.0.v20120522-1813), I do not know how to
>
> 1. run/ compile a program which will display in a console panel

By "console panel" do you mean the standard one in the eclipse gui or
a vim window/buffer?

> 2. then check the output message (e.g. javac compilation failure)

:ProjectProblems will open up a quickfix window with all the
compilation failures, etc for your project.

> 3. go back to the editor panel, refactoring my code
>
> 4. then go to 2 until all tasks are done.
>
> Is there any command in eclim that can launch another panel (e.g. in the
> bottom) which shows the execution result? And then I can switch between
> console panel and editor pane for editing my program?

If by "panel" you mean a vim window, then you can use eclim's :Java
command, but if you are referring to an eclipse panel, then I guess
you'd want to use the standard eclipse launcher (I'm not sure if you
are running a headed or headless eclipse)?

> My current solution is using Vimux plugin to create a panel in the bottom
> to run interactive command (e.g. mvn clean package). With this plugin, the
> problem is if there is a e.g. compilation failure, I need to remember which
> line that goes wrong. Then type exit in the panel to exit Vimux, returning
> to eclim right hand side editor pane for refactoring my code. But I can't
> remember all error messages. So I have to execute the command again which I
> expect would produce error (or copy paste all error message into another
> editor). Then go back again to to eclim's editor pane. This cycle is in
> fact time consuming.

If you were to run ":Mvn clean package" in vim instead, then any
compilation errors should be added to vim's quickfix window (:copen),
allowing you to navigate to each error (:cnext, etc).

> So I would like to check if there is any way I can make use of eclim's
> command to launch a pane (in the bottom) for executing/ compiling program,
> then hide it if I want to edit the source; and then go back to max console
> panel if necessary?

For the compilation portion, it sounds like running your maven target
using the :Mvn command or using the :ProjectProblems command would
both be possible solutions allowing you to view and navigate to
errors.

As for executing the program, eclim only supplies a simple :Java
command to do so (not that it does not currently fork the java
process, so it will block eclim while running). There is a pull
request[1] which aims to add support for using eclipse launch
configurations, but it still needs some work.

[1] https://github.com/ervandew/eclim/pull/177

> Thanks for help

--
eric
Reply all
Reply to author
Forward
0 new messages