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`?

GitHub | icanrealizeum | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 577#247829950

    GitHub | 7 months ago | icanrealizeum
    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`?

    Root Cause Analysis

    1. 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()
    2. org.rust.cargo
      CargoFmtTest.testCargoFmt
      1. org.rust.cargo.toolchain.Cargo.execute(Cargo.kt:89)
      2. org.rust.cargo.toolchain.Cargo.reformatFile(Cargo.kt:64)
      3. org.rust.cargo.toolchain.Cargo.reformatFile$default(Cargo.kt:63)
      4. org.rust.cargo.commands.CargoFmtTest$testCargoFmt$1.invoke(CargoFmtTest.kt:16)
      5. org.rust.cargo.commands.CargoFmtTest$testCargoFmt$1.invoke(CargoFmtTest.kt:9)
      6. org.rust.cargo.RustWithToolchainTestBase.withProject(RustWithToolchainTestBase.kt:27)
      7. org.rust.cargo.commands.CargoFmtTest.testCargoFmt(CargoFmtTest.kt:12)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    4. JUnit
      TestCase.runTest
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      1 frame
    5. IDEA
      UsefulTestCase.runTest
      1. com.intellij.testFramework.UsefulTestCase.access$001(UsefulTestCase.java:80)
      2. com.intellij.testFramework.UsefulTestCase.lambda$runTest$0(UsefulTestCase.java:326)
      3. com.intellij.testFramework.PlatformTestCase.lambda$invokeTestRunnable$3(PlatformTestCase.java:737)
      4. com.intellij.testFramework.PlatformTestCase.invokeTestRunnable(PlatformTestCase.java:749)
      5. com.intellij.testFramework.UsefulTestCase.runTest(UsefulTestCase.java:341)
      5 frames
    6. org.rust.cargo
      RustWithToolchainTestBase.runTest
      1. org.rust.cargo.RustWithToolchainTestBase.runTest(RustWithToolchainTestBase.kt:35)
      1 frame
    7. IDEA
      LaterInvocator$FlushQueue.run
      1. com.intellij.testFramework.PlatformTestCase.lambda$runBareImpl$2(PlatformTestCase.java:666)
      2. com.intellij.testFramework.EdtTestUtil$Companion$runInEdtAndWait$1.invoke(EdtTestUtil.kt:29)
      3. com.intellij.testFramework.EdtTestUtil$Companion$runInEdtAndWait$1.invoke(EdtTestUtil.kt:27)
      4. com.intellij.testFramework.EdtTestUtilKt$sam$Runnable$ca4818df.run(EdtTestUtil.kt)
      5. com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:291)
      6. com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:156)
      7. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:326)
      8. com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310)
      8 frames
    8. Java RT
      EventQueue$3.run
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      4 frames