JetBrains / intellij-platform-gradle-plugin

Gradle plugin for building plugins for IntelliJ-based IDEs
https://plugins.jetbrains.com/docs/intellij/gradle-prerequisites.html
Apache License 2.0
1.43k stars 271 forks source link

Error when building plugin with java 17 #1240

Closed gayanper closed 1 year ago

gayanper commented 1 year ago

Describe the bug When compiling intellij plugin the build fails with the following error

> Task :instrumentCode FAILED

Execution failed for task ':instrumentCode'.
> {path_to_jdk}/java/17.0.5-ms/Packages does not exist.

To Reproduce Use the following kts file

plugins {
    id("java")
    id("org.jetbrains.kotlin.jvm") version "1.7.20"
    id("org.jetbrains.intellij") version "1.10.0"
}

group = "org.gap.ijplugins"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
    version.set("2022.1.4")
    type.set("IC") // Target IDE Platform
    plugins.set(listOf("com.intellij.java"))
}

tasks {
    // Set the JVM compatibility versions
    withType<JavaCompile> {
        sourceCompatibility = "11"
        targetCompatibility = "11"
    }
    withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
        kotlinOptions.jvmTarget = "17"
    }

    patchPluginXml {
        sinceBuild.set("221")
        untilBuild.set("233.*")
    }

    signPlugin {
        certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
        privateKey.set(System.getenv("PRIVATE_KEY"))
        password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
    }

    publishPlugin {
        token.set(System.getenv("PUBLISH_TOKEN"))
    }
}

Expected behavior Successful compilation

Environment:

hsz commented 1 year ago

@gayanper Thanks for reporting, but unfortunately it's hard to figure out what's going on. Please run the Gradle task with --info flag.

gayanper commented 1 year ago

with --info

Task ':instrumentCode' is not up-to-date because:
  Output property 'outputDir' file /Users/user/Projects/idea/testdata-completion/build/instrumented/instrumentCode has been removed.
  Output property 'outputDir' file /Users/user/Projects/idea/testdata-completion/build/instrumented/instrumentCode/META-INF has been removed.
  Output property 'outputDir' file /Users/user/Projects/idea/testdata-completion/build/instrumented/instrumentCode/META-INF/testdata-completion.kotlin_module has been removed.
The input changes require a full rebuild for incremental task ':instrumentCode'.
[gradle-intellij-plugin :testdata-completion:instrumentCode] Compiling forms and instrumenting code with nullability preconditions
:instrumentCode (Thread[Execution worker for ':',5,main]) completed. Took 0.15 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':instrumentCode'.
> {path_to_jdk}/java/17.0.5-ms/Packages does not exist.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
7 actionable tasks: 7 executed
gayanper commented 1 year ago

with --debug

