question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception `java.nio.file.FileAlreadyExistsException: instrumentCode/classpath.index`

See original GitHub issue

I 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:closed
  • Created a year ago
  • Reactions:4
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jansorgcommented, May 24, 2022

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 😉

0reactions
dave-griffithscommented, Jun 15, 2022

I saw it too so backed off to 1.5.3 for now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found