You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
I'm behind a proxy, opening a .scala file leads to lsp + metals trying to install/update, which results in error (buffer *metals::stderr*):
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
Error while downloading https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.7/gson-2.8.7.jar: Connection timed out (Connection timed out), ignoring it
Error while downloading https://repo1.maven.org/maven2/ch/epfl/scala/bsp4j/2.0.0-M13/bsp4j-2.0.0-M13.jar: Connection timed out (Connection timed out), ignoring it
Error while downloading https://repo1.maven.org/maven2/ch/epfl/scala/scalafix-interfaces/0.9.27/scalafix-interfaces-0.9.27.jar: Connection timed out (Connection timed out), ignoring it
Error while downloading https://repo1.maven.org/maven2/com/geirsson/metaconfig-core_2.12/0.9.11/metaconfig-core_2.12-0.9.11.jar: Connection timed out (Connection timed out), ignoring it
Process metals stderr finished
Seems that the proxy configuration is not taken into account (I've tried with env vars *_proxy and in emacs config)
To Reproduce
Steps to reproduce the behavior(sample project + file which can be used to reproduce the issue with.)
Be behind a proxy
Try to install/upgrade metals
Expected behavior
A clear and concise description of what you expected to happen.
All Emacs connexions (included lsp/lsp-* upgrades) should pass through proxy when it is configured
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Please include the debug stack trace (if there is an error) and the content of Messages buffer with lsp-print-io set to t in case the bug is related to client->server communication.
cf above
EDIT: I've also tried C-u M-x lsp-install-servermetals, which seems to have worked (*messages* buffer)
Wrote /home/gmuller/.emacs.d/.cache/lsp/metals/coursier.asc
LSP :: Finished downloading /home/gmuller/.emacs.d/.cache/lsp/metals/coursier.asc...
LSP :: Verifying signature /home/gmuller/.emacs.d/.cache/lsp/metals/coursier.asc...
LSP :: Server metals downloaded, auto-starting in 0 buffers.
But without success
EDIT2: I'm discovered metals is installed in /home/user/.emacs.d/.cache/lsp/metals/metals... I've tried to run/update it manually by running the command in a terminal... Seems to ignore the proxy too....
The text was updated successfully, but these errors were encountered:
Afaict there's no combination of env vars that work to get flags to bootstrap at https://github.com/emacs-lsp/lsp-metals/blob/master/lsp-metals.el#L400, I guess perhaps there should be a lsp-metals-coursier-args to allow adding flags to the bootstrap step, in my case -J-Djavax.next.ssl.trustStore
Describe the bug
A clear and concise description of what the bug is.
I'm behind a proxy, opening a .scala file leads to lsp + metals trying to install/update, which results in error (buffer
*metals::stderr*
):Seems that the proxy configuration is not taken into account (I've tried with env vars
*_proxy
and in emacs config)To Reproduce
Steps to reproduce the behavior(sample project + file which can be used to reproduce the issue with.)
Expected behavior
A clear and concise description of what you expected to happen.
All Emacs connexions (included lsp/lsp-* upgrades) should pass through proxy when it is configured
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Please include the debug stack trace (if there is an error) and the content of Messages buffer with
lsp-print-io
set to t in case the bug is related to client->server communication.cf above
EDIT: I've also tried
C-u M-x lsp-install-server
metals
, which seems to have worked (*messages*
buffer)But without success
EDIT2: I'm discovered metals is installed in
/home/user/.emacs.d/.cache/lsp/metals/metals
... I've tried to run/update it manually by running the command in a terminal... Seems to ignore the proxy too....The text was updated successfully, but these errors were encountered: