Running spotless throws git related exception due to /usr/etc not existing
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
I just got this on gradle stderr(out?) in one run with 3.6.0.
So this indeed indicated issues jgit handling of output from the
git config --system --edit
command.We’ve had lots of jgit fixes since this. Happy to reopen if it is reproducible on spotless latest.