Dependencies from Gradle build not working #665
Unanswered
ramon54321
asked this question in
Q&A
Replies: 1 comment
-
So I think there is a couple things going on here. Firstly, I realized that I never added |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a minimal setup as follows:
Everything seems to work fine regarding autocomplete and general LSP features, however, when I add a dependency to my
build.gradle.kts
, the dependency is not recognized by metals, what could be the issue?If I run
./gradlew run
, it compiles and runs just fine, so it is a metals/lsp issue.In case it is of value here are some things I have observed:
When I
goto definition
on a built in, such asjava.util.Data
, I get a popup to select between 2 options, but they have the same file path.The
.bsp
,.metals
and.scala-build
directories are under./app/src/main/scala/org/example/
, and NOT the project root. Is this normal? (NOTE: these directories are not visible in the project structure below, but they do exist)Project Structure
App.scala -- Note the import error.
build.gradle.kts
Relevant part of Lazy Vim dependencies
Vim nvim-metals hook
Beta Was this translation helpful? Give feedback.
All reactions