mattn / vim-lsp-settings

Auto configurations for Language Server for vim-lsp
MIT License
1.3k stars 232 forks source link

Install Scala Language Server failed. #566

Open wangzhihao opened 2 years ago

wangzhihao commented 2 years ago

:LspInstallServer against *.scala

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 42577  100 42577    0     0  72042      0 --:--:-- --:--:-- --:--:-- 72042
Resolution error: Error downloading org.scalameta:metals_2.12:0.11.5
  not found: /home/zhihaow/.ivy2/local/org.scalameta/metals_2.12/0.11.5/ivys/ivy.xml
  not found: https://repo1.maven.org/maven2/org/scalameta/metals_2.12/0.11.5/metals_2.12-0.11.5.pom
  download error: Caught java.io.IOException (Server returned HTTP response code: 502 for URL: https://dl.bintray.com/scalacenter/releases/org/scalameta/metals_2.12/0.11.5/metals_2.12-0.11.5.pom) while downloading https:
//dl.bintray.com/scalacenter/releases/org/scalameta/metals_2.12/0.11.5/metals_2.12-0.11.5.pom
  not found: https://oss.sonatype.org/content/repositories/public/org/scalameta/metals_2.12/0.11.5/metals_2.12-0.11.5.pom
  not found: https://oss.sonatype.org/content/repositories/snapshots/org/scalameta/metals_2.12/0.11.5/metals_2.12-0.11.5.pom
yuilib commented 2 years ago

563 should fix the issue.

Can you try the latest version?

uchiiii commented 2 years ago

I have a question probably related to this.

I got the error below when I tried to install Metal.

  1   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                                                                       
  2                                  Dload  Upload   Total   Spent    Left  Speed                                                                                         
  3   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0                                                                                        
  4   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0                                                                                        
  5 100 42577  100 42577    0     0  45513      0 --:--:-- --:--:-- --:--:-- 5933k                                                                                        
  6 Error: Could not find or load main class                                                                                                                              
  7 Caused by: java.lang.ClassNotFoundException:          

I am very new to scala and java. I would appreciate it if you kindly help me solve this.

yuilib commented 2 years ago

https://github.com/mattn/vim-lsp-settings/pull/603 should fix the issue. Please retry after the PR is merged.