Closed Dragon1573 closed 1 year ago
Related issue #758, but we have different environments.
None ...
Thanks for reporting! Does it work with the previous Metals server version? Does it help if you kill all the Java processes? There has been situations that there was an old broken server running in the background.
Another possible workaround would be to try running the command manually and see why it's failing (logs should be properly printed, but they don't seem to be :/)
C:\Program Files\Microsoft\jdk-17.0.2.8-hotspot\bin\java -Xss4m -XX:MaxInlineLevel=20 -XX:+UseParallelGC -classpath C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\bloop-frontend_2.12\1.4.13\bloop-frontend_2.12-1.4.13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-library\2.12.15\scala-library-2.12.15.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\sockets\1.4.13\sockets-1.4.13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\bloop-shared_2.12\1.4.13\bloop-shared_2.12-1.4.13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\bloop-backend_2.12\1.4.13\bloop-backend_2.12-1.4.13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\bloop-config_2.12\1.4.13\bloop-config_2.12-1.4.13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scalaz\scalaz-core_2.12\7.2.20\scalaz-core_2.12-7.2.20.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\monix\monix_2.12\2.3.3\monix_2.12-2.3.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\github\alexarchambault\case-app_2.12\2.0.6\case-app_2.12-2.0.6.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\scala-debug-adapter_2.12\2.0.13\scala-debug-adapter_2.12-2.0.13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\net\java\dev\jna\jna\5.8.0\jna-5.8.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\net\java\dev\jna\jna-platform\5.8.0\jna-platform-5.8.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\bsp4s_2.12\2.0.0-M13\bsp4s_2.12-2.0.0-M13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\zinc_2.12\1.3.0-M4%2B47-d881fa2f\zinc_2.12-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\apache\logging\log4j\log4j-core\2.17.1\log4j-core-2.17.1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\net\jpountz\lz4\lz4\1.3.0\lz4-1.3.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\github\soc\directories\10\directories-10.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\test-interface\1.0\test-interface-1.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\test-agent\1.6.2\test-agent-1.6.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\googlecode\java-diff-utils\diffutils\1.3.0\diffutils-1.3.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\lihaoyi\pprint_2.12\0.5.5\pprint_2.12-0.5.5.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\com-microsoft-java-debug-core\0.21.0%2B1-7f1080f1\com-microsoft-java-debug-core-0.21.0%2B1-7f1080f1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\nailgun-server\ee3c4343\nailgun-server-ee3c4343.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scalaz\scalaz-concurrent_2.12\7.2.20\scalaz-concurrent_2.12-7.2.20.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\get-coursier\interface\1.0.6\interface-1.0.6.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\librarymanagement-ivy_2.12\1.0.0\librarymanagement-ivy_2.12-1.0.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\lihaoyi\sourcecode_2.12\0.1.7\sourcecode_2.12-0.1.7.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\directory-watcher\0.8.0%2B6-f651bd93\directory-watcher-0.8.0%2B6-f651bd93.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\zeroturnaround\zt-zip\1.13\zt-zip-1.13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\zipkin\brave\brave\5.6.1\brave-5.6.1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\zipkin\reporter2\zipkin-sender-urlconnection\2.7.15\zipkin-sender-urlconnection-2.7.15.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\ow2\asm\asm\9.2\asm-9.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\ow2\asm\asm-util\9.2\asm-util-9.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\github\plokhotnyuk\jsoniter-scala\jsoniter-scala-core_2.12\2.4.0\jsoniter-scala-core_2.12-2.4.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\monix\monix-types_2.12\2.3.3\monix-types_2.12-2.3.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\monix\monix-execution_2.12\2.3.3\monix-execution_2.12-2.3.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\monix\monix-eval_2.12\2.3.3\monix-eval_2.12-2.3.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\monix\monix-reactive_2.12\2.3.3\monix-reactive_2.12-2.3.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\github\alexarchambault\case-app-annotations_2.12\2.0.6\case-app-annotations_2.12-2.0.6.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\github\alexarchambault\case-app-util_2.12\2.0.6\case-app-util_2.12-2.0.6.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\circe\circe-core_2.12\0.9.3\circe-core_2.12-0.9.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\circe\circe-derivation_2.12\0.9.0-M4\circe-derivation_2.12-0.9.0-M4.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scalameta\lsp4s_2.12\0.2.0\lsp4s_2.12-0.2.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\zinc-core_2.12\1.3.0-M4%2B47-d881fa2f\zinc-core_2.12-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\zinc-persist_2.12\1.3.0-M4%2B47-d881fa2f\zinc-persist_2.12-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\zinc-compile-core_2.12\1.3.0-M4%2B47-d881fa2f\zinc-compile-core_2.12-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\zinc-classfile_2.12\1.3.0-M4%2B47-d881fa2f\zinc-classfile_2.12-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\google\protobuf\protobuf-java\3.7.0\protobuf-java-3.7.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\apache\logging\log4j\log4j-api\2.17.1\log4j-api-2.17.1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\lihaoyi\fansi_2.12\0.2.7\fansi_2.12-0.2.7.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\apache\commons\commons-lang3\3.6\commons-lang3-3.6.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\google\code\gson\gson\2.7\gson-2.7.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\reactivex\rxjava2\rxjava\2.1.1\rxjava-2.1.1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\reactivestreams\reactive-streams\1.0.0\reactive-streams-1.0.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\commons-io\commons-io\2.5\commons-io-2.5.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scalaz\scalaz-effect_2.12\7.2.20\scalaz-effect_2.12-7.2.20.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\librarymanagement-core_2.12\1.0.0\librarymanagement-core_2.12-1.0.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\eed3si9n\sjson-new-core_2.12\0.8.2\sjson-new-core_2.12-0.8.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\ivy\ivy\2.3.0-sbt-a3314352b638afbf0dca19f127e8263ed6f898bd\ivy-2.3.0-sbt-a3314352b638afbf0dca19f127e8263ed6f898bd.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\zipkin\zipkin2\zipkin\2.12.1\zipkin-2.12.1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\zipkin\reporter2\zipkin-reporter\2.7.15\zipkin-reporter-2.7.15.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\ow2\asm\asm-tree\9.2\asm-tree-9.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\ow2\asm\asm-analysis\9.2\asm-analysis-9.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\jctools\jctools-core\2.0.1\jctools-core-2.0.1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\chuusai\shapeless_2.12\2.3.3\shapeless_2.12-2.3.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\circe\circe-numbers_2.12\0.9.3\circe-numbers_2.12-0.9.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\typelevel\cats-core_2.12\1.1.0\cats-core_2.12-1.1.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scalameta\jsonrpc_2.12\0.2.0\jsonrpc_2.12-0.2.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\beachape\enumeratum_2.12\1.5.13\enumeratum_2.12-1.5.13.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\beachape\enumeratum-circe_2.12\1.5.17\enumeratum-circe_2.12-1.5.17.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\zinc-apiinfo_2.12\1.3.0-M4%2B47-d881fa2f\zinc-apiinfo_2.12-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\zinc-classpath_2.12\1.3.0-M4%2B47-d881fa2f\zinc-classpath_2.12-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\compiler-interface\1.3.0-M4%2B47-d881fa2f\compiler-interface-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\thesamet\scalapb\scalapb-runtime_2.12\0.8.0-RC1\scalapb-runtime_2.12-0.8.0-RC1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\io_2.12\1.2.0\io_2.12-1.2.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\util-logging_2.12\1.2.2\util-logging_2.12-1.2.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\util-relation_2.12\1.2.2\util-relation_2.12-1.2.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\sbinary_2.12\0.5.0\sbinary_2.12-0.5.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\launcher-interface\1.0.0\launcher-interface-1.0.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\modules\scala-parser-combinators_2.12\1.0.5\scala-parser-combinators_2.12-1.0.5.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\util-control_2.12\1.2.2\util-control_2.12-1.2.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-compiler\2.12.11\scala-compiler-2.12.11.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\jcraft\jsch\0.1.46\jsch-0.1.46.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-reflect\2.12.11\scala-reflect-2.12.11.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\eed3si9n\gigahorse-okhttp_2.12\0.3.0\gigahorse-okhttp_2.12-0.3.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\squareup\okhttp3\okhttp-urlconnection\3.7.0\okhttp-urlconnection-3.7.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\modules\scala-xml_2.12\1.0.6\scala-xml_2.12-1.0.6.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\util-position_2.12\1.0.0\util-position_2.12-1.0.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\util-cache_2.12\1.0.0\util-cache_2.12-1.0.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\typelevel\macro-compat_2.12\1.1.1\macro-compat_2.12-1.1.1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\typelevel\cats-macros_2.12\1.1.0\cats-macros_2.12-1.1.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\typelevel\cats-kernel_2.12\1.1.0\cats-kernel_2.12-1.1.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\typelevel\machinist_2.12\0.6.2\machinist_2.12-0.6.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\outr\scribe_2.12\2.5.0\scribe_2.12-2.5.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\circe\circe-parser_2.12\0.9.3\circe-parser_2.12-0.9.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\beachape\enumeratum-macros_2.12\1.5.9\enumeratum-macros_2.12-1.5.9.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\ch\epfl\scala\compiler-bridge_2.12\1.3.0-M4%2B47-d881fa2f\compiler-bridge_2.12-1.3.0-M4%2B47-d881fa2f.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-sbt\util-interface\1.2.2\util-interface-1.2.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\thesamet\scalapb\lenses_2.12\0.8.0-RC1\lenses_2.12-0.8.0-RC1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\lihaoyi\fastparse_2.12\1.0.0\fastparse_2.12-1.0.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\swoval\apple-file-events\1.3.2\apple-file-events-1.3.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\jline\jline\2.14.4\jline-2.14.4.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\lmax\disruptor\3.3.6\disruptor-3.3.6.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\eed3si9n\sjson-new-scalajson_2.12\0.8.2\sjson-new-scalajson_2.12-0.8.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\eed3si9n\gigahorse-core_2.12\0.3.0\gigahorse-core_2.12-0.3.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\squareup\okhttp3\okhttp\3.7.0\okhttp-3.7.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\eed3si9n\sjson-new-murmurhash_2.12\0.8.0\sjson-new-murmurhash_2.12-0.8.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\outr\scribe-macros_2.12\2.5.0\scribe-macros_2.12-2.5.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\outr\perfolation_2.12\1.0.2\perfolation_2.12-1.0.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\io\circe\circe-jawn_2.12\0.9.3\circe-jawn_2.12-0.9.3.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\lihaoyi\fastparse-utils_2.12\1.0.0\fastparse-utils_2.12-1.0.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\eed3si9n\shaded-scalajson_2.12\1.0.0-M4\shaded-scalajson_2.12-1.0.0-M4.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\org\spire-math\jawn-parser_2.12\0.11.1\jawn-parser_2.12-0.11.1.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\typesafe\ssl-config-core_2.12\0.2.2\ssl-config-core_2.12-0.2.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\squareup\okio\okio\1.12.0\okio-1.12.0.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\outr\perfolation-macros_2.12\1.0.2\perfolation-macros_2.12-1.0.2.jar;C:\Users\Dragon1573\AppData\Local\Coursier\cache\v1\https\repo1.maven.org\maven2\com\typesafe\config\1.2.0\config-1.2.0.jar bloop.Server 8212
Lastly you could try and set a different JVM for bloop in USER_HOME/.bloop/bloop.json
:
{
"javaHome" : "<path-to-different-JDK>"
}
@tgodzik I'm sorry, but I can't get your instructions ...
Does it work with the previous Metals server version?
YES, IT DOES!!!
Last time I used Metals is Jan 15th this year and everything works perfect then. I downgraded Scala (Metals) plugin to v1.12.0 with Metals itself v0.11.1 and the Bloop Language Server work again!
What's going on??? Shen me gui???
Does it help if you kill all the Java processes?
No. I can't make sure if I correctly killed all the Java processes ...
I exited VSCode and terminate all java.exe
processes in Windows Task Manager. Then I restart the VSCode and waiting Metals & Bloop for startup. However, it still failed with a few minutes.
There has been situations that there was an old broken server running in the background.
If there DOES have an old broken server, where is it? Could we simply remove all the related folders and files, letting Metals reinstall itself correctly?
Another possible workaround would be to try running the command manually and see why it's failing (logs should be properly printed, but they don't seem to be :/)
I'm currently response to this issue on another machine with another bit different environment. I'll try this command next morning ...
Lastly you could try and set a different JVM for bloop.
I tried a different JVM for Bloop soon after. Instead of switching it in ~/.bloop/bloop.json
, I uninstalled Microsoft.OpenJDK.17
and installed Oracle.JDK.17
instead using winget.exe
. But it still failed with the same exception ...
Shall I downgrade to Oracle JDK 11?
If you killed all the java processes then most likely it's not an issue of an older Bloop server.
Shall I downgrade to Oracle JDK 11?
That might help as a workaround although Bloop should work on JDK 17, but I don't see any indications why this isn't working currently.
Alternatively, you could try using sbt as the build server. You would need to run Metals: Switch build server
command and choose sbt.
Does it work with the previous Metals server version?
YES, IT DOES!!!
Last time I used Metals is Jan 15th this year and everything works perfect then.
I downgraded Scala (Metals) plugin to v1.12.0 with Metals itself v0.11.1 on my current device (different from what I mentioned in the Installation Environment
section) and the Bloop Language Server works again!
What's going on??? Shen me gui??? I'm totally confused with this wierd situation 😵
I think it's most likely working with a previous Bloop version. Do you see in the logs what version was started? We might be able to check the changes for the issue that caused it. The release notes are here https://github.com/scalacenter/bloop/releases/tag/v1.4.13
There are two PRs related to Java:
C:\Program Files\Microsoft\jdk-17.0.2.8-hotspot\bin\java -version
say?)Do you see in the logs what version was started?
Yes, I do. The connected build server are as follows:
Do you have
$JAVA_HOME
set up properly?
Yes, I do. At least on my current device.
PowerShell 7.2.1
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
Loading personal and system profiles took 1815ms.
Scala λ echo $env:JAVA_HOME
C:\Program Files\Microsoft\jdk-17.0.2.8-hotspot\
What does
"C:\Program Files\Microsoft\jdk-17.0.2.8-hotspot\bin\java" -version
say?
Scala λ java -version
openjdk version "17.0.2" 2022-01-18 LTS
OpenJDK Runtime Environment Microsoft-30338 (build 17.0.2+8-LTS)
OpenJDK 64-Bit Server VM Microsoft-30338 (build 17.0.2+8-LTS, mixed mode, sharing)
Scala λ & 'C:\Program Files\Microsoft\jdk-17.0.2.8-hotspot\bin\java' -version
openjdk version "17.0.2" 2022-01-18 LTS
OpenJDK Runtime Environment Microsoft-30338 (build 17.0.2+8-LTS)
OpenJDK 64-Bit Server VM Microsoft-30338 (build 17.0.2+8-LTS, mixed mode, sharing)
Now I try again with the newer plugin:
This time Bloop is successfully connected. Logs are as follows:
There seems to be nothing to indicate why it failed at the first place :/
Let's keep this open and see if anyone encounters the same issue and maybe we could find more data.
I switch back to the device in my office (details are in Installation Environments section).
It's currently running the following stuffs:
Then I try to downgrade it. After restart, it failed again ...
I quit VSCode and killed all java.exe
processes in Windows Task Manager, then I test your EXTREMELY-LONG commands provided for me. Logs are as follows:
I confirm that I set the $JAVA_HOME
correctly.
Desktop λ echo $env:JAVA_HOME
E:\Applications\Oracle\JDK
Oracle JDK v17.0.2 response the following contents when calling java -version
.
Desktop λ E:\Applications\Oracle\JDK\bin\java.exe -version
java version "17.0.2" 2022-01-18 LTS
Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
Desktop λ java -version
java version "17.0.2" 2022-01-18 LTS
Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
@tgodzik For java.net.BindException
, I called netstat -ano | find 8212
but got nothing (detailed IP address is masked for privacy).
Repository λ netstat -ano | grep 3306
TCP 192.168.42.23:3306 40.*.*.152:443 ESTABLISHED 10872
Repository λ netstat -ano | grep 8212
I've searched some informations and got this (Simplified Chinese only). According to the article, it said the reason why port being binded but can't find in netstat
is Windows "keep" these port ranges. I did the same as the author and got this:
I disabled Hyper-V features and reboot my desktop (I'm in office now). Then I checked again and got this:
Now I launch VSCode again and Bloop Server is connected.
I can't believe Scala (Metals) plugin is incompatible with Hyper-V features ...
JUST TURN Hyper-V OFF!!! 🤣
Now I'm in the dormitory. The Hyper-V of my laptop is enabled before and I currently disabled it.
Hyper-V didn't block port 8212 on the laptop, so Bloop server works fine without conflict even Hyper-V is enabled.
That looks like another thing that could be fixed by using named sockets. We will probably be moving to that at some point, since it's more secure.
Excuse me. What is "Named Socket" in your statements refer to? Is it the same usage as mysql.sock
in MySQL Server on Linux?
I am not an expert here, but I think those are sockets that operate similar to files like here: https://superuser.com/questions/502875/linux-named-sockets-howto
Thoguh maybe it doesn't neccessarily help here that much :thinking: I need to dig in there. The approach is already tested in a fork of Bloop https://github.com/scala-cli/bloop-core
I'm getting the same error now on plugin v13.0. Using openjdk 11 in rhel7. The java home is set correctly. What's interesting is that the server actually starts. I can connect to it using telnet. When I start the server using the long command it prints me this:
Unable to load nailgun-version.properties.
NGServer [UNKNOWN] started on address localhost/127.0.0.1 port 8212.
Then when I start vscode I get the following output:
Nail raised unhandled exception
Nail raised unhandled exception
Downgrading the plugin does not work for me now. Last week everything worked fine. Anyone has any ideas what could be the problem?
I'm getting the same error now on plugin v13.0. Using openjdk 11 in rhel7. The java home is set correctly. What's interesting is that the server actually starts. I can connect to it using telnet. When I start the server using the long command it prints me this:
Unable to load nailgun-version.properties. NGServer [UNKNOWN] started on address localhost/127.0.0.1 port 8212.
Then when I start vscode I get the following output:
Nail raised unhandled exception Nail raised unhandled exception
Downgrading the plugin does not work for me now. Last week everything worked fine. Anyone has any ideas what could be the problem?
Solved my own problem. Started tracing back what I've done to the environment and found that I had added recently -Dproxy to the env. Commented it out and metals came back to normal.
Summary
Metals: Restart server
&Metals: Restart build server
, and both of them failedReproduce Steps
F1
and chooseMetals: New Scala Project
scala/hello-world.g8
Do you want to open the new project in a new window?
. ClickYes
New sbt workspace detected, would you like to import the build?
. ClickImport build
sbt bloopInstall
automatically. Around 30 seconds later, VSCode report an error thatFailed to connect with build server, no functionality will work. See logs for more details
.Expected Behavior
SBT, Metals & Bloop should all launced successfully. Users can get powerful language support by Bloop Language Server.