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.

Running spotless throws git related exception due to /usr/etc not existing

See original GitHub issue

When I run spotless I sometimes get exceptions like the one below.

Parallel execution is an incubating feature.

> Task :SubProjA:spotlessJava
Exception caught during execution of command '[git, config, --system, --edit]' in '/usr/bin', return code '128', error message 'fatal: Invalid path '/usr/etc': No such file or directory
'

It does not fail so it’s probably caught and logged somewhere but I’m unsure if it affects if the task did it’s work. Anyhow it’s annoying now that gradle outputs very little a a default. Also I don’t understand why spotless wan’t to check my git config…line endings?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
staffanfcommented, Nov 23, 2017

I just got this on gradle stderr(out?) in one run with 3.6.0.

Exception in thread "Thread-482" java.lang.IllegalThreadStateException: process hasn't exited
        at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423)
        at org.eclipse.jgit.util.FS$GobblerThread.setError(FS.java:588)
        at org.eclipse.jgit.util.FS$GobblerThread.run(FS.java:576)

So this indeed indicated issues jgit handling of output from the git config --system --edit command.

0reactions
nedtwiggcommented, May 6, 2020

We’ve had lots of jgit fixes since this. Happy to reopen if it is reproducible on spotless latest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

diffplug/spotless - Gitter
Run with --scan to get full insights. Exception is: org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ' ...
Read more >
Bug List - Bugs - Eclipse
ID▽ Product Comp Assignee Status Resolution Changed 580877 JGit JGit jgit.core‑inbox NEW ‑‑‑ 2022‑10‑08 580856 JGit JGit jgit.core‑inbox NEW ‑‑‑ 2022‑10‑03 580855 JGit JGit jgit.core‑inbox CLOS...
Read more >
Spotless on Android - Medium
Setting up spotless is quite easy, let's take a look at what we did at Collect by WeTransfer to have a setup that...
Read more >
JGit - Tutorial - Vogella.com
It powers many Git related Java projects like the Git support in Eclipse or the Gerrit reviewer server. JGit is available as Java...
Read more >
Run spotless:check without pulling maven dependencies in ...
I do believe you have misconfigured something in project pom. First of all, spotless-maven-plugin does not expect any dependency resolution ...
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