Open nrinaudo opened 1 year ago
I'll try a manual install later, but if it's a declared dependency, why wouldn't coursier have installed it and added it to the classpath?
That's what I don't understand either.
@jpassaro is this is a proxy environment or on a personal machine?
personal!
a bit of investigation after verifying the problem still exists reveals even more mystery: coursier knows the scribe jar is needed and also it is definitely on my disk with the LoggerSupport .class file
$ coursier resolve org.scalameta:metals_2.13:0.11.12 | grep scribe
com.outr:scribe-file_2.13:3.11.1:default
com.outr:scribe-slf4j_2.13:3.11.1:default
com.outr:scribe_2.13:3.11.1:default
$ unzip -l /Users/jpassaro/coursier-cache/https/repo1.maven.org/maven2/com/outr/scribe_2.13/3.11.1/scribe_2.13-3.11.1.jar | grep LoggerSupport
warning [/Users/jpassaro/coursier-cache/https/repo1.maven.org/maven2/com/outr/scribe_2.13/3.11.1/scribe_2.13-3.11.1.jar]: 147456 extra bytes at beginning or within zipfile
(attempting to process anyway)
6401 01-01-2010 00:00 scribe/LoggerSupport$.class
10387 01-01-2010 00:00 scribe/LoggerSupport.class
does that mean this is a coursier bug?
Looks like maybe a bug wihj coursier launch
, what's your version?
Describe the bug
When attempting to boot Metals, I get the following error in the logs:
Expected behavior
I would expect Metals to boot.
Operating system
Windows
Editor/Extension
VS Code
Version of Metals
v0.11.9
Extra context or search terms
Our setup is really rather hostile. On top of running Windows, all Maven requests have to go to an internal repository, which has to be populated manually.
This initially caused troubles far earlier in the installation process (when Metals failed to download its dependencies), but with the help of @tgodzik , I was able to identify which artifacts were missing and make them available.
I suspect the issue is that, somehow, metals is expecting some LSP4J JARs to be on the CLASSPATH but can't find them.
I have made sure that both
org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:0.19.0
andorg.eclipse.lsp4j:org.eclipse.lsp4j:0.19.0
were available in our Maven repository.