Open laurentgo opened 3 days ago
I forgot that there's another issue with the project defining two resources on top of each other, which can be worked around by commenting the following lines in build.gradle
:
sourceSets {
test {
resources {
srcDir "${rootDir}/build"
}
}
}
@laurentgo Could you try the following:
$ cd <iceberg_root>
$ ./gradlew build -x test
index 02758e2a7..1372cd9f8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -163,6 +163,28 @@ subprojects {
}
}
configurations { testImplementation.extendsFrom compileOnly
3. start VS Code
Sadly, it doesn't seem to work/the error is still present. I don't see new error messages either, so I am not sure if the code above is invoked or not
...so I am not sure if the code above is invoked or not
You can check if there is iceberg-aliyun>Project and External Dependencies>iceberg-bundled-guava-1.7.0-SNAPSHOT.jar
in the Java Projects view.
Could you also try the following:
$ cd <iceberg>
$ git clean -fd
$ ./gradlew build -x test
$ ls bundled-guava/build/libs/iceberg-bundled-guava-1.7.0-SNAPSHOT.jar
bundled-guava/build/libs/iceberg-bundled-guava-1.7.0-SNAPSHOT.jar
$ code .
I do not see see iceberg-bundled-guava-1.7.0-SNAPSHOT.jar
in the list of referenced libraries:
I do see the bundled libray at bundled-guava/build/libs/iceberg-bundled-guava-1.7.0-SNAPSHOT.jar
though
if I look at the .classpath
file, I only see this:
<classpathentry kind="src" path="/bundled-guava">
<attributes>
<attribute name="gradle.buildServer" value="true"/>
</attributes>
</classpathentry>
@laurentgo Could you add
"gradle.autoDetect": "off",
"java.gradle.buildServer.enabled": "off",
to settings.json?
Visual Studio fails to import the Apache Iceberg project correctly with classes not being referenced properly. Workspace logs show the following message:
The local file is not a zip file but an actual pom file (as hinted by the file extension)
Same project opens find in other editors like Intellij
Environment
Steps To Reproduce
java.jdt.ls.java.home
andjava.import.gradle.java.home
settings, and reload[Please attach a sample project reproducing the error] Please attach logs
Current Result
Project is not imported correctly, some
org.apache.iceberg
classes are not discovered properly.Expected Result
Project is imported successfully.
Additional Informations