java.lang.IllegalArgumentException: Invalid path to cargo /cargo

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 LooMaclin
, 1 year ago
java.lang.IllegalArgumentException: Invalid path to cargo /cargo
at org.rust.cargo.commands.Cargo.(Cargo.kt:32)
at org.rust.cargo.toolchain.RustToolchain.nonProjectCargo(RustToolchain.kt:69)
at org.rust.cargo.toolchain.RustToolchain.queryCargoVersion(RustToolchain.kt:35)
at org.rust.cargo.project.settings.ui.RustProjectSettingsPanel$scheduleVersionUpdate$1.run(RustProjectSettingsPanel.kt:107)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:378)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:227)
at com.intellij.util.concurrency.BoundedTaskExecutor.runFirstTaskThenPollAndRunRest(BoundedTaskExecutor.java:178)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$000(BoundedTaskExecutor.java:40)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

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.