import scala project failed with theia and metals plugin by maven #5312
Unanswered
passion123
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
My versions as below:
scala:2.11.8 or 2.11.12 (limited by spark)
theia:1.36.0
java:1.8.0_362
maven:apache-maven-3.8.8
python:3.8.10
server: ubuntu 20.04
after i imported a scala project to the webide based on theia,it showed the below error.
and the metals log is
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Metals version: 0.11.12
2023.06.07 02:14:08 INFO logging to file /home/project/Test/.metals/metals.log
2023.06.07 02:14:08 INFO Started: Metals version 0.11.12 in workspace '/home/project/Test' for client theia
2023.06.07 02:14:09 INFO time: initialize in 0.63s
Initializing Scala Debugger
2023.06.07 02:14:09 WARN Build server is not auto-connectable.
2023.06.07 02:14:09 WARN no build target for: /home/project/Test/src/main/java/com/test/Test.scala
2023.06.07 02:14:10 INFO no build target found for /home/project/Test/src/main/java/com/test/Test.scala. Using presentation compiler with project's scala-library version: 3.2.2
2023.06.07 02:14:11 INFO running '/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Dfile.encoding=UTF-8 -Dmaven.multiModuleProjectDirectory=/home/project/Test -Dmaven.home=/tmp/metals8993041481635330925 -cp /tmp/metals8993041481635330925/maven-wrapper.jar org.apache.maven.wrapper.MavenWrapperMain generate-sources ch.epfl.scala:bloop-maven-plugin:2.0.0:bloopInstall -DdownloadSources=true'
2023.06.07 02:14:12 INFO time: code lens generation in 3.13s
Error, couldn't show release notes for Metals 0.11.12
Timeout occured during get request at https://api.github.com/repos/scalameta/metals/releases/tags/v0.11.12
2023.06.07 02:16:19 ERROR Exception in thread "main" java.net.ConnectException: Connection timed out (Connection timed out)
2023.06.07 02:16:19 ERROR at java.net.PlainSocketImpl.socketConnect(Native Method)
2023.06.07 02:16:19 ERROR at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
2023.06.07 02:16:19 ERROR at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
2023.06.07 02:16:19 ERROR at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
2023.06.07 02:16:19 ERROR at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2023.06.07 02:16:19 ERROR at java.net.Socket.connect(Socket.java:607)
2023.06.07 02:16:19 ERROR at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:293)
2023.06.07 02:16:19 ERROR at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
2023.06.07 02:16:19 ERROR at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
2023.06.07 02:16:19 ERROR at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
2023.06.07 02:16:19 ERROR at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:203)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:189)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1572)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1500)
2023.06.07 02:16:19 ERROR at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
2023.06.07 02:16:19 ERROR at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(DefaultDownloader.java:109)
2023.06.07 02:16:19 ERROR at org.apache.maven.wrapper.DefaultDownloader.download(DefaultDownloader.java:97)
2023.06.07 02:16:19 ERROR at org.apache.maven.wrapper.Installer.createDist(Installer.java:94)
2023.06.07 02:16:19 ERROR at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:151)
2023.06.07 02:16:19 ERROR at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:76)
2023.06.07 02:16:19 INFO time: ran 'mvn bloopInstall' in 2m7s
2023.06.07 02:16:19 ERROR Maven command failed: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Dfile.encoding=UTF-8 -Dmaven.multiModuleProjectDirectory=/home/project/Test -Dmaven.home=/tmp/metals8993041481635330925 -cp /tmp/metals8993041481635330925/maven-wrapper.jar org.apache.maven.wrapper.MavenWrapperMain generate-sources ch.epfl.scala:bloop-maven-plugin:2.0.0:bloopInstall -DdownloadSources=true
But i can download the file https://api.github.com/repos/scalameta/metals/releases/tags/v0.11.12 by wget.
Is there any solution for this?Should i must install sbt or bloop environment on my linux server?
Beta Was this translation helpful? Give feedback.
All reactions