JetBrains / intellij-platform-plugin-template

Template repository for creating plugins for IntelliJ Platform
Apache License 2.0
2.97k stars 587 forks source link

Not able to resolve dependencies while Gradle Sync #452

Closed dishant246 closed 1 month ago

dishant246 commented 3 months ago

What happened?

I am getting the following error while running Gradle Sync

Cause: optional part hasn't been closed in pattern /C:/Users/DishantDesai/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2022.3.3/19e52733ac61e1d2e675720f92daf5959355cb1e/ideaIC-2022.3.3/[organisation]/[module]/[revision]/ivy-[revision].xml

Relevant log output or stack trace

22:20:44: Executing 'setupDependencies'...

Calculating task graph as no cached configuration is available for tasks: setupDependencies

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache state could not be cached: field `__idea__` of task `:setupDependencies` of type `org.jetbrains.intellij.tasks.SetupDependenciesTask`: error writing value of type 'org.gradle.api.internal.provider.DefaultProperty'
> Could not resolve all files for configuration ':z90_intellij'.
   > Could not resolve com.jetbrains:ideaIC:2022.3.3.
     Required by:
         project :
      > Could not resolve com.jetbrains:ideaIC:2022.3.3.
         > optional part hasn't been closed in pattern /C:/Users/DishantDesai/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2022.3.3/19e52733ac61e1d2e675720f92daf5959355cb1e/ideaIC-2022.3.3/[organisation]/[module]/[revision]/ivy-[revision].xml

Steps to reproduce

  1. Create a new project using the template provided at https://github.com/JetBrains/intellij-platform-plugin-template
  2. Clone and import the project to Intellij
  3. Set the JDK version of the project to 17.0.10
  4. Perform Gradle Sync

Gradle IntelliJ Plugin version

1.17.2

Gradle version

8.6

Operating System

Windows

Link to build, i.e. failing GitHub Action job

No response

dishant246 commented 3 months ago

Full stack trace :

YannCebron commented 3 months ago

Please try disabling configuration cache locally org.gradle.configuration-cache=false in gradle.properties and re-import the project in the IDE. Additionally, try removing /C:/Users/DishantDesai(TADigit/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2022.3.3 directory to force re-download of the SDK.

YannCebron commented 1 month ago

Please reopen with updates/more details if it still reproduces on your side.