Unable to import Gradle build #3007
Replies: 3 comments 18 replies
-
Hey! @niket-goel. From looking at your error message:
It looks like Metals (Bloop) isn't able to compile your code. When Bloop can't compile your code, then semanticDB can't get produced, and then navigation won't work. If your project public? If not, can you share what your javac/scalac options are? It seems that Once this is taken care of, then compilation can happen, semanticDB can be produce, and you should be able to navigate.
So |
Beta Was this translation helpful? Give feedback.
-
It looks as though we are always setting As a workaround you can just remove the following from the if (JavaVersion.current().isJava9Compatible())
options.compilerArgs << "--release" << minJavaVersion I'll look to fixing |
Beta Was this translation helpful? Give feedback.
-
At one point you'll have to run You shouldn't need to do a full build - only this. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am new to Scala/Java development and want to use VIM (as I have with C for many years) for my dev work.
I have followed all instructions (multiple times) listed under https://scalameta.org/metals/docs/editors/vim/.
I cannot get the coc-metals extension to work (the Coc extensions for JAVA and python work for me).
Whenever I try to follow a symbol in a scala file I get the following error:
[coc.nvim] definition not found
While looking through the
.metals/metals.log
I see the following error:I have removed both
.bloop
and.metals
directories multiple times but that did not help (expected).I am fairly new to COC and out of ideas on where to look.
One clue I have is that I am unable to find a
metals-vim
binary anywhere. I tried following instructions to generate the file using coursier, but I keep seeing the following errors which I am unable to resolve.Here is the output of CocInfo for me:
Any help on this would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions