Skip to content

Error: Could not write workspace metadata '/tmp/com_diffplug_spotless_extra_eclipse #967

Closed
@pzygielo

Description

@pzygielo

If you are submitting a bug, please include the following:

  • summary of problem
    Errors reported AFTER successful build.
  • gradle or maven version
    3.8.3
  • spotless version
    2.17.1
  • operating system and version
    Ubuntu/20.04.3
  • copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the problem if possible
                <plugin>
                    <groupId>com.diffplug.spotless</groupId>
                    <artifactId>spotless-maven-plugin</artifactId>
                    <version>${spotless.version}</version>
                    <executions>
                        <execution>
                            <id>spotless-validation</id>
                            <phase>test</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <java>
                            <eclipse>
                                <file>file://${maven.multiModuleProjectDirectory}/build/eclipse-jdt-formatter.prefs</file>
                            </eclipse>
                        </java>
                        <cpp>
                            <includes>
                                <include>src/**/native/**/*.cpp</include>
                            </includes>
                            <eclipseCdt></eclipseCdt>
                        </cpp>
                    </configuration>
                </plugin>
  • copy-paste the full content of any console errors emitted by gradlew spotless[Apply/Check] --stacktrace
[INFO] 
[INFO] --- spotless-maven-plugin:2.17.1:check (spotless-validation) @ ... ---
[INFO] 
...
Error:  Could not write workspace metadata '/tmp/com_diffplug_spotless_extra_eclipse12122245188339054218/.metadata/.plugins/org.eclipse.core.resources/0.snap'.
java.io.FileNotFoundException: /tmp/com_diffplug_spotless_extra_eclipse12122245188339054218/.metadata/.plugins/org.eclipse.core.resources/0.snap (No such file or directory)
    at java.io.FileOutputStream.open0 (Native Method)
    at java.io.FileOutputStream.open (FileOutputStream.java:298)
    at java.io.FileOutputStream.<init> (FileOutputStream.java:237)
    at java.io.FileOutputStream.<init> (FileOutputStream.java:158)
    at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init> (SafeChunkyOutputStream.java:48)
    at org.eclipse.core.internal.localstore.SafeChunkyOutputStream.<init> (SafeChunkyOutputStream.java:44)
    at org.eclipse.core.internal.resources.SaveManager.snapTree (SaveManager.java:1474)
    at org.eclipse.core.internal.resources.SaveManager.save (SaveManager.java:1198)
    at org.eclipse.core.internal.resources.SaveManager.save (SaveManager.java:1143)
    at org.eclipse.core.internal.resources.DelayedSnapshotJob.run (DelayedSnapshotJob.java:55)
    at org.eclipse.core.internal.jobs.Worker.run (Worker.java:63)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions