scalameta / metals

Scala language server with rich IDE features 🚀
https://scalameta.org/metals/
Apache License 2.0
2.08k stars 326 forks source link

Metals detects incorrect Scala version on Maven project #3608

Closed trK54Ylmz closed 2 years ago

trK54Ylmz commented 2 years ago

Describe the bug

Metals detects Scala as 2.12.0 but project uses Scala 2.12.15.

My environment is,

OS : macOS Monterey 12.1 VSCode : 1.64.0 VSCode Metals plugin : v1.12.0 Metals version : 0.11.1 Java : 1.8.0_282 Scala : 2.13.8 (Maven Scala library version is Scala 2.12.15)

pom.xml content ```xml 4.0.0 com.metglobal guru-feed pom 0.2 core service report 1.8 2.12 2.12.15 2.15.2 1.2.17 1.7.12 4.12 1.3 log4j log4j ${log4j.version} org.slf4j slf4j-log4j12 ${slf4j.version} org.scala-lang scala-library ${scala.min.version} junit junit ${junit.version} test org.hamcrest hamcrest-library ${hamcrest.version} test org.apache.maven.plugins maven-compiler-plugin 3.8.0 ${jdk.version} ${jdk.version} ```
Maven dependency tree ``` [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] guru-feed [pom] [INFO] core [jar] [INFO] service [jar] [INFO] report [jar] [INFO] [INFO] ----------------------< com.metglobal:guru-feed >----------------------- [INFO] Building guru-feed 0.2 [1/4] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ guru-feed --- [INFO] com.metglobal:guru-feed:pom:0.2 [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile [INFO] | \- org.slf4j:slf4j-api:jar:1.7.12:compile [INFO] +- org.scala-lang:scala-library:jar:2.12.15:compile [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] [INFO] -------------------------< com.metglobal:core >------------------------- [INFO] Building core 0.2 [2/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ core --- [INFO] com.metglobal:core:jar:0.2 [INFO] +- com.google.guava:guava:jar:26.0-jre:compile [INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile [INFO] | +- org.checkerframework:checker-qual:jar:2.5.2:compile [INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:compile [INFO] | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile [INFO] | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile [INFO] +- com.typesafe:config:jar:1.3.3:compile [INFO] +- commons-cli:commons-cli:jar:1.2:compile [INFO] +- joda-time:joda-time:jar:2.9.9:compile [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile [INFO] | \- org.slf4j:slf4j-api:jar:1.7.12:compile [INFO] +- org.scala-lang:scala-library:jar:2.12.15:compile [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] [INFO] -----------------------< com.metglobal:service >------------------------ [INFO] Building service 0.2 [3/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ service --- [INFO] com.metglobal:service:jar:0.2 [INFO] +- com.metglobal:core:jar:0.2:compile [INFO] | +- com.google.guava:guava:jar:26.0-jre:compile [INFO] | | +- org.checkerframework:checker-qual:jar:2.5.2:compile [INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:compile [INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile [INFO] | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile [INFO] | +- com.typesafe:config:jar:1.3.3:compile [INFO] | +- commons-cli:commons-cli:jar:1.2:compile [INFO] | \- joda-time:joda-time:jar:2.9.9:compile [INFO] +- org.apache.spark:spark-core_2.12:jar:2.4.4:compile [INFO] | +- com.thoughtworks.paranamer:paranamer:jar:2.8:compile [INFO] | +- org.apache.avro:avro:jar:1.8.2:compile [INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile [INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile [INFO] | | +- org.apache.commons:commons-compress:jar:1.8.1:compile [INFO] | | \- org.tukaani:xz:jar:1.5:compile [INFO] | +- org.apache.avro:avro-mapred:jar:hadoop2:1.8.2:compile [INFO] | | +- org.apache.avro:avro-ipc:jar:1.8.2:compile [INFO] | | \- commons-codec:commons-codec:jar:1.9:compile [INFO] | +- com.twitter:chill_2.12:jar:0.9.3:compile [INFO] | | \- com.esotericsoftware:kryo-shaded:jar:4.0.2:compile [INFO] | | +- com.esotericsoftware:minlog:jar:1.3.0:compile [INFO] | | \- org.objenesis:objenesis:jar:2.5.1:compile [INFO] | +- com.twitter:chill-java:jar:0.9.3:compile [INFO] | +- org.apache.xbean:xbean-asm6-shaded:jar:4.8:compile [INFO] | +- org.apache.hadoop:hadoop-client:jar:2.6.5:compile [INFO] | | +- org.apache.hadoop:hadoop-common:jar:2.6.5:compile [INFO] | | | +- xmlenc:xmlenc:jar:0.52:compile [INFO] | | | +- commons-httpclient:commons-httpclient:jar:3.1:compile [INFO] | | | +- commons-io:commons-io:jar:2.4:compile [INFO] | | | +- commons-collections:commons-collections:jar:3.2.2:compile [INFO] | | | +- commons-configuration:commons-configuration:jar:1.6:compile [INFO] | | | | \- commons-digester:commons-digester:jar:1.8:compile [INFO] | | | | \- commons-beanutils:commons-beanutils:jar:1.7.0:compile [INFO] | | | +- com.google.code.gson:gson:jar:2.2.4:compile [INFO] | | | +- org.apache.hadoop:hadoop-auth:jar:2.6.5:compile [INFO] | | | | +- org.apache.httpcomponents:httpclient:jar:4.2.5:compile [INFO] | | | | | \- org.apache.httpcomponents:httpcore:jar:4.2.4:compile [INFO] | | | | \- org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15:compile [INFO] | | | | +- org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15:compile [INFO] | | | | +- org.apache.directory.api:api-asn1-api:jar:1.0.0-M20:compile [INFO] | | | | \- org.apache.directory.api:api-util:jar:1.0.0-M20:compile [INFO] | | | +- org.apache.curator:curator-client:jar:2.6.0:compile [INFO] | | | \- org.htrace:htrace-core:jar:3.0.4:compile [INFO] | | +- org.apache.hadoop:hadoop-hdfs:jar:2.6.5:compile [INFO] | | | +- org.mortbay.jetty:jetty-util:jar:6.1.26:compile [INFO] | | | \- xerces:xercesImpl:jar:2.9.1:compile [INFO] | | | \- xml-apis:xml-apis:jar:1.3.04:compile [INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-app:jar:2.6.5:compile [INFO] | | | +- org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.6.5:compile [INFO] | | | | +- org.apache.hadoop:hadoop-yarn-client:jar:2.6.5:compile [INFO] | | | | \- org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.5:compile [INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.6.5:compile [INFO] | | +- org.apache.hadoop:hadoop-yarn-api:jar:2.6.5:compile [INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.6.5:compile [INFO] | | | \- org.apache.hadoop:hadoop-yarn-common:jar:2.6.5:compile [INFO] | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.13:compile [INFO] | | | \- org.codehaus.jackson:jackson-xc:jar:1.9.13:compile [INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.6.5:compile [INFO] | | \- org.apache.hadoop:hadoop-annotations:jar:2.6.5:compile [INFO] | +- org.apache.spark:spark-launcher_2.12:jar:2.4.4:compile [INFO] | +- org.apache.spark:spark-kvstore_2.12:jar:2.4.4:compile [INFO] | | +- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.6.7:compile [INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.7:compile [INFO] | +- org.apache.spark:spark-network-common_2.12:jar:2.4.4:compile [INFO] | +- org.apache.spark:spark-network-shuffle_2.12:jar:2.4.4:compile [INFO] | +- org.apache.spark:spark-unsafe_2.12:jar:2.4.4:compile [INFO] | +- javax.activation:activation:jar:1.1.1:compile [INFO] | +- org.apache.curator:curator-recipes:jar:2.6.0:compile [INFO] | | \- org.apache.curator:curator-framework:jar:2.6.0:compile [INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.6:compile [INFO] | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile [INFO] | +- org.apache.commons:commons-lang3:jar:3.5:compile [INFO] | +- org.apache.commons:commons-math3:jar:3.4.1:compile [INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.7.16:compile [INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.16:compile [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.16:compile [INFO] | +- com.ning:compress-lzf:jar:1.0.3:compile [INFO] | +- org.xerial.snappy:snappy-java:jar:1.1.7.3:compile [INFO] | +- org.lz4:lz4-java:jar:1.4.0:compile [INFO] | +- com.github.luben:zstd-jni:jar:1.3.2-2:compile [INFO] | +- org.roaringbitmap:RoaringBitmap:jar:0.7.45:compile [INFO] | | \- org.roaringbitmap:shims:jar:0.7.45:compile [INFO] | +- commons-net:commons-net:jar:3.1:compile [INFO] | +- org.json4s:json4s-jackson_2.12:jar:3.5.3:compile [INFO] | | \- org.json4s:json4s-core_2.12:jar:3.5.3:compile [INFO] | | +- org.json4s:json4s-ast_2.12:jar:3.5.3:compile [INFO] | | \- org.json4s:json4s-scalap_2.12:jar:3.5.3:compile [INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.22.2:compile [INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile [INFO] | | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:compile [INFO] | | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:compile [INFO] | | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:compile [INFO] | | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:compile [INFO] | | \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:compile [INFO] | | \- org.javassist:javassist:jar:3.18.1-GA:compile [INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.22.2:compile [INFO] | | +- javax.annotation:javax.annotation-api:jar:1.2:compile [INFO] | | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.22.2:compile [INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile [INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.22.2:compile [INFO] | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.22.2:compile [INFO] | | \- javax.validation:validation-api:jar:1.1.0.Final:compile [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.22.2:compile [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.22.2:compile [INFO] | +- io.netty:netty-all:jar:4.1.17.Final:compile [INFO] | +- io.netty:netty:jar:3.9.9.Final:compile [INFO] | +- com.clearspring.analytics:stream:jar:2.7.0:compile [INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.1.5:compile [INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:3.1.5:compile [INFO] | +- io.dropwizard.metrics:metrics-json:jar:3.1.5:compile [INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:3.1.5:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.7.1:compile [INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.12:jar:2.6.7.1:compile [INFO] | | \- com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.7.9:compile [INFO] | +- org.apache.ivy:ivy:jar:2.4.0:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | +- net.razorvine:pyrolite:jar:4.13:compile [INFO] | +- net.sf.py4j:py4j:jar:0.10.7:compile [INFO] | +- org.apache.spark:spark-tags_2.12:jar:2.4.4:compile [INFO] | +- org.apache.commons:commons-crypto:jar:1.0.0:compile [INFO] | \- org.spark-project.spark:unused:jar:1.0.0:compile [INFO] +- org.apache.spark:spark-sql_2.12:jar:2.4.4:compile [INFO] | +- com.univocity:univocity-parsers:jar:2.7.3:compile [INFO] | +- org.apache.spark:spark-sketch_2.12:jar:2.4.4:compile [INFO] | +- org.apache.spark:spark-catalyst_2.12:jar:2.4.4:compile [INFO] | | +- org.scala-lang.modules:scala-parser-combinators_2.12:jar:1.1.0:compile [INFO] | | +- org.codehaus.janino:janino:jar:3.0.9:compile [INFO] | | +- org.codehaus.janino:commons-compiler:jar:3.0.9:compile [INFO] | | \- org.antlr:antlr4-runtime:jar:4.7:compile [INFO] | +- org.apache.orc:orc-core:jar:nohive:1.5.5:compile [INFO] | | +- org.apache.orc:orc-shims:jar:1.5.5:compile [INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile [INFO] | | +- commons-lang:commons-lang:jar:2.6:compile [INFO] | | \- io.airlift:aircompressor:jar:0.10:compile [INFO] | +- org.apache.orc:orc-mapreduce:jar:nohive:1.5.5:compile [INFO] | +- org.apache.parquet:parquet-column:jar:1.10.1:compile [INFO] | | +- org.apache.parquet:parquet-common:jar:1.10.1:compile [INFO] | | \- org.apache.parquet:parquet-encoding:jar:1.10.1:compile [INFO] | +- org.apache.parquet:parquet-hadoop:jar:1.10.1:compile [INFO] | | +- org.apache.parquet:parquet-format:jar:2.4.0:compile [INFO] | | \- org.apache.parquet:parquet-jackson:jar:1.10.1:compile [INFO] | \- org.apache.arrow:arrow-vector:jar:0.10.0:compile [INFO] | +- org.apache.arrow:arrow-format:jar:0.10.0:compile [INFO] | +- org.apache.arrow:arrow-memory:jar:0.10.0:compile [INFO] | +- com.carrotsearch:hppc:jar:0.7.2:compile [INFO] | \- com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile [INFO] +- org.postgresql:postgresql:jar:42.2.5:compile [INFO] +- org.jooq:jooq:jar:3.11.10:compile [INFO] | \- javax.xml.bind:jaxb-api:jar:2.2.12:compile [INFO] +- org.scalatest:scalatest_2.12:jar:3.2.0-SNAP10:test [INFO] | +- org.scalactic:scalactic_2.12:jar:3.2.0-SNAP10:test [INFO] | +- org.scala-lang:scala-reflect:jar:2.12.4:compile [INFO] | \- org.scala-lang.modules:scala-xml_2.12:jar:1.0.6:compile [INFO] +- org.scalacheck:scalacheck_2.12:jar:1.14.0:test [INFO] | \- org.scala-sbt:test-interface:jar:1.0:test [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile [INFO] +- org.scala-lang:scala-library:jar:2.12.15:compile [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] [INFO] ------------------------< com.metglobal:report >------------------------ [INFO] Building report 0.2 [4/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ report --- [INFO] com.metglobal:report:jar:0.2 [INFO] +- com.metglobal:core:jar:0.2:compile [INFO] | +- com.google.guava:guava:jar:26.0-jre:compile [INFO] | | +- org.checkerframework:checker-qual:jar:2.5.2:compile [INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:compile [INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile [INFO] | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile [INFO] | +- com.typesafe:config:jar:1.3.3:compile [INFO] | +- commons-cli:commons-cli:jar:1.2:compile [INFO] | \- joda-time:joda-time:jar:2.9.9:compile [INFO] +- org.apache.spark:spark-core_2.12:jar:2.4.4:compile [INFO] | +- com.thoughtworks.paranamer:paranamer:jar:2.8:compile [INFO] | +- org.apache.avro:avro:jar:1.8.2:compile [INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile [INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile [INFO] | | +- org.apache.commons:commons-compress:jar:1.8.1:compile [INFO] | | \- org.tukaani:xz:jar:1.5:compile [INFO] | +- org.apache.avro:avro-mapred:jar:hadoop2:1.8.2:compile [INFO] | | +- org.apache.avro:avro-ipc:jar:1.8.2:compile [INFO] | | \- commons-codec:commons-codec:jar:1.9:compile [INFO] | +- com.twitter:chill_2.12:jar:0.9.3:compile [INFO] | | \- com.esotericsoftware:kryo-shaded:jar:4.0.2:compile [INFO] | | +- com.esotericsoftware:minlog:jar:1.3.0:compile [INFO] | | \- org.objenesis:objenesis:jar:2.5.1:compile [INFO] | +- com.twitter:chill-java:jar:0.9.3:compile [INFO] | +- org.apache.xbean:xbean-asm6-shaded:jar:4.8:compile [INFO] | +- org.apache.hadoop:hadoop-client:jar:2.6.5:compile [INFO] | | +- org.apache.hadoop:hadoop-common:jar:2.6.5:compile [INFO] | | | +- xmlenc:xmlenc:jar:0.52:compile [INFO] | | | +- commons-httpclient:commons-httpclient:jar:3.1:compile [INFO] | | | +- commons-io:commons-io:jar:2.4:compile [INFO] | | | +- commons-collections:commons-collections:jar:3.2.2:compile [INFO] | | | +- commons-configuration:commons-configuration:jar:1.6:compile [INFO] | | | | \- commons-digester:commons-digester:jar:1.8:compile [INFO] | | | | \- commons-beanutils:commons-beanutils:jar:1.7.0:compile [INFO] | | | +- com.google.code.gson:gson:jar:2.2.4:compile [INFO] | | | +- org.apache.hadoop:hadoop-auth:jar:2.6.5:compile [INFO] | | | | +- org.apache.httpcomponents:httpclient:jar:4.2.5:compile [INFO] | | | | | \- org.apache.httpcomponents:httpcore:jar:4.2.4:compile [INFO] | | | | \- org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15:compile [INFO] | | | | +- org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15:compile [INFO] | | | | +- org.apache.directory.api:api-asn1-api:jar:1.0.0-M20:compile [INFO] | | | | \- org.apache.directory.api:api-util:jar:1.0.0-M20:compile [INFO] | | | +- org.apache.curator:curator-client:jar:2.6.0:compile [INFO] | | | \- org.htrace:htrace-core:jar:3.0.4:compile [INFO] | | +- org.apache.hadoop:hadoop-hdfs:jar:2.6.5:compile [INFO] | | | +- org.mortbay.jetty:jetty-util:jar:6.1.26:compile [INFO] | | | \- xerces:xercesImpl:jar:2.9.1:compile [INFO] | | | \- xml-apis:xml-apis:jar:1.3.04:compile [INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-app:jar:2.6.5:compile [INFO] | | | +- org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.6.5:compile [INFO] | | | | +- org.apache.hadoop:hadoop-yarn-client:jar:2.6.5:compile [INFO] | | | | \- org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.5:compile [INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.6.5:compile [INFO] | | +- org.apache.hadoop:hadoop-yarn-api:jar:2.6.5:compile [INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.6.5:compile [INFO] | | | \- org.apache.hadoop:hadoop-yarn-common:jar:2.6.5:compile [INFO] | | | +- javax.xml.bind:jaxb-api:jar:2.2.2:compile [INFO] | | | | \- javax.xml.stream:stax-api:jar:1.0-2:compile [INFO] | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.13:compile [INFO] | | | \- org.codehaus.jackson:jackson-xc:jar:1.9.13:compile [INFO] | | +- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.6.5:compile [INFO] | | \- org.apache.hadoop:hadoop-annotations:jar:2.6.5:compile [INFO] | +- org.apache.spark:spark-launcher_2.12:jar:2.4.4:compile [INFO] | +- org.apache.spark:spark-kvstore_2.12:jar:2.4.4:compile [INFO] | | +- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.6.7:compile [INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.7:compile [INFO] | +- org.apache.spark:spark-network-common_2.12:jar:2.4.4:compile [INFO] | +- org.apache.spark:spark-network-shuffle_2.12:jar:2.4.4:compile [INFO] | +- org.apache.spark:spark-unsafe_2.12:jar:2.4.4:compile [INFO] | +- javax.activation:activation:jar:1.1.1:compile [INFO] | +- org.apache.curator:curator-recipes:jar:2.6.0:compile [INFO] | | \- org.apache.curator:curator-framework:jar:2.6.0:compile [INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.6:compile [INFO] | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile [INFO] | +- org.apache.commons:commons-lang3:jar:3.5:compile [INFO] | +- org.apache.commons:commons-math3:jar:3.4.1:compile [INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.7.16:compile [INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.16:compile [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.16:compile [INFO] | +- com.ning:compress-lzf:jar:1.0.3:compile [INFO] | +- org.xerial.snappy:snappy-java:jar:1.1.7.3:compile [INFO] | +- org.lz4:lz4-java:jar:1.4.0:compile [INFO] | +- com.github.luben:zstd-jni:jar:1.3.2-2:compile [INFO] | +- org.roaringbitmap:RoaringBitmap:jar:0.7.45:compile [INFO] | | \- org.roaringbitmap:shims:jar:0.7.45:compile [INFO] | +- commons-net:commons-net:jar:3.1:compile [INFO] | +- org.json4s:json4s-jackson_2.12:jar:3.5.3:compile [INFO] | | \- org.json4s:json4s-core_2.12:jar:3.5.3:compile [INFO] | | +- org.json4s:json4s-ast_2.12:jar:3.5.3:compile [INFO] | | +- org.json4s:json4s-scalap_2.12:jar:3.5.3:compile [INFO] | | \- org.scala-lang.modules:scala-xml_2.12:jar:1.0.6:compile [INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.22.2:compile [INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile [INFO] | | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:compile [INFO] | | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:compile [INFO] | | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:compile [INFO] | | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:compile [INFO] | | \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:compile [INFO] | | \- org.javassist:javassist:jar:3.18.1-GA:compile [INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.22.2:compile [INFO] | | +- javax.annotation:javax.annotation-api:jar:1.2:compile [INFO] | | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.22.2:compile [INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile [INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.22.2:compile [INFO] | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.22.2:compile [INFO] | | \- javax.validation:validation-api:jar:1.1.0.Final:compile [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.22.2:compile [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.22.2:compile [INFO] | +- io.netty:netty-all:jar:4.1.17.Final:compile [INFO] | +- io.netty:netty:jar:3.9.9.Final:compile [INFO] | +- com.clearspring.analytics:stream:jar:2.7.0:compile [INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.1.5:compile [INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:3.1.5:compile [INFO] | +- io.dropwizard.metrics:metrics-json:jar:3.1.5:compile [INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:3.1.5:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.7.1:compile [INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.12:jar:2.6.7.1:compile [INFO] | | +- org.scala-lang:scala-reflect:jar:2.12.1:compile [INFO] | | \- com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.7.9:compile [INFO] | +- org.apache.ivy:ivy:jar:2.4.0:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | +- net.razorvine:pyrolite:jar:4.13:compile [INFO] | +- net.sf.py4j:py4j:jar:0.10.7:compile [INFO] | +- org.apache.spark:spark-tags_2.12:jar:2.4.4:compile [INFO] | +- org.apache.commons:commons-crypto:jar:1.0.0:compile [INFO] | \- org.spark-project.spark:unused:jar:1.0.0:compile [INFO] +- org.apache.spark:spark-sql_2.12:jar:2.4.4:compile [INFO] | +- com.univocity:univocity-parsers:jar:2.7.3:compile [INFO] | +- org.apache.spark:spark-sketch_2.12:jar:2.4.4:compile [INFO] | +- org.apache.spark:spark-catalyst_2.12:jar:2.4.4:compile [INFO] | | +- org.scala-lang.modules:scala-parser-combinators_2.12:jar:1.1.0:compile [INFO] | | +- org.codehaus.janino:janino:jar:3.0.9:compile [INFO] | | +- org.codehaus.janino:commons-compiler:jar:3.0.9:compile [INFO] | | \- org.antlr:antlr4-runtime:jar:4.7:compile [INFO] | +- org.apache.orc:orc-core:jar:nohive:1.5.5:compile [INFO] | | +- org.apache.orc:orc-shims:jar:1.5.5:compile [INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile [INFO] | | +- commons-lang:commons-lang:jar:2.6:compile [INFO] | | \- io.airlift:aircompressor:jar:0.10:compile [INFO] | +- org.apache.orc:orc-mapreduce:jar:nohive:1.5.5:compile [INFO] | +- org.apache.parquet:parquet-column:jar:1.10.1:compile [INFO] | | +- org.apache.parquet:parquet-common:jar:1.10.1:compile [INFO] | | \- org.apache.parquet:parquet-encoding:jar:1.10.1:compile [INFO] | +- org.apache.parquet:parquet-hadoop:jar:1.10.1:compile [INFO] | | +- org.apache.parquet:parquet-format:jar:2.4.0:compile [INFO] | | \- org.apache.parquet:parquet-jackson:jar:1.10.1:compile [INFO] | \- org.apache.arrow:arrow-vector:jar:0.10.0:compile [INFO] | +- org.apache.arrow:arrow-format:jar:0.10.0:compile [INFO] | +- org.apache.arrow:arrow-memory:jar:0.10.0:compile [INFO] | +- com.carrotsearch:hppc:jar:0.7.2:compile [INFO] | \- com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile [INFO] +- org.scala-lang:scala-library:jar:2.12.15:compile [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for guru-feed 0.2: [INFO] [INFO] guru-feed .......................................... SUCCESS [ 0.336 s] [INFO] core ............................................... SUCCESS [ 0.049 s] [INFO] service ............................................ SUCCESS [ 0.252 s] [INFO] report ............................................. SUCCESS [ 0.080 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.843 s [INFO] Finished at: 2022-02-04T02:22:45+03:00 ```
Metals doctor ``` Build target Type Diagnostics Interactive Semanticdb Debugging Java support Recommendation guru-feed Scala 2.12.0 ✅ ❌ ❌ ✅ ✅ Upgrade to Scala 2.12.15 and run 'Import build' to enable code navigation. guru-feed-test Scala 2.12.0 ✅ ❌ ❌ ✅ ✅ Upgrade to Scala 2.12.15 and run 'Import build' to enable code navigation. core Scala 2.12.0 ✅ ❌ ❌ ✅ ✅ Upgrade to Scala 2.12.15 and run 'Import build' to enable code navigation. core-test Scala 2.12.0 ✅ ❌ ❌ ✅ ✅ Upgrade to Scala 2.12.15 and run 'Import build' to enable code navigation. report Scala 2.12.0 ✅ ❌ ❌ ✅ ✅ Upgrade to Scala 2.12.15 and run 'Import build' to enable code navigation. report-test Scala 2.12.0 ✅ ❌ ❌ ✅ ✅ Upgrade to Scala 2.12.15 and run 'Import build' to enable code navigation. service Scala 2.12.0 ✅ ❌ ❌ ✅ ✅ Upgrade to Scala 2.12.15 and run 'Import build' to enable code navigation. service-test Scala 2.12.0 ✅ ❌ ❌ ✅ ✅ Upgrade to Scala 2.12.15 and run 'Import build' to enable code navigation. ```
M2 directory ``` ls -lha /Users/tarik/.m2/repository/org/scala-lang/scala-library/ total 0 drwxr-xr-x 16 tarik staff 512B Feb 4 02:12 . drwxr-xr-x 6 tarik staff 192B Feb 4 02:02 .. drwxr-xr-x 9 tarik staff 288B Feb 4 02:12 2.12.0 drwxr-xr-x 5 tarik staff 160B Feb 4 01:59 2.12.1 drwxr-xr-x 7 tarik staff 224B Feb 4 02:01 2.12.15 drwxr-xr-x 5 tarik staff 160B Feb 4 01:59 2.12.3 drwxr-xr-x 7 tarik staff 224B Feb 4 02:00 2.12.4 drwxr-xr-x 5 tarik staff 160B Feb 4 02:00 2.12.5 drwxr-xr-x 5 tarik staff 160B Feb 4 01:59 2.12.6 drwxr-xr-x 7 tarik staff 224B Feb 4 02:00 2.12.8 drwxr-xr-x 5 tarik staff 160B Feb 4 02:02 2.13.0 drwxr-xr-x 7 tarik staff 224B Feb 4 02:02 2.13.1 drwxr-xr-x 5 tarik staff 160B Feb 4 02:01 2.13.2 drwxr-xr-x 5 tarik staff 160B Feb 4 02:02 2.13.3 drwxr-xr-x 5 tarik staff 160B Feb 4 02:02 2.13.5 drwxr-xr-x 5 tarik staff 160B Feb 4 02:02 2.13.6 ```
metals.log content (file) **Note:** I have tried to add content itself but comment length exceed. [metals.log](https://github.com/scalameta/metals/files/7998994/metals.log)

Expected behavior

The Maven project uses Scala 2.12.15 and installed Scala version is 2.13.8, I have expected that Metals will detect 2.12.15 or 2.13.8.

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

0.11.1

Extra context or search terms

Maven, VSCode, Scala version

tgodzik commented 2 years ago

Thanks for reporting! I think this is coming from scala-version being defined as 2.12. I think I only seen that field used as a full version not just a binary one. Are you using https://davidb.github.io/scala-maven-plugin/? This is the only one supported currently by Metals and I think you can even drop scala-version and it should use the library version (which is the recommened way).

trK54Ylmz commented 2 years ago

I have upgraded Scala to 2.13.8 and moved to net.alchim31.maven:scala-maven-plugin in Maven but this time gives Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. @tgodzik

Maven dependency tree ``` [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] guru-feed [pom] [INFO] core [jar] [INFO] service [jar] [INFO] report [jar] [INFO] [INFO] ----------------------< com.metglobal:guru-feed >----------------------- [INFO] Building guru-feed 0.2 [1/4] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ guru-feed --- [INFO] com.metglobal:guru-feed:pom:0.2 [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile [INFO] | \- org.slf4j:slf4j-api:jar:1.7.12:compile [INFO] +- org.scala-lang:scala-library:jar:2.13.8:compile [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] [INFO] -------------------------< com.metglobal:core >------------------------- [INFO] Building core 0.2 [2/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ core --- [INFO] com.metglobal:core:jar:0.2 [INFO] +- com.google.guava:guava:jar:26.0-jre:compile [INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile [INFO] | +- org.checkerframework:checker-qual:jar:2.5.2:compile [INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:compile [INFO] | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile [INFO] | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile [INFO] +- com.typesafe:config:jar:1.3.3:compile [INFO] +- commons-cli:commons-cli:jar:1.2:compile [INFO] +- joda-time:joda-time:jar:2.9.9:compile [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile [INFO] | \- org.slf4j:slf4j-api:jar:1.7.12:compile [INFO] +- org.scala-lang:scala-library:jar:2.13.8:compile [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] [INFO] -----------------------< com.metglobal:service >------------------------ [INFO] Building service 0.2 [3/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ service --- [INFO] com.metglobal:service:jar:0.2 [INFO] +- com.metglobal:core:jar:0.2:compile [INFO] | +- com.google.guava:guava:jar:26.0-jre:compile [INFO] | | +- org.checkerframework:checker-qual:jar:2.5.2:compile [INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:compile [INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile [INFO] | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile [INFO] | +- com.typesafe:config:jar:1.3.3:compile [INFO] | +- commons-cli:commons-cli:jar:1.2:compile [INFO] | \- joda-time:joda-time:jar:2.9.9:compile [INFO] +- org.apache.spark:spark-core_2.13:jar:3.2.0:compile [INFO] | +- org.scala-lang.modules:scala-parallel-collections_2.13:jar:1.0.3:compile [INFO] | +- org.apache.avro:avro:jar:1.10.2:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.12.2:compile [INFO] | | \- org.apache.commons:commons-compress:jar:1.20:compile [INFO] | +- org.apache.avro:avro-mapred:jar:1.10.2:compile [INFO] | | \- org.apache.avro:avro-ipc:jar:1.10.2:compile [INFO] | | \- org.tukaani:xz:jar:1.8:compile [INFO] | +- com.twitter:chill_2.13:jar:0.10.0:compile [INFO] | | \- com.esotericsoftware:kryo-shaded:jar:4.0.2:compile [INFO] | | +- com.esotericsoftware:minlog:jar:1.3.0:compile [INFO] | | \- org.objenesis:objenesis:jar:2.5.1:compile [INFO] | +- com.twitter:chill-java:jar:0.10.0:compile [INFO] | +- org.apache.xbean:xbean-asm9-shaded:jar:4.20:compile [INFO] | +- org.apache.hadoop:hadoop-client-api:jar:3.3.1:compile [INFO] | +- org.apache.hadoop:hadoop-client-runtime:jar:3.3.1:compile [INFO] | | +- org.apache.htrace:htrace-core4:jar:4.1.0-incubating:runtime [INFO] | | \- commons-logging:commons-logging:jar:1.1.3:runtime [INFO] | +- org.apache.spark:spark-launcher_2.13:jar:3.2.0:compile [INFO] | +- org.apache.spark:spark-kvstore_2.13:jar:3.2.0:compile [INFO] | | +- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile [INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.12.3:compile [INFO] | +- org.apache.spark:spark-network-common_2.13:jar:3.2.0:compile [INFO] | | \- com.google.crypto.tink:tink:jar:1.6.0:compile [INFO] | | \- com.google.code.gson:gson:jar:2.8.6:compile [INFO] | +- org.apache.spark:spark-network-shuffle_2.13:jar:3.2.0:compile [INFO] | +- org.apache.spark:spark-unsafe_2.13:jar:3.2.0:compile [INFO] | +- javax.activation:activation:jar:1.1.1:compile [INFO] | +- org.apache.curator:curator-recipes:jar:2.13.0:compile [INFO] | | \- org.apache.curator:curator-framework:jar:2.13.0:compile [INFO] | | \- org.apache.curator:curator-client:jar:2.13.0:compile [INFO] | +- org.apache.zookeeper:zookeeper:jar:3.6.2:compile [INFO] | | +- commons-lang:commons-lang:jar:2.6:compile [INFO] | | +- org.apache.zookeeper:zookeeper-jute:jar:3.6.2:compile [INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile [INFO] | +- jakarta.servlet:jakarta.servlet-api:jar:4.0.3:compile [INFO] | +- commons-codec:commons-codec:jar:1.15:compile [INFO] | +- org.apache.commons:commons-lang3:jar:3.12.0:compile [INFO] | +- org.apache.commons:commons-math3:jar:3.4.1:compile [INFO] | +- org.apache.commons:commons-text:jar:1.6:compile [INFO] | +- commons-io:commons-io:jar:2.8.0:compile [INFO] | +- commons-collections:commons-collections:jar:3.2.2:compile [INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile [INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.30:compile [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.30:compile [INFO] | +- com.ning:compress-lzf:jar:1.0.3:compile [INFO] | +- org.xerial.snappy:snappy-java:jar:1.1.8.4:compile [INFO] | +- org.lz4:lz4-java:jar:1.7.1:compile [INFO] | +- com.github.luben:zstd-jni:jar:1.5.0-4:compile [INFO] | +- org.roaringbitmap:RoaringBitmap:jar:0.9.0:compile [INFO] | | \- org.roaringbitmap:shims:jar:0.9.0:runtime [INFO] | +- commons-net:commons-net:jar:3.1:compile [INFO] | +- org.scala-lang.modules:scala-xml_2.13:jar:1.2.0:compile [INFO] | +- org.scala-lang:scala-reflect:jar:2.13.5:compile [INFO] | +- org.json4s:json4s-jackson_2.13:jar:3.7.0-M11:compile [INFO] | | \- org.json4s:json4s-core_2.13:jar:3.7.0-M11:compile [INFO] | | +- org.json4s:json4s-ast_2.13:jar:3.7.0-M11:compile [INFO] | | \- org.json4s:json4s-scalap_2.13:jar:3.7.0-M11:compile [INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.34:compile [INFO] | | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile [INFO] | | \- org.glassfish.hk2.external:jakarta.inject:jar:2.6.1:compile [INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.34:compile [INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile [INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile [INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.34:compile [INFO] | | \- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.34:compile [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.34:compile [INFO] | +- org.glassfish.jersey.inject:jersey-hk2:jar:2.34:compile [INFO] | | +- org.glassfish.hk2:hk2-locator:jar:2.6.1:compile [INFO] | | | +- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.6.1:compile [INFO] | | | +- org.glassfish.hk2:hk2-api:jar:2.6.1:compile [INFO] | | | \- org.glassfish.hk2:hk2-utils:jar:2.6.1:compile [INFO] | | \- org.javassist:javassist:jar:3.25.0-GA:compile [INFO] | +- io.netty:netty-all:jar:4.1.68.Final:compile [INFO] | +- com.clearspring.analytics:stream:jar:2.9.6:compile [INFO] | +- io.dropwizard.metrics:metrics-core:jar:4.2.0:compile [INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:4.2.0:compile [INFO] | +- io.dropwizard.metrics:metrics-json:jar:4.2.0:compile [INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:4.2.0:compile [INFO] | +- io.dropwizard.metrics:metrics-jmx:jar:4.2.0:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.12.3:compile [INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.13:jar:2.12.3:compile [INFO] | | \- com.thoughtworks.paranamer:paranamer:jar:2.8:compile [INFO] | +- org.apache.ivy:ivy:jar:2.5.0:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | +- net.razorvine:pyrolite:jar:4.30:compile [INFO] | +- net.sf.py4j:py4j:jar:0.10.9.2:compile [INFO] | +- org.apache.spark:spark-tags_2.13:jar:3.2.0:compile [INFO] | +- org.apache.commons:commons-crypto:jar:1.1.0:compile [INFO] | \- org.spark-project.spark:unused:jar:1.0.0:compile [INFO] +- org.apache.spark:spark-sql_2.13:jar:3.2.0:compile [INFO] | +- org.rocksdb:rocksdbjni:jar:6.20.3:compile [INFO] | +- com.univocity:univocity-parsers:jar:2.9.1:compile [INFO] | +- org.apache.spark:spark-sketch_2.13:jar:3.2.0:compile [INFO] | +- org.apache.spark:spark-catalyst_2.13:jar:3.2.0:compile [INFO] | | +- org.scala-lang.modules:scala-parser-combinators_2.13:jar:1.1.2:compile [INFO] | | +- org.codehaus.janino:janino:jar:3.0.16:compile [INFO] | | +- org.codehaus.janino:commons-compiler:jar:3.0.16:compile [INFO] | | +- org.antlr:antlr4-runtime:jar:4.8:compile [INFO] | | +- org.apache.arrow:arrow-vector:jar:2.0.0:compile [INFO] | | | +- org.apache.arrow:arrow-format:jar:2.0.0:compile [INFO] | | | +- org.apache.arrow:arrow-memory-core:jar:2.0.0:compile [INFO] | | | \- com.google.flatbuffers:flatbuffers-java:jar:1.9.0:compile [INFO] | | \- org.apache.arrow:arrow-memory-netty:jar:2.0.0:compile [INFO] | +- org.apache.orc:orc-core:jar:1.6.11:compile [INFO] | | +- org.apache.orc:orc-shims:jar:1.6.11:compile [INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile [INFO] | | +- io.airlift:aircompressor:jar:0.21:compile [INFO] | | +- org.jetbrains:annotations:jar:17.0.0:compile [INFO] | | \- org.threeten:threeten-extra:jar:1.5.0:compile [INFO] | +- org.apache.orc:orc-mapreduce:jar:1.6.11:compile [INFO] | +- org.apache.hive:hive-storage-api:jar:2.7.2:compile [INFO] | +- org.apache.parquet:parquet-column:jar:1.12.1:compile [INFO] | | +- org.apache.parquet:parquet-common:jar:1.12.1:compile [INFO] | | \- org.apache.parquet:parquet-encoding:jar:1.12.1:compile [INFO] | \- org.apache.parquet:parquet-hadoop:jar:1.12.1:compile [INFO] | +- org.apache.parquet:parquet-format-structures:jar:1.12.1:compile [INFO] | \- org.apache.parquet:parquet-jackson:jar:1.12.1:compile [INFO] +- org.postgresql:postgresql:jar:42.2.5:compile [INFO] +- org.jooq:jooq:jar:3.11.10:compile [INFO] | \- javax.xml.bind:jaxb-api:jar:2.2.12:compile [INFO] +- org.scalatest:scalatest_2.13:jar:3.0.8:test [INFO] | \- org.scalactic:scalactic_2.13:jar:3.0.8:test [INFO] +- org.scalacheck:scalacheck_2.13:jar:1.14.0:test [INFO] | \- org.scala-sbt:test-interface:jar:1.0:test [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile [INFO] +- org.scala-lang:scala-library:jar:2.13.8:compile [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] [INFO] ------------------------< com.metglobal:report >------------------------ [INFO] Building report 0.2 [4/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ report --- [INFO] com.metglobal:report:jar:0.2 [INFO] +- com.metglobal:core:jar:0.2:compile [INFO] | +- com.google.guava:guava:jar:26.0-jre:compile [INFO] | | +- org.checkerframework:checker-qual:jar:2.5.2:compile [INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:compile [INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile [INFO] | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile [INFO] | +- com.typesafe:config:jar:1.3.3:compile [INFO] | +- commons-cli:commons-cli:jar:1.2:compile [INFO] | \- joda-time:joda-time:jar:2.9.9:compile [INFO] +- org.apache.spark:spark-core_2.13:jar:3.2.0:compile [INFO] | +- org.scala-lang.modules:scala-parallel-collections_2.13:jar:1.0.3:compile [INFO] | +- org.apache.avro:avro:jar:1.10.2:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.12.2:compile [INFO] | | \- org.apache.commons:commons-compress:jar:1.20:compile [INFO] | +- org.apache.avro:avro-mapred:jar:1.10.2:compile [INFO] | | \- org.apache.avro:avro-ipc:jar:1.10.2:compile [INFO] | | \- org.tukaani:xz:jar:1.8:compile [INFO] | +- com.twitter:chill_2.13:jar:0.10.0:compile [INFO] | | \- com.esotericsoftware:kryo-shaded:jar:4.0.2:compile [INFO] | | +- com.esotericsoftware:minlog:jar:1.3.0:compile [INFO] | | \- org.objenesis:objenesis:jar:2.5.1:compile [INFO] | +- com.twitter:chill-java:jar:0.10.0:compile [INFO] | +- org.apache.xbean:xbean-asm9-shaded:jar:4.20:compile [INFO] | +- org.apache.hadoop:hadoop-client-api:jar:3.3.1:compile [INFO] | +- org.apache.hadoop:hadoop-client-runtime:jar:3.3.1:compile [INFO] | | +- org.apache.htrace:htrace-core4:jar:4.1.0-incubating:runtime [INFO] | | \- commons-logging:commons-logging:jar:1.1.3:runtime [INFO] | +- org.apache.spark:spark-launcher_2.13:jar:3.2.0:compile [INFO] | +- org.apache.spark:spark-kvstore_2.13:jar:3.2.0:compile [INFO] | | +- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile [INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.12.3:compile [INFO] | +- org.apache.spark:spark-network-common_2.13:jar:3.2.0:compile [INFO] | | \- com.google.crypto.tink:tink:jar:1.6.0:compile [INFO] | | \- com.google.code.gson:gson:jar:2.8.6:compile [INFO] | +- org.apache.spark:spark-network-shuffle_2.13:jar:3.2.0:compile [INFO] | +- org.apache.spark:spark-unsafe_2.13:jar:3.2.0:compile [INFO] | +- javax.activation:activation:jar:1.1.1:compile [INFO] | +- org.apache.curator:curator-recipes:jar:2.13.0:compile [INFO] | | \- org.apache.curator:curator-framework:jar:2.13.0:compile [INFO] | | \- org.apache.curator:curator-client:jar:2.13.0:compile [INFO] | +- org.apache.zookeeper:zookeeper:jar:3.6.2:compile [INFO] | | +- commons-lang:commons-lang:jar:2.6:compile [INFO] | | +- org.apache.zookeeper:zookeeper-jute:jar:3.6.2:compile [INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile [INFO] | +- jakarta.servlet:jakarta.servlet-api:jar:4.0.3:compile [INFO] | +- commons-codec:commons-codec:jar:1.15:compile [INFO] | +- org.apache.commons:commons-lang3:jar:3.12.0:compile [INFO] | +- org.apache.commons:commons-math3:jar:3.4.1:compile [INFO] | +- org.apache.commons:commons-text:jar:1.6:compile [INFO] | +- commons-io:commons-io:jar:2.8.0:compile [INFO] | +- commons-collections:commons-collections:jar:3.2.2:compile [INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile [INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.30:compile [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.30:compile [INFO] | +- com.ning:compress-lzf:jar:1.0.3:compile [INFO] | +- org.xerial.snappy:snappy-java:jar:1.1.8.4:compile [INFO] | +- org.lz4:lz4-java:jar:1.7.1:compile [INFO] | +- com.github.luben:zstd-jni:jar:1.5.0-4:compile [INFO] | +- org.roaringbitmap:RoaringBitmap:jar:0.9.0:compile [INFO] | | \- org.roaringbitmap:shims:jar:0.9.0:runtime [INFO] | +- commons-net:commons-net:jar:3.1:compile [INFO] | +- org.scala-lang.modules:scala-xml_2.13:jar:1.2.0:compile [INFO] | +- org.scala-lang:scala-reflect:jar:2.13.5:compile [INFO] | +- org.json4s:json4s-jackson_2.13:jar:3.7.0-M11:compile [INFO] | | \- org.json4s:json4s-core_2.13:jar:3.7.0-M11:compile [INFO] | | +- org.json4s:json4s-ast_2.13:jar:3.7.0-M11:compile [INFO] | | \- org.json4s:json4s-scalap_2.13:jar:3.7.0-M11:compile [INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.34:compile [INFO] | | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile [INFO] | | \- org.glassfish.hk2.external:jakarta.inject:jar:2.6.1:compile [INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.34:compile [INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile [INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile [INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.34:compile [INFO] | | \- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.34:compile [INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.34:compile [INFO] | +- org.glassfish.jersey.inject:jersey-hk2:jar:2.34:compile [INFO] | | +- org.glassfish.hk2:hk2-locator:jar:2.6.1:compile [INFO] | | | +- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.6.1:compile [INFO] | | | +- org.glassfish.hk2:hk2-api:jar:2.6.1:compile [INFO] | | | \- org.glassfish.hk2:hk2-utils:jar:2.6.1:compile [INFO] | | \- org.javassist:javassist:jar:3.25.0-GA:compile [INFO] | +- io.netty:netty-all:jar:4.1.68.Final:compile [INFO] | +- com.clearspring.analytics:stream:jar:2.9.6:compile [INFO] | +- io.dropwizard.metrics:metrics-core:jar:4.2.0:compile [INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:4.2.0:compile [INFO] | +- io.dropwizard.metrics:metrics-json:jar:4.2.0:compile [INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:4.2.0:compile [INFO] | +- io.dropwizard.metrics:metrics-jmx:jar:4.2.0:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.12.3:compile [INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.13:jar:2.12.3:compile [INFO] | | \- com.thoughtworks.paranamer:paranamer:jar:2.8:compile [INFO] | +- org.apache.ivy:ivy:jar:2.5.0:compile [INFO] | +- oro:oro:jar:2.0.8:compile [INFO] | +- net.razorvine:pyrolite:jar:4.30:compile [INFO] | +- net.sf.py4j:py4j:jar:0.10.9.2:compile [INFO] | +- org.apache.spark:spark-tags_2.13:jar:3.2.0:compile [INFO] | +- org.apache.commons:commons-crypto:jar:1.1.0:compile [INFO] | \- org.spark-project.spark:unused:jar:1.0.0:compile [INFO] +- org.apache.spark:spark-sql_2.13:jar:3.2.0:compile [INFO] | +- org.rocksdb:rocksdbjni:jar:6.20.3:compile [INFO] | +- com.univocity:univocity-parsers:jar:2.9.1:compile [INFO] | +- org.apache.spark:spark-sketch_2.13:jar:3.2.0:compile [INFO] | +- org.apache.spark:spark-catalyst_2.13:jar:3.2.0:compile [INFO] | | +- org.scala-lang.modules:scala-parser-combinators_2.13:jar:1.1.2:compile [INFO] | | +- org.codehaus.janino:janino:jar:3.0.16:compile [INFO] | | +- org.codehaus.janino:commons-compiler:jar:3.0.16:compile [INFO] | | +- org.antlr:antlr4-runtime:jar:4.8:compile [INFO] | | +- javax.xml.bind:jaxb-api:jar:2.2.11:compile [INFO] | | +- org.apache.arrow:arrow-vector:jar:2.0.0:compile [INFO] | | | +- org.apache.arrow:arrow-format:jar:2.0.0:compile [INFO] | | | +- org.apache.arrow:arrow-memory-core:jar:2.0.0:compile [INFO] | | | \- com.google.flatbuffers:flatbuffers-java:jar:1.9.0:compile [INFO] | | \- org.apache.arrow:arrow-memory-netty:jar:2.0.0:compile [INFO] | +- org.apache.orc:orc-core:jar:1.6.11:compile [INFO] | | +- org.apache.orc:orc-shims:jar:1.6.11:compile [INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile [INFO] | | +- io.airlift:aircompressor:jar:0.21:compile [INFO] | | +- org.jetbrains:annotations:jar:17.0.0:compile [INFO] | | \- org.threeten:threeten-extra:jar:1.5.0:compile [INFO] | +- org.apache.orc:orc-mapreduce:jar:1.6.11:compile [INFO] | +- org.apache.hive:hive-storage-api:jar:2.7.2:compile [INFO] | +- org.apache.parquet:parquet-column:jar:1.12.1:compile [INFO] | | +- org.apache.parquet:parquet-common:jar:1.12.1:compile [INFO] | | \- org.apache.parquet:parquet-encoding:jar:1.12.1:compile [INFO] | \- org.apache.parquet:parquet-hadoop:jar:1.12.1:compile [INFO] | +- org.apache.parquet:parquet-format-structures:jar:1.12.1:compile [INFO] | \- org.apache.parquet:parquet-jackson:jar:1.12.1:compile [INFO] +- log4j:log4j:jar:1.2.17:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.12:compile [INFO] +- org.scala-lang:scala-library:jar:2.13.8:compile [INFO] +- junit:junit:jar:4.12:test [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test [INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for guru-feed 0.2: [INFO] [INFO] guru-feed .......................................... SUCCESS [ 0.358 s] [INFO] core ............................................... SUCCESS [ 0.040 s] [INFO] service ............................................ SUCCESS [ 0.295 s] [INFO] report ............................................. SUCCESS [ 0.052 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.889 s [INFO] Finished at: 2022-02-05T00:54:21+03:00 [INFO] ------------------------------------------------------------------------ ```
Metals doctor ``` Build target | Type | Diagnostics | Interactive | Semanticdb | Debugging | Java support | Recommendation -------------- | ------------ | ----------- | ----------- | ---------- | --------- | ------------ | -------------- guru-feed | Scala 2.13.0 | ✅ | ❌ | ❌ | ✅ | ✅ | Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. guru-feed-test | Scala 2.13.0 | ✅ | ❌ | ❌ | ✅ | ✅ | Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. core | Scala 2.13.0 | ✅ | ❌ | ❌ | ✅ | ✅ | Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. core-test | Scala 2.13.0 | ✅ | ❌ | ❌ | ✅ | ✅ | Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. report | Scala 2.13.0 | ✅ | ❌ | ❌ | ✅ | ✅ | Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. report-test | Scala 2.13.0 | ✅ | ❌ | ❌ | ✅ | ✅ | Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. service | Scala 2.13.0 | ✅ | ❌ | ❌ | ✅ | ✅ | Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. service-test | Scala 2.13.0 | ✅ | ❌ | ❌ | ✅ | ✅ | Upgrade to Scala 2.13.8 and run 'Import build' to enable code navigation. ```
tgodzik commented 2 years ago

How did the pom change? Looks like something is still setting a wrong 2.13.0 or 2.13 version.

trK54Ylmz commented 2 years ago

I found the problem by doing so much mvn dependecy:tree -Dverbose. The problem was related to the pom.xml file, just like you have mentioned. Thank you @tgodzik.

I have excluded scala-library versions from dependencies. For example,

<dependency>
    <groupId>org.scalacheck</groupId>
    <artifactId>scalacheck_${scala.min.version}</artifactId>
    <version>${scalacheck.version}</version>
    <scope>test</scope>
    <exclusions>
        <exclusion>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
        </exclusion>
    </exclusions>
</dependency>

And the problem fixed. It's working now.

Metals doctor ``` Build target | Type | Diagnostics | Interactive | Semanticdb | Debugging | Java support | Recommendation -------------- | ------------ | ----------- | ----------- | ---------- | --------- | ------------ | -------------- guru-feed | Scala 2.13.8 | ✅ | ✅ | ✅ | ✅ | ✅ | guru-feed-test | Scala 2.13.8 | ✅ | ✅ | ✅ | ✅ | ✅ | core | Scala 2.13.8 | ✅ | ✅ | ✅ | ✅ | ✅ | core-test | Scala 2.13.8 | ✅ | ✅ | ✅ | ✅ | ✅ | report | Scala 2.13.8 | ✅ | ✅ | ✅ | ✅ | ✅ | report-test | Scala 2.13.8 | ✅ | ✅ | ✅ | ✅ | ✅ | service | Scala 2.13.8 | ✅ | ✅ | ✅ | ✅ | ✅ | service-test | Scala 2.13.8 | ✅ | ✅ | ✅ | ✅ | ✅ | ```
tgodzik commented 2 years ago

Glad to hear this worked!