fwcd / fwcd/kotlin-language-server

Version Catalog Support

Open
#476 0 comments 1 reaction 0 assignees View on GitHub
bug gradle
Dominant language
Kotlin
Stars
2k
Forks
252
PR merge metrics
No merged PRs in 30d

Description

Im using gradle 8.2 with version catalog like this:
```
plugins {
alias(libs.plugins.kotlin)
}
```

Im getting this error in my build.gradle.kts
```
val Project.libs: LibrariesForLibs' can't be called in this context by implicit receiver. Use the explicit one if necessary kotlin (DSL_SCOPE_VIOLATION)
Cannot access class 'org.gradle.accessors.dm.LibrariesForLibs'. Check your module classpath for missing or conflicting dependencies kotlin (MISSING_DEPENDENCY_CLASS)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported diagnostics in a Gradle 8.2 project using the shown build.gradle.kts version-catalog snippet. Trace how the language server handles Kotlin DSL generated accessors and define completion when the snippet no longer reports DSL_SCOPE_VIOLATION or MISSING_DEPENDENCY_CLASS.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.