scalameta / nvim-metals

A Metals plugin for Neovim
https://scalameta.org/metals/
Apache License 2.0
471 stars 75 forks source link

Not getting a response from :MetalsInstall #673

Closed Zexius closed 6 months ago

Zexius commented 6 months ago

Describe the bug

On Mac M1 chip, I have coursier installed, java 17 and scala 2.12 installed. nvim-metals installed via Lazy. cs version returns 2.1.10

while in neovim, :MetalsInfo request that i run :MetalsInstall. Running :MetalsInstall gives nothing, no progress bar no messages no notification that it is running. Any idea if I am missing anything?

Expected behavior

Metals to install

Operating system

macOS

Version of Metals

NA

Commit of nvim-metals

c626855

Zexius commented 6 months ago

looking at the logs a little more it seems that it is trying to download the 3 jars but failing to download. the stats remaind at 0% no matter how long I wait (more than 30mins). example below. manually going to the site downloads them perfectly fine. any place I can throw the jars so nvim-metals skip the download and go straight to installing?

https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.14/scala-compiler-2.13.14.jar (0.00 %, 0 / 12245472)

Zexius commented 6 months ago

well apparently it is just cause I needed root access, sudo nvim solved the problem. silly me

Zexius commented 6 months ago

use sudo