Update to KF5 and latest KDevelop
Details
- Reviewers
kfunk apol kossebau brauch - Commits
- R65:ede6824f596e: Resurrect kdev-java
Builds and loads in KDevelop, doesn't crash when opening Java file
Diff Detail
- Repository
- R65 KDevelop Java
- Branch
- kf5
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 9042 Build 9060: arc lint + arc unit
Only I had to disable tests, because they depend on kdevplatform/tests/*.h which doesn't get installed with KDevelop
Nice work!
These headers should normally be installed.
Some distro packages of KDevelop omit them, because of explicitly setting -DBUILD_TESTING=OFF during the build process.
You should be able to copy them manually, or add the source dir as an extra include path.
I tried this; it compiled successfully on my system, the plugin loads, but in quick testing I couldn't see any effects when opening a Java project.
What features are currently added by the plugin in this state?
These headers should normally be installed.
Some distro packages of KDevelop omit them, because of explicitly setting -DBUILD_TESTING=OFF during the build process.
You should be able to copy them manually, or add the source dir as an extra include path.
Yeah I realized I had KDevelop compiled without tests so now I built it with and made kdev-java tests buildable, but they fail, not sure why.
I tried this; it compiled successfully on my system, the plugin loads, but in quick testing I couldn't see any effects when opening a Java project.
What features are currently added by the plugin in this state?
That's pretty much why I did this to see if I could use KDevelop for Java but it appears that not really 😢 There's a lot of code but it seems it implements only Java parsing/syntax highlighting and code completion which looks like doesn't work. For this to be usable features I would need would be follow/jump to declaration/implementation and refactoring (rename package/class/method/variable)
Em ter, 5 de mar de 2019 às 18:36, Dāvis Mosāns <noreply@phabricator.kde.org>
escreveu:
davispuh added a comment. View Revision
https://phabricator.kde.org/D19457In D19457#422812 https://phabricator.kde.org/D19457#422812, @davispuh
https://phabricator.kde.org/p/davispuh/ wrote:Only I had to disable tests, because they depend on kdevplatform/tests/*.h
which doesn't get installed with KDevelopThese headers should normally be installed.
Some distro packages of KDevelop omit them, because of explicitly setting
-DBUILD_TESTING=OFF during the build process.You should be able to copy them manually, or add the source dir as an
extra include path.Yeah I realized I had KDevelop compiled without tests so now I built it
with and made kdev-java tests buildable, but they fail, not sure why.I tried this; it compiled successfully on my system, the plugin loads, but
in quick testing I couldn't see any effects when opening a Java project.
What features are currently added by the plugin in this state?That's pretty much why I did this to see if I could use KDevelop for Java
but it appears that not really 😢 There's a lot of code but it seems it
implements only Java parsing/syntax highlighting and code completion which
looks like doesn't work. For this to be usable features I would need would
be follow/jump to declaration/implementation and refactoring (rename
package/class/method/variable)
Well, it’s a welcoming first step.
*REPOSITORY*
R65 KDevelop Java*REVISION DETAIL*
https://phabricator.kde.org/D19457*To: *davispuh, kfunk, apol, kossebau, brauch
*Cc: *flherne, kdevelop-devel, gennad, glebaccon, domson, antismap,
iodelay, alexeymin, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
Only had a brief look, but this looks good to me! Well, better than letting it bit-rot.
Thanks!
Thanks, certainly better than bitrot. I can't really imagine it won't crash with any non-trivial project though :/
FWIW kdev-java was to my knowledge never really working. I think at some point a lot of the code started as effectively a fork of the old C++ plugin, which was then gradually (but not thoroughly) adapted to java ...