Open agluszak opened 1 year ago
I have this issue as well.
Deleted a folder from my project and now I get this message every time. It's extremely annoying.
Hi!
This behavior is related to the fact that after removing the Rust module from the project, the Cargo still has project configuration. To avoid running Cargo when opening the project, it's necessary to remove Cargo configuration before removing directory with Rust module. In the opposite case, the Cargo window will not be available, but 'Cargo: failed' message will still appear upon project startup.
The easiest workaround would be closing the IDE, removing
This is a significant pain for users who are used to simple folder based management of multiple projects. Instead of making a hidden root .idea directory, consider putting folder specific configuration within each folder. Then if we delete a folder the configuration is deleted along with it.
Or at the very least, the warning message should include a simple button to fix the problem for us.
I have an IJ project which used to be written in Rust, but was then migrated to another language. Every time I open this project the Rust plugin tries to run a cargo sync, but fails with the following message:
I'd very much like to detach the project from the Cargo tool window, but since the project is no longer a Cargo project, there's no Cargo tool window :D
Environment
Toolbox Enterprise version: 1.0.4917.5492-ij231, https://tbe.labs.jb.gg GC: G1 Young Generation, G1 Old Generation Memory: 4040M Cores: 16 Registry: ide.smart.update=true debugger.new.tool.window.layout=true ide.experimental.ui=true jetbrains.tbe.show.error.popup=true scala.erase.compiler.process.jdk.once=false Non-Bundled Plugins: software.amazon.smithy.intellij (2.0.8) org.rust.lang (0.4.194.5382-231) com.github.copilot (1.2.6.2594) Key Promoter X (2023.1.0) com.intellij.grazie.pro (0.3.222) jetbrains.team.auth (231.8770.72) org.jetbrains.toolbox-enterprise-client (1.0.4917.5492-ij231) com.intellij.sisyphus (231.8770.70) com.jetbrains.intellij.code.search.polaris (0.231.900.8) deno (231.8109.204) com.jetbrains.idea.safepush (231.8770.72) com.intellij.git.instant (1.3.5) com.jetbrains.intellij.api.watcher (231.8770.70) org.intellij.scala (2023.1.18) org.jetbrains.research.refactorinsight (2023.1-4.0) mobi.hsz.idea.gitignore (4.5.0) Jetbrains TeamCity Plugin (2022.12.123443) Kotlin: 231-1.8.21-IJ8770.65 Current Desktop: ubuntu:GNOME ```
Steps to reproduce
/foo/bar
./foo/bar/rust
and import it./foo/bar/rust
and close IntelliJ/foo/bar