KDevelop and Java

Detlev Casanova detlev.casanova at gmail.com
Wed Mar 14 12:42:10 UTC 2012


On Monday 12 March 2012 13:35:19 Milian Wolff wrote:
> On Saturday 10 March 2012 12:41:32 Detlev Casanova wrote:
> > On Thursday 08 March 2012 12:28:15 Milian Wolff wrote:
> > > On Thursday 08 March 2012 10:25:22 Detlev Casanova wrote:
> > > > On Wednesday 07 March 2012 16:11:38 Aleix Pol wrote:
> > > > > On Wed, Mar 7, 2012 at 3:33 PM, Detlev Casanova
> > > > > 
> > > > > <detlev.casanova at gmail.com> wrote:
> > > > > > Hello !
> > > > > > I'd like to know what's the status of the Java plugin for
> > > > > > KDevelop.
> > > > > > After
> > > > > > having a look on the git repository, it seems that it's been a
> > > > > > while
> > > > > > since
> > > > > > the last commit.
> > > > > > 
> > > > > > Is it unmaintained ?
> > > > > > Has it become not interresting anymore ?
> > > > > > 
> > > > > > Would you like to see it back on tracks or are there other
> > > > > > priorities
> > > > > > ?
> > > > > > 
> > > > > > Detlev Casanova.
> > > > > > 
> > > > > > --
> > > > > > KDevelop-devel mailing list
> > > > > > KDevelop-devel at kdevelop.org
> > > > > > https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
> > > > > 
> > > > > Script Kiddy doesn't count as maintaining. :P
> > > > > 
> > > > > The last time I looked (last summer) the Java language support was
> > > > > not
> > > > > that bad, it has to be ported to new Kate ranges interface, because
> > > > > the one we used to have was deprecated some time ago.
> > > > > 
> > > > > Short answer: needs work, but not a huge amount of work.
> > > > 
> > > > I'll try to make it compile with the new range interface, then make
> > > > sure
> > > > it
> > > > works and see if it can be used properly with new versions of
> > > > kdevelop.
> > > > 
> > > > Do people on this mailing list and on #kdevelop know about that new
> > > > range
> > > > interface ? In case I have questions :-)
> > > 
> > > Very nice.
> > > 
> > > commit dcbeb493ea86547af81d5a90fa168cc152ab4efa in kdev-php might be
> > > interesting, yet there can of course be follow-up commits that fix the
> > > odd
> > > bug. I can of course assist you via email/irc if I have time. Just drop
> > > the
> > > mail to this mailing list.
> > 
> > I hit reply to author last time, sorry.
> > 
> > It now compiles and KDevelop loads it properly (I would say that kdev-php
> > and kdev-java are based on each other, as the code is a comparable.)
> > 
> > It still doesn't work properly and, for instance, doesn't find errors
> > (System.out.printlnThatDoesNotExist("Hello world"); is not underlined,
> > which it should be I suppose...)
> 
> Afaiks this never worked.
>
> > I'll keep looking into ParseJob::run() which is the most probable place
> > that makes it not working.
> 
> No, this should actually be done by the usebuilder.

I see more clearly how all those classes work together now. So I'm looking 
where the problem could come from (for instance, contexts are not properly 
found, which makes the rest not foud either)

> > Also, autocompletion doesn't work but I haven't got there yet (except for
> > porting)
> 
> It never worked for imports, only - barely - for file-local defined stuff.

I see how this could be complicated. Maybe the whole java sources will have to 
be loaded (at least the functions definitions and variables) when the plugin 
is loaded. But the user will have to provide the java source code...

For most cases, I have a look at the kdev-php code.

> > Also, I created a kdevelop template. Can the kdev-java plugin provide such
> > templates when it is installed (for instance : CMake and Java) ?
> 
> Sure.
> 
> > Is there something like an Ant plugins yet ?
> 
> Not to my knowledge. You can write one based on the
> AbstractFileManagerPlugin, it is (imo) quite straight forward. If you need
> help, just ask here.
> > Finally, how do you prefer getting the code ? I committed it into my local
> > git repo, in master. Mail ? Reviewboard ? Something else ?
> 
> You probably don't have a developer account yet, hence I'd like to see the
> patch on reviewboard first. If it's multiple commits, just to get it
> compiling, please squash the commits for review, but send them later on as
> created by "git format-patch".

I actually had a developer account for svn, but I haven't used it in a while 
now. I'm not event sure that the public key I provided for that account is the 
one I used now...
I'll send the first patch to reviewboard.

Thanks,

Detlev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20120314/cbea3a44/attachment.html>


More information about the KDevelop-devel mailing list