________________________________
> From: Qt-creator <qt-creator-boun...@qt-project.org> on behalf of Jason H 
> <jh...@gmx.com>
> Sent: Monday, September 14, 2020 6:45 PM
> To: Eike Ziller <eike.zil...@qt.io>
> Cc: qt-creator <qt-creator@qt-project.org>
> Subject: Re: [Qt-creator] Java support?


> > > On Sep 10, 2020, at 20:21, Jason H <jh...@gmx.com> wrote:
> > >
> > > I'm working in an Android/iOS app and while creator is just fine for 
> > > iOS/Objective-C, QtCreator is not fine at all for Android/Java.
> > >
> > > I'm wondering how close QtCreator is to being able to:
> > > * present the java files and classes in the Project explorer (gradle 
> > > integration?)
> >
> > I don’t see gradle integration coming. When we’d finished it, Google would 
> > probably switch to something else :P

> I guess they already have in the sense that Kotlin is now an Android 
> language. :-( But it seems that Gradle is here to stay.

> > But you should be able to use a Generic Project for that: File > New > 
> > Import Project > Import Existing Project. (For the language server you 
> > should probably import the module base directory?)
> > That could probably be made more obvious… like not putting it at the end of 
> > a category with lots of version control related items, and calling it 
> > something like Import Directory or such (there doesn’t need to be a 
> > “project” of any kind).
> >
> > > * parse and edit Java code
> > >
> > > I'm thinking the language server would do a lot of the heavy lifting?
> >
> > The java-language-server would/should solve the “parse and edit” part.
> > I have not tried it, but probably setting it up as “Start Server per 
> > Project” is required, and probably having the module path as the base of 
> > the Qt Creator project.
> > Also, Qt Creator still has a specialized Java editor from the pre-LSP 
> > times, which might interfere with the language client, so switching the 
> > handler for text/x-java to “Plain Text Editor” in Preferences > Environment 
> > > MIME Types might be needed to.
> >
> > I agree that someone should check this, potentially throwing the old Java 
> > editor away, and maybe Qt Creator can help a bit with setting up the Java 
> > language server too, similar to what we do for Python.

Even though I don't (yet) have good knowledge of language servers, I think this 
is something that will be very helpful for Qt for Android development. I 
created this ticket https://bugreports.qt.io/browse/QTCREATORBUG-24712 to 
follow up on this proposal. I think the ticket could also discuss any potential 
solutions for improving Java support for QC.

> +1

> _______________________________________________
> Qt-creator mailing list
> Qt-creator@qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator

Reply via email to