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.42k stars 271 forks source link

Error: ".../jcef_cache/SingletonSocket: not a regular file" #1668

Closed ekudel closed 3 months ago

ekudel commented 3 months ago

What happened?

Our plugin uses JCEF and we get the following error when execute "runIde" second time:

Cannot snapshot /Users/Evgenii/work/intellij-codereview-plugin/master/bitbucket/bitbucket-plugin/build/idea-sandbox/IC-2024.2/system/jcef_cache/SingletonSocket: not a regular file

Deleting "jcef_cache" directory helps. It didn't happen with the "old" intellij-gradle plugin.

Relevant log output or stack trace

No response

Steps to reproduce

  1. Create a plugin which uses JCEFHtmlPanel (jetbrainsRuntime() dependency is needed)
  2. Run "runIde" Gradle task and do something to make JCEF rendering happen
  3. Close the IDE
  4. Run "runIde" again

Gradle IntelliJ Plugin version

2.0.0-beta7

Gradle version

8.8

Operating System

macOS

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

No response

jonathanlermitage commented 3 months ago

Same thing for me, but it happens each time I have to kill my sandboxed IDE. No problem if I exit the sandboxed IDE normally.

Undin commented 3 months ago

As I can see, it's already fixed by https://github.com/JetBrains/intellij-platform-gradle-plugin/commit/07cb0f96e8a5f575d521bb393c15c346d68883a4

Undin commented 3 months ago

@hsz I suppose it can be closed now since beta8 is already published