Closed mfulz closed 1 year ago
Further info:
A.e: Adding this to the app/.classpath file: <classpathentry kind="lib" path="/home/mfulz/.gradle/caches/modules-2/files-2.1/de.robv.android.xposed/api/82/35866b507b360d4789ff389ad7386b6e8bbf6cc4/api-82.jar"/>
The completions are working fine
I get the same errors:
app/src/main/java/de/olznet/Tutorial.java|3 col 8-15 error| The import de.robv cannot be resolved
app/src/main/java/de/olznet/Tutorial.java|4 col 8-15 error| The import de.robv cannot be resolved
app/src/main/java/de/olznet/Tutorial.java|5 col 8-15 error| The import de.robv cannot be resolved
app/src/main/java/de/olznet/Tutorial.java|7 col 34-56 error| IXposedHookLoadPackage cannot be resolved to a type
app/src/main/java/de/olznet/Tutorial.java|8 col 39-55 error| LoadPackageParam cannot be resolved to a type
app/src/main/java/de/olznet/Tutorial.java|9 col 5-17 error| XposedBridge cannot be resolved
Looks like a server/eclipse.jdt.ls issue to me. You'll have to create an issue upstream.
Note that android support is declared experimental:
Gradle project support (with experimental Android project import support)
you should enable the androidSupport
in configuration.
LSP client configuration
Eclipse.jdt.ls version
1.25.0
Steps to Reproduce
I've tried nearly every configuration of nvim-jdtls now for days:
I'm unable to get completions for dependencies added via gradle. I've created a minimal project that could be used for testing: https://github.com/mfulz/XPosedTest
I was able to pin down the problem (at least as far as I could understand - I'm a gradle / java noob) that I looks like the .classpath file is always the same and jdtls is not adding any deps to it: `<?xml version="1.0" encoding="UTF-8"?>