com.intellij.execution.ExecutionException: Cargo execution failed (exit code 101). 08:54:10.269 [DEBUG] [TestEventLogger] /home/z/bin/cargo fmt -- --write-mode=overwrite --skip-children ./src/main.rs 08:54:10.269 [DEBUG] [TestEventLogger] stdout : 08:54:10.269 [DEBUG] [TestEventLogger] stderr : !! executing '/home/z/build/1nonpkgs/cargo/cargo//target/x86_64-unknown-linux-gnu/release//cargo' with args: 'fmt -- --write-mode=overwrite --skip-children ./src/main.rs' 08:54:10.269 [DEBUG] [TestEventLogger] error: no such subcommand: `fmt` Did you mean `doc`?

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by icanrealizeum
, 1 year ago
] stdout : 08:54:10.269 [DEBUG] [TestEventLogger] stderr : !! executing '/home/z/build/1nonpkgs/cargo/cargo//target/x86_64-unknown-linux-gnu/release//cargo' with args: 'fmt -- --write-mode=overwrite --skip-children ./src/main.rs' 08:54:10.269 [DEBUG] [TestEventLogger] error: no such subcommand: `fmt` Did you mean `doc`?
com.intellij.execution.ExecutionException: Cargo execution failed (exit code 101). 08:54:10.269 [DEBUG] [TestEventLogger] /home/z/bin/cargo fmt -- --write-mode=overwrite --skip-children ./src/main.rs 08:54:10.269 [DEBUG] [TestEventLogger] stdout : 08:54:10.269 [DEBUG] [TestEventLogger] stderr : !! executing '/home/z/build/1nonpkgs/cargo/cargo//target/x86_64-unknown-linux-gnu/release//cargo' with args: 'fmt -- --write-mode=overwrite --skip-children ./src/main.rs' 08:54:10.269 [DEBUG] [TestEventLogger] error: no such subcommand: `fmt` Did you mean `doc`?
at org.rust.cargo.toolchain.Cargo.execute(Cargo.kt:89)
at org.rust.cargo.toolchain.Cargo.reformatFile(Cargo.kt:64)
at org.rust.cargo.toolchain.Cargo.reformatFile$default(Cargo.kt:63)
at org.rust.cargo.commands.CargoFmtTest$testCargoFmt$1.invoke(CargoFmtTest.kt:16)
at org.rust.cargo.commands.CargoFmtTest$testCargoFmt$1.invoke(CargoFmtTest.kt:9)
at org.rust.cargo.RustWithToolchainTestBase.withProject(RustWithToolchainTestBase.kt:27)
at org.rust.cargo.commands.CargoFmtTest.testCargoFmt(CargoFmtTest.kt:12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:154)
at com.intellij.testFramework.UsefulTestCase.access$001(UsefulTestCase.java:80)
at com.intellij.testFramework.UsefulTestCase.lambda$runTest$0(UsefulTestCase.java:326)
at com.intellij.testFramework.PlatformTestCase.lambda$invokeTestRunnable$3(PlatformTestCase.java:737)
at com.intellij.testFramework.PlatformTestCase.invokeTestRunnable(PlatformTestCase.java:749)
at org.rust.cargo.RustWithToolchainTestBase.runTest(RustWithToolchainTestBase.kt:35)
at com.intellij.testFramework.PlatformTestCase.lambda$runBareImpl$2(PlatformTestCase.java:666)
at com.intellij.testFramework.EdtTestUtil$Companion$runInEdtAndWait$1.invoke(EdtTestUtil.kt:29)
at com.intellij.testFramework.EdtTestUtil$Companion$runInEdtAndWait$1.invoke(EdtTestUtil.kt:27)
at com.intellij.testFramework.EdtTestUtilKt$sam$Runnable$ca4818df.run(EdtTestUtil.kt)
at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:156)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.