C project configuration NullPointerException

15 views
Skip to first unread message

Dávid

unread,
Apr 13, 2010, 9:46:42 AM4/13/10
to eclim-user
Hi!

I've a quite big c++ project (not managed by eclcipse before), and i
used eclim's ProjectCreate on it with "-n c++" (the source files are
in two folder, like: "src1/moduleX/*", "src2/moduleY/* ....). The
projecet creation seemed to be ok, but after than i run
CProjectConfigs and i've got the following error (trunk is the name of
my project):

davidk@davidk-laptop:~/remote/trunk$ /usr/lib/eclipse/eclim -command
c_project_configs -p "trunk"
java.lang.NullPointerException
at
org.eclim.plugin.cdt.command.project.ConfigurationsCommand.execute(ConfigurationsCommand.java:
72)
at org.eclim.command.Main.main(Main.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:
334)

Can anyone help on this? or is there some workaround?

Best regards, David

Eric Van Dewoestine

unread,
Apr 13, 2010, 10:33:31 AM4/13/10
to eclim...@googlegroups.com

I'm not sure off hand what would cause this, but of all the languages
that eclim supports, currently c/c++ project creation is the one that
I'm least confident in. While it works for all the cases I've tried,
the cdt api for initializing a new project is far from straight
forward. I'll see if I can reproduce this particular issue, but in
the meantime I'd suggest the following workaround (if you are using
eclimd inside of the eclipse gui then you can skip steps 2, 3, and 5):

1. delete the project (this will only delete the eclipse artifacts,
not any of your files): :ProjectDelete trunk
2. stop eclimd
3. start the eclipse gui
4. create your project from the gui
5. close the eclipse gui and then start eclimd

Using those steps should ensure that your project is setup properly.
Once that is done, then all the c/c++ commands provided by eclim
should work normally.

--
eric

Dávid

unread,
Apr 14, 2010, 3:16:38 PM4/14/10
to eclim-user
Thx, for your reply, but don't bother with finding the problem, my
eclipse's (what i installed from apt) CDT didn't worked for some
reason, but after i downloaded from eclipse's page (and after
reinstallation of eclim) and unzipped it, it magically worked
perfectly (without starting eclipse's gui)

Eric Van Dewoestine

unread,
Apr 14, 2010, 3:28:55 PM4/14/10
to eclim...@googlegroups.com
On Wed, Apr 14, 2010 at 12:16:38PM -0700, D�vid wrote:
> Thx, for your reply, but don't bother with finding the problem, my
> eclipse's (what i installed from apt) CDT didn't worked for some
> reason, but after i downloaded from eclipse's page (and after
> reinstallation of eclim) and unzipped it, it magically worked
> perfectly (without starting eclipse's gui)

Glad to hear that you got it fixed, and that it wasn't eclim's fault
;).

I've been increasingly disappointed with ubuntu's (debians?) eclipse
packages. I think the vast majority of issues reported are from users
using apt-get installed eclipse :( (though it could just be that the
majority of users are on ubuntu).

--
eric

Dávid

unread,
Apr 14, 2010, 3:34:04 PM4/14/10
to eclim-user
Yeah, i'm using ubuntu, i'll encourage my co-workers to download
instead:/
Reply all
Reply to author
Forward
0 new messages