microsoft / vscode-java-test

Run and debug Java test cases in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test
Other
298 stars 129 forks source link

Compile error when runing with scala package #988

Closed JuniverseCoder closed 4 years ago

JuniverseCoder commented 4 years ago
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
Launching with the following launch configuration: '{
  "name": "Launch Java Tests - 72c530",
  "type": "java",
  "request": "launch",
  "mainClass": "org.eclipse.jdt.internal.junit.runner.RemoteTestRunner",
  "projectName": "sentry-core-model-kafka",
  "cwd": "/mnt/d/workspace/sentry/sentry-core/sentry-core-model-kafka",
  "classPaths": [
    "/mnt/d/workspace/sentry/sentry-core/sentry-core-model-kafka/target/test-classes",
    "/mnt/d/workspace/sentry/sentry-core/sentry-core-model-kafka/target/classes",
    "/mnt/d/workspace/sentry/sentry-core/sentry-core-common/target/classes",
    "/mnt/c/Users/ihuan/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar",
    "/mnt/c/Users/ihuan/.m2/repository/commons-cli/commons-cli/1.4/commons-cli-1.4.jar",
    "/mnt/c/Users/ihuan/.m2/repository/com/google/guava/guava/14.0.1/guava-14.0.1.jar",
    "/mnt/c/Users/ihuan/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-core/1.4.0/shiro-core-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-lang/1.4.0/shiro-lang-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-cache/1.4.0/shiro-cache-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-crypto-hash/1.4.0/shiro-crypto-hash-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-crypto-core/1.4.0/shiro-crypto-core-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-crypto-cipher/1.4.0/shiro-crypto-cipher-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-config-core/1.4.0/shiro-config-core-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-config-ogdl/1.4.0/shiro-config-ogdl-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/shiro/shiro-event/1.4.0/shiro-event-1.4.0.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/thrift/libthrift/0.9.3/libthrift-0.9.3.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/httpcomponents/httpclient/4.5.3/httpclient-4.5.3.jar",
    "/mnt/c/Users/ihuan/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar",
    "/mnt/c/Users/ihuan/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.jar",
    "/mnt/c/Users/ihuan/.m2/repository/junit/junit/4.10/junit-4.10.jar",
    "/mnt/c/Users/ihuan/.m2/repository/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar",
    "/home/jerry/.vscode-server/data/User/globalStorage/redhat.java/0.61.0/config_linux/org.eclipse.osgi/74/0/.cp",
    "/home/jerry/.vscode-server/data/User/globalStorage/redhat.java/0.61.0/config_linux/org.eclipse.osgi/45/0/.cp"
  ],
  "args": [
    "-version",
    "3",
    "-port",
    "4187",
    "-testLoaderClass",
    "org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader",
    "-loaderpluginname",
    "org.eclipse.jdt.junit4.runtime",
    "-classNames",
    "org.apache.sentry.core.model.kafka.TestKafkaAction"
  ],
  "vmArgs": [
    "-ea"
  ],
  "env": {},
  "noDebug": false,
  "console": "internalConsole"
}'
 [Error - 8:31:04 PM] May 2, 2020, 8:31:04 PM Error occured while building workspace. Details: 
 message: The method get(Resource) is ambiguous for the type Map<Resource,Set<Acl>>; code: 67108966; resource: /mnt/d/workspace/sentry/sentry-binding/sentry-binding-kafka/src/main/java/org/apache/sentry/kafka/binding/KafkaAuthBinding.java; line: 360
 message: The method get(Resource) is ambiguous for the type Map<Resource,Set<Acl>>; code: 67108966; resource: /mnt/d/workspace/sentry/sentry-tests/sentry-tests-kafka/src/test/java/org/apache/sentry/tests/e2e/kafka/TestAclsCrud.java; line: 328
 message: The method get(Resource) is ambiguous for the type Map<Resource,Set<Acl>>; code: 67108966; resource: /mnt/d/workspace/sentry/sentry-tests/sentry-tests-kafka/src/test/java/org/apache/sentry/tests/e2e/kafka/TestAclsCrud.java; line: 191
 message: The method get(Resource) is ambiguous for the type Map<Resource,Set<Acl>>; code: 67108966; resource: /mnt/d/workspace/sentry/sentry-tests/sentry-tests-kafka/src/test/java/org/apache/sentry/tests/e2e/kafka/TestAclsCrud.java; line: 251
 message: The method get(Resource) is ambiguous for the type Map<Resource,Set<Acl>>; code: 67108966; resource: /mnt/d/workspace/sentry/sentry-tests/sentry-tests-kafka/src/test/java/org/apache/sentry/tests/e2e/kafka/TestAclsCrud.java; line: 326
 message: The method get(Resource) is ambiguous for the type Map<Resource,Set<Acl>>; code: 67108966; resource: /mnt/d/workspace/sentry/sentry-tests/sentry-tests-kafka/src/test/java/org/apache/sentry/tests/e2e/kafka/TestAclsCrud.java; line: 327

KafkaAuthBinding.java; line: 360

this code can be compile by idea using com.intellij.junit4.JUnit4IdeaTestRunner

jdneo commented 4 years ago

Hi @745245208,

The test runner is not responsible for building the project. If you have problem related with that, please file an issue at the Java Language Server repo.

Thanks.