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

Solutions on the web32

  • via GitHub by icanrealizeum
    , 10 months 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`?
  • via GitHub by zjhmale
    , 1 year ago
    No metadata subcommand, please update cargo
  • Cannot start process, the working directory /home/florin/golang/src/github.com/dlsniper/backend/out/production/backend does not exist
  • Stack trace

    • 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 com.intellij.testFramework.UsefulTestCase.runTest(UsefulTestCase.java:341) 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 com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:310) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.