Skip to content

Metals download process gets stuck #735

@crimzie

Description

@crimzie

Describe the bug

after running :MetalsInstall on a fresh setup of nvim-metals the install script gets stuck in an infinite loop. these few lines in the logs have been repeating for several hours now:

[INFO  Wed 21 May 20:58:00 2025] ...local/share/nvim/lazy/nvim-metals/lua/metals/install.lua:43: Still downloading:
[INFO  Wed 21 May 20:58:00 2025] ...local/share/nvim/lazy/nvim-metals/lua/metals/install.lua:43: https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/4.30.2/protobuf-java-4.30.2.jar (0.00 %, 0 / 1840468)
[INFO  Wed 21 May 20:58:00 2025] ...local/share/nvim/lazy/nvim-metals/lua/metals/install.lua:43: https://repo1.maven.org/maven2/org/eclipse/platform/org.eclipse.core.resources/3.13.500/org.eclipse.core.resources-3.13.500.jar (0.00 %, 0 / 894142)
[INFO  Wed 21 May 20:58:00 2025] ...local/share/nvim/lazy/nvim-metals/lua/metals/install.lua:43: https://repo1.maven.org/maven2/org/scalameta/mtags_2.13.16/1.5.3/mtags_2.13.16-1.5.3.jar (0.00 %, 0 / 2537324)
[INFO  Wed 21 May 20:58:00 2025] ...local/share/nvim/lazy/nvim-metals/lua/metals/install.lua:43: https://repo1.maven.org/maven2/org/scalameta/metals_2.13/1.5.3/metals_2.13-1.5.3.jar (0.00 %, 0 / 12028248)
[INFO  Wed 21 May 20:58:00 2025] ...local/share/nvim/lazy/nvim-metals/lua/metals/install.lua:43: https://repo1.maven.org/maven2/io/get-coursier/coursier-core_2.13/2.1.24/coursier-core_2.13-2.1.24.jar (0.00 %, 0 / 1406147)
[INFO  Wed 21 May 20:58:00 2025] ...local/share/nvim/lazy/nvim-metals/lua/metals/install.lua:43:

steps to reproduce:

  1. set up nvim-metals from scratch
  2. have a slow internet connection
  3. run :MetalsInstall
  4. wait for the download process to freeze

Expected behavior

Metals is expected to renew failed downloads

Operating system

macOS

Version of Metals

v0.11.1

Commit of nvim-metals

latest stable build

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions