Java Usage

10 views
Skip to first unread message

disappearedng

unread,
Jul 10, 2009, 2:55:47 AM7/10/09
to eclim-user
Hey everyone,
Is it possible to get Eclim to show the warnings instead of the errors
in your code. For example,

List<String> hi = new ArrayList<String>();
hi[0];

Note that on eclim it shows as an error (which is fine). :JavaCorrect
on that line produces: No Suggestions. However, if you pop into the
eclipse window GUI, you will notice that it says:

"Multiple markers at this line
- The type of the expression must be an array type but it resolved to
List<String>
- Syntax error, insert "AssignmentOperator Expression" to complete
Expression"

Can I set eclim such that it will report this as well?

Also, I find it annoying that I have to go back to my eclipse window
to use Ctrl-B to build the project, is it possible to issue a build
command in eclim to build the entire project??

Last but not least, is it possible to manipulate the project such that
I can include an external jar within eclim for this project??


disappearedng

Eric Van Dewoestine

unread,
Jul 10, 2009, 10:33:33 AM7/10/09
to eclim...@googlegroups.com
On Thu, Jul 9, 2009 at 11:55 PM, disappearedng<disapp...@gmail.com> wrote:
>
> Hey everyone,
> Is it possible to get Eclim to show the warnings instead of the errors
> in your code. For example,
>
> List<String> hi = new ArrayList<String>();
> hi[0];
>
> Note that on eclim it shows as an error (which is fine). :JavaCorrect
> on that line produces: No Suggestions. However, if you pop into the
> eclipse window GUI, you will notice that it says:
>
> "Multiple markers at this line
>        - The type of the expression must be an array type but it resolved to
> List<String>
>        - Syntax error, insert "AssignmentOperator Expression" to complete
> Expression"
>
> Can I set eclim such that it will report this as well?

I just tested this and eclim does report the second message, but not
the first. I'm not sure how eclipse is generating that first message,
but I'll make a note to look into it.

> Also, I find it annoying that I have to go back to my eclipse window
> to use Ctrl-B to build the project, is it possible to issue a build
> command in eclim to build the entire project??

You should be able to add something like this to your .gvimrc:

if has('netbeans_enabled')
nmap <silent> <c-b> :call eclim#vimplugin#FeedKeys('Ctrl+B')<cr>
endif

See the eclim docs for more info (scroll down to the "Eclipse/Vim key
shortcuts in embedded gvim" section, just past the screen shot):
http://eclim.sourceforge.net/eclimd.html#gvim-embedded

> Last but not least, is it possible to manipulate the project such that
> I can include an external jar within eclim for this project??

You can manipulate you project's .classpath file as described here:
http://eclim.sourceforge.net/vim/java/classpath.html

--
eric

disappearedng

unread,
Jul 10, 2009, 10:57:11 AM7/10/09
to eclim-user


On Jul 10, 10:33 pm, Eric Van Dewoestine <ervan...@gmail.com> wrote:
I am not using the gvim within Eclipse. I am using vim mainly. Are
there alternatives?

Eric Van Dewoestine

unread,
Jul 10, 2009, 11:20:12 AM7/10/09
to eclim...@googlegroups.com

I guess I misunderstood your usage scenario. If you are not launching
gvim from eclipse, then there is currently no way to run an eclipse
build from vim. Outside of the eclipse gui, eclim only provides
support for running ant, maven, or straight javac.

--
eric

Reply all
Reply to author
Forward
0 new messages