2022-12-04T19:02:31.400+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Task :instrumentCode'
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Task :instrumentCode' completed
2022-12-04T19:02:31.401+0100 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :instrumentCode (Thread[Execution worker for ':',5,main]) completed. Took 0.074 secs.
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :instrumentCode failed
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :instrumentCode completed, executed: true
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :postInstrumentCode
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :postInstrumentCode
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :postInstrumentCode
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :postInstrumentCode
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :postInstrumentCode
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on :
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.70 completed (1 worker(s) in use)
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on root.1.70
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': acquired lock on :
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.70 started (1 worker(s) in use).
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': acquired lock on root.1.70
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :postInstrumentCode completed, executed: false
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :classpathIndexCleanup
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :classpathIndexCleanup
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :classpathIndexCleanup
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :classpathIndexCleanup
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :classpathIndexCleanup
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :inspectClassesForKotlinIC
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.Node] Dependency :jar for :inspectClassesForKotlinIC not yet completed
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :jar
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :jar
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :jar
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :jar
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :jar
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Already completed node :postInstrumentCode reported as finished executing
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on :
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.70 completed (1 worker(s) in use)
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on root.1.70
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': acquired lock on :
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.70 started (1 worker(s) in use).
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': acquired lock on root.1.70
2022-12-04T19:02:31.401+0100 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :jar completed, executed: false
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.Node] Checking if all dependencies are complete for :inspectClassesForKotlinIC
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.Node] All dependencies are complete for :inspectClassesForKotlinIC
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all must successors are complete for :inspectClassesForKotlinIC
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] Checking if all finalizing successors are complete for :inspectClassesForKotlinIC
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.TaskNode] All task dependencies are complete for :inspectClassesForKotlinIC
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Already completed node :jar reported as finished executing
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on :
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.70 completed (1 worker(s) in use)
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on root.1.70
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': acquired lock on :
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.70 started (1 worker(s) in use).
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': acquired lock on root.1.70
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Node :inspectClassesForKotlinIC completed, executed: false
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultExecutionPlan] Already completed node :inspectClassesForKotlinIC reported as finished executing
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on :
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.70 completed (1 worker(s) in use)
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on root.1.70
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':',5,main]] finished, busy: 0.531 secs, idle: 0.01 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 5,5,main]] finished, busy: 0.0 secs, idle: 0.541 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 2,5,main]] finished, busy: 0.003 secs, idle: 0.538 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 9,5,main]] finished, busy: 0.0 secs, idle: 0.541 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 8,5,main]] finished, busy: 0.0 secs, idle: 0.541 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Daemon worker Thread 6,5,main]] finished, busy: 0.0 secs, idle: 0.541 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 7,5,main]] finished, busy: 0.0 secs, idle: 0.541 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 6,5,main]] finished, busy: 0.0 secs, idle: 0.541 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 4,5,main]] finished, busy: 0.0 secs, idle: 0.541 secs
2022-12-04T19:02:31.402+0100 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 3,5,main]] finished, busy: 0.0 secs, idle: 0.541 secs
2022-12-04T19:02:31.412+0100 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskExecutionGraph] Timing: Executing the DAG took 0.551 secs
2022-12-04T19:02:31.412+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run tasks'
2022-12-04T19:02:31.412+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run tasks' completed
2022-12-04T19:02:31.412+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run main tasks'
2022-12-04T19:02:31.412+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run main tasks' completed
2022-12-04T19:02:31.413+0100 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.statistics.KotlinBuildStatHandler] Executing [class org.jetbrains.kotlin.gradle.plugin.statistics.KotlinBuildStatHandler.buildFinished]
2022-12-04T19:02:31.413+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute 'allprojects {}' action' started
2022-12-04T19:02:31.413+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: acquired lock on :
2022-12-04T19:02:31.413+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Cross-configure project :' started
2022-12-04T19:02:31.413+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Cross-configure project :'
2022-12-04T19:02:31.413+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Cross-configure project :' completed
2022-12-04T19:02:31.413+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: released lock on :
2022-12-04T19:02:31.413+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Execute 'allprojects {}' action'
2022-12-04T19:02:31.413+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute 'allprojects {}' action' completed
2022-12-04T19:02:31.414+0100 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.KotlinGradleFinishBuildHandler] [KOTLIN] Deleted session-is-alive flag file: build/kotlin/sessions/kotlin-compiler-2434319522078743194.salive
2022-12-04T19:02:31.414+0100 [DEBUG] [org.jetbrains.kotlin.gradle.plugin.KotlinGradleBuildServices$Inject] [KOTLIN] Disposed KotlinGradleBuildServices
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':instrumentCode'.
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > {java}/java/17.0.5-ms/Packages does not exist.
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --stacktrace option to get the stack trace.
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Run with --scan to get full insights.
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
2022-12-04T19:02:31.414+0100 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
2022-12-04T19:02:31.415+0100 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 
2022-12-04T19:02:31.415+0100 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 1s
2022-12-04T19:02:31.415+0100 [LIFECYCLE] [org.gradle.internal.buildevents.TaskExecutionStatisticsReporter] 8 actionable tasks: 8 executed
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' started
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected apfs: / from /dev/disk3s1s1 (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected devfs: /dev from devfs (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected apfs: /System/Volumes/VM from /dev/disk3s6 (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected apfs: /System/Volumes/Preboot from /dev/disk3s2 (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected apfs: /System/Volumes/Update from /dev/disk3s4 (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected apfs: /System/Volumes/xarts from /dev/disk1s2 (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected apfs: /System/Volumes/iSCPreboot from /dev/disk1s1 (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected apfs: /System/Volumes/Hardware from /dev/disk1s3 (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected apfs: /System/Volumes/Data from /dev/disk3s5 (remote: false)
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.watch.vfs.impl.DefaultWatchableFileSystemDetector] Detected autofs: /System/Volumes/Data/home from map auto_home (remote: true)
2022-12-04T19:02:31.415+0100 [INFO] [org.gradle.internal.watch.registry.impl.HierarchicalFileWatcherUpdater] Watched directory hierarchies: [/Users/user/Projects/idea/testdata-completion]
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Build finished for file system watching'
2022-12-04T19:02:31.415+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Build finished for file system watching' completed
2022-12-04T19:02:31.426+0100 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-supplier (/Users/user/.gradle/caches/7.3.3/md-supplier)
2022-12-04T19:02:31.426+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-supplier (/Users/user/.gradle/caches/7.3.3/md-supplier).
2022-12-04T19:02:31.436+0100 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (/Users/user/Projects/idea/testdata-completion/.gradle/buildOutputCleanup)
2022-12-04T19:02:31.436+0100 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFiles.bin (/Users/user/Projects/idea/testdata-completion/.gradle/buildOutputCleanup/outputFiles.bin)
2022-12-04T19:02:31.436+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (/Users/user/Projects/idea/testdata-completion/.gradle/buildOutputCleanup).
2022-12-04T19:02:31.447+0100 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for execution history cache (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/executionHistory)
2022-12-04T19:02:31.447+0100 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache executionHistory.bin (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/executionHistory/executionHistory.bin)
2022-12-04T19:02:31.447+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on execution history cache (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/executionHistory).
2022-12-04T19:02:31.447+0100 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-rule (/Users/user/.gradle/caches/7.3.3/md-rule)
2022-12-04T19:02:31.447+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-rule (/Users/user/.gradle/caches/7.3.3/md-rule).
2022-12-04T19:02:31.447+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
2022-12-04T19:02:31.448+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
2022-12-04T19:02:31.448+0100 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 4 resolution results binary files in 0.0 secs
2022-12-04T19:02:31.448+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Run build'
2022-12-04T19:02:31.448+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Run build' completed
2022-12-04T19:02:31.448+0100 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
2022-12-04T19:02:31.448+0100 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 6: released lock on root.1
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for checksums cache (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/checksums)
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on checksums cache (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/checksums).
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/fileHashes)
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/fileHashes/fileHashes.bin)
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/fileHashes).
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryStore] VCS Checkout Cache (/Users/user/Projects/idea/testdata-completion/.gradle/vcs-1) has last been fully cleaned up 22 hours ago
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS Checkout Cache (/Users/user/Projects/idea/testdata-completion/.gradle/vcs-1) was closed 0 times.
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS metadata (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/vcsMetadata) was closed 0 times.
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for dependencies-accessors (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/dependencies-accessors)
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on dependencies-accessors (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/dependencies-accessors).
2022-12-04T19:02:31.449+0100 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryStore] dependencies-accessors (/Users/user/Projects/idea/testdata-completion/.gradle/7.3.3/dependencies-accessors) has last been fully cleaned up 3 hours ago
2022-12-04T19:02:31.464+0100 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
2022-12-04T19:02:31.840+0100 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@20681431
2022-12-04T19:02:31.840+0100 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 18: dispatching class org.gradle.launcher.daemon.protocol.CloseInput
2022-12-04T19:02:31.840+0100 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Received result Success[value=org.gradle.launcher.exec.BuildActionResult@4678a2eb] from daemon DaemonInfo{pid=90883, address=[8a2eea29-bcff-44b4-8b83-47b6267d5444 port:52851, addresses:[/127.0.0.1]], state=Idle, lastBusy=1670176943105, context=DefaultDaemonContext[uid=2f989dee-3a18-4b9c-ac7a-7825d8e92f6e,javaHome={java}/java/17.0.5-ms,daemonRegistryDir=/Users/user/.gradle/daemon,pid=90883,idleTimeout=10800000,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens,java.base/java.nio.charset=ALL-UNNAMED,--add-opens,java.base/java.net=ALL-UNNAMED,--add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
2022-12-04T19:02:31.840+0100 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished
2022-12-04T19:02:31.840+0100 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop
2022-12-04T19:02:31.841+0100 [LIFECYCLE] [org.gradle.launcher.cli.DebugLoggerWarningAction] 
#############################################################################
   WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

   Debug level logging will leak security sensitive information!

   https://docs.gradle.org/7.3.3/userguide/logging.html#sec:debug_security
#############################################################################
hsz commented 1 year ago

Still nothing useful. 😬

Let's try --debug then. You may want to upload it to https://uploads.jetbrains.com/ as it may contain sensitive information – then just post here just an identifier you'll get there.

In general, my guess is that the JAVA_HOME environment variable is somehow unreliable. We don't append the Packages directory name so either it comes from system properties or corrupted JAVA_HOME.

gayanper commented 1 year ago

Still nothing useful. 😬

Let's try --debug then. You may want to upload it to https://uploads.jetbrains.com/ as it may contain sensitive information – then just post here just an identifier you'll get there.

In general, my guess is that the JAVA_HOME environment variable is somehow unreliable. We don't append the Packages directory name so either it comes from system properties or corrupted JAVA_HOME.

Just added the debug, This should be reproducible for any project with those versions regardless the gradle script is groovy or kotlin.

hsz commented 1 year ago

This looks like a configuration issue. Please try the 1.11.0 or 1.11.1-SNAPSHOT.

If this issue is still present, provide your Gradle configuration for the further investigation.

gayanper commented 1 year ago

It works with the new version

cloorc commented 3 months ago

Still not work for :

intellijPluginVersion=1.17.3
kotlinJvmPluginVersion=2.0.0