A
A
Alex00qqw2020-11-17 21:39:28
Java
Alex00qqw, 2020-11-17 21:39:28

Problem with IntelliJ Idea when building a spring project. Has anyone come across?

Help me please. An error began to appear when building a spring + kotlin + java + gradle project. Initially a project in java. Now Kotlin is 99% there. So, when rebuilding, an error occurs

Compilation with Kotlin compile daemon was not successful
java.rmi.ServerError: Error occurred in server thread; nested exception is: 
  java.lang.AssertionError: Could not delete caches dir D:\projects\groupstp\dispatcher-spring\smartdispatch\modules\core\build\kotlin\compileKotlin

.....

Could not connect to kotlin daemon. Using fallback strategy.

> Task :compileKotlin FAILED

Execution failed for task ':compileKotlin'.
> java.io.IOException: Cannot run program "C:\Program Files\Java\jdk-11.0.7\bin\java": CreateProcess error=206, Имя файла или его расширение имеет слишком большую длину
Caused by: java.lang.AssertionError: Could not delete caches dir ...core\build\kotlin\compileKotlin


As long as we heal. close Idea. kill all Java processes. Delete by hand everything in the build\kotlin directory
Here is something similar https://youtrack.jetbrains.com/issue/KT-36253

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2020-11-18
@alfss

Something is blocking core\build\kotlin\compileKotlin.
You need to look at which processes are doing this.
Perhaps something corrupts access rights during the build.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question