Exception `java.nio.file.FileAlreadyExistsException: instrumentCode/classpath.index`
See original GitHub issueI updated to gradle-intellij 1.6.0.
The first build worked fine, but further executions of Gradle fail with FileAlreadyExistsException
. I’m using a multi-module project setup with several intellij-enabled Gradle modules. Please let me know if you need anything else to debug this.
./gradlew build -x test
> Task :instrumentCode FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':instrumentCode'.
> java.nio.file.FileAlreadyExistsException: /home/user/product/build/tmp/instrumentCode/classpath.index
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:9 (3 by maintainers)
Top Results From Across the Web
FileAlreadyExistsException (Java Platform SE 7 )
Constructs an instance of this class. Method Summary. Methods inherited from class java.nio.file.FileSystemException · getFile, getMessage, getOtherFile ...
Read more >Class java.nio.file.Files throws FileAlreadyExistsException as ...
From the book "Java I/O, NIO and NIO.2" by Jeff Friesen: FileAlreadyExistsException is an example of an optional specific exception.
Read more >Gradle Intellij Plugin Versions - Open Source Agenda
Ensure classpath.index is not bundled in the JAR file; Warn about no settings provided by the ... FileAlreadyExistsException when instrumenting code #998 ...
Read more >java.nio.file.Files.createDirectory java code examples - Tabnine
public Path createIfNotExists(String name) { Path path = basePath.resolve(name); try { Files.createDirectory(path); } catch (FileAlreadyExistsException e) ...
Read more >gareth - Discourse – Snowplow
java.nio.file.FileAlreadyExistsException: ./ip_geo. This appears in several applications and the drivers. Does this point at anything?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Unfortunately I don’t have the time at the moment to prepare that, but I hope to provide one at some point. Hopefully another project with a simpler build structure will run into it before 😉
I saw it too so backed off to 1.5.3 for now.