Skip to content

Using incremental build with Zinc locks a file and prevents it from being deleted (Windows 10) #216

Closed
@eyalroth

Description

@eyalroth

Using the plugin configured with an incremental build using Zinc server on Windows 10 causes a strange bug in which the Zinc process locks some of the output jars and prevents them from being deleted (and perhaps even modified).

Steps to reproduce:

  1. Download the following project: zinc-bug.zip
  2. Start a Zinc server.
  3. Run maven install from the root of the project.
  4. Run maven clean from the same location.

Make sure that when running mvn install you see the message [INFO] Using zinc server for incremental compilation.

On the last step you'll see that Maven cannot delete one of the files. Trying to delete it manually fails as well. Trying to unlock it with utility apps such as Process Explorer fails as well. Only a restart to the Zinc server releases the file.

I had originally created this issue in the new Zinc repository (sbt/zinc#404), but they have referred me here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions