KDevelop and Java

Detlev Casanova detlev.casanova at gmail.com
Thu Mar 15 14:02:44 UTC 2012


On Wednesday 14 March 2012 13:42:10 Detlev Casanova wrote:
> 
> 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.

Mmmh, I can't login on reviewboard. my login works for svn.reviewboard.kde.org 
but not for git.reviewboard.kde.org...
I attach the patch here.

As for java parsing, the grammar caontains lots of conflicts. I don't really 
understand why but I believe it may be the source of some problems : not 
creating a DuChain because the Ast is almost empty (The only Ast node  given 
by the parser is a CompilationUnit (equivalent to the Start in the PHP 
plugin))

I don't really now how to start fixing that, I just started my Compiler course 
:)

> Thanks,
> 
> Detlev. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-compile-with-new-movingrange-interface.patch
Type: text/x-patch
Size: 57901 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20120315/25501641/attachment.patch>


More information about the KDevelop-devel mailing list