fwcd / fwcd/kotlin-language-server
Unresolved reference: kotlinx
- Dominant language
- Kotlin
- Stars
- 2k
- Forks
- 252
- PR merge metrics
- No merged PRs in 30d
Description
When trying KotlinLanguageServer with Android projects that use the [Kotlin Android extensions](https://kotlinlang.org/docs/tutorials/android-plugin.html), Kotlin LSP returns an error saying "kotlinx" can not be resolved.
This happens both with Gradle DSL and Gradle Kotlin DSL. I also tried shuffling the 'dependency' of the android-extensions from the root project to the module build.gradle but to no success.
Specifically it's failing on `import kotlinx.android.synthetic.main.activity_main.*`
A `gradle build` succeeds with no issues, so this seems to be a problem with KotlinLanguageServer specifically.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure in an Android project using the referenced `import kotlinx.android.synthetic.main.activity_main.*` and compare it with the successful `gradle build`. Inspect how KotlinLanguageServer resolves dependencies for both Gradle DSL and Gradle Kotlin DSL; done means the import resolves without errors in the language server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100