New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDEA Intellij & Rust plugin do not work after latest Intellij & Rust plugin updates #5237
Comments
Updated rust plugin to 0.2.120.2202-201, same issue.
|
Humm, retried some minutes later, without changing anything: it now works... Opened another project: building does not work - at first, same stack. But if I try to start an existing Run configuration, the program starts. Then building works. |
Similar behavior here. Not able to build until I add a run configuration. At that point the run config and build works. Happens on multiple projects even after deleting my .idea directory and reopening. |
Can confirm. Had to Run a configuration first for the "Build Project" menu item to become responsive. |
Try to enable the experimental build tool window by setting |
I am still not getting any linting at all, no syntax highlighting or anything. The plugin is simply not working hardly at all. Any chance that someone is working on this? At first I thought I had done something wrong but I did not change my configuration. I simply made the mistake of upgrading my Intellij IDE version to the 2020.1 and this broke the Rust plugin completely. Any updates would be greatly appreciated as I'm pretty much just dead in the water until this issue is resolved. Thank you, I appreciate it very much. |
I noticed after the upgrade that
Then, the revert button destroyed the new association but did not restore the Rust -> *.rs association, A have to go in Preferences => File Types and associate *.rs to Rust manually... |
I do not have this variable in my "Registry", so I'm not able to change it. |
I have enabled And now it's working as expected. Building actually builds the project, even if no "Run tool window" is displayed Thank you! |
Root of the problem: after update from 2019.3 to 2020.1, IDEA remaps To avoid this problem, we added a hack to the latest (v120) release (see #5229) that associates If it doesn't help (it's weird but anyway), you can try to disable android plugin and reinstall Rust plugin.
I don't recommend to do it manually because it may have negative effects in combination with hack introduced in #5229 |
I do not have the android plugin, so my *.rs association was still there. Will try enabling build tool window on a new project and see what that does. |
I am on MacOS 10.15.4. I don't think this should make a difference but I'm just throwing that out there. Temporarily downgrading to the most recent version before 2020.1 seems to be the best option until the plugin is fixed. It's extremely simple and the issue(s) are all immediately resolved. I understand this isn't a "fix" but it is a temporary solution. It took me a total of about 10 minutes or less to downgrade and then perform the "Update All" action for my plugins (the plugins will all downgrade/rollback to their previous versions). |
Enabling Issue #1: Intellisense not working Issue #2: Build not working |
This does not fix IntelliSense for me. I do not even have Android enabled and *.rs files are being mapped to Rust files. Not sure if that provides and insight or helps at all, but I figured I should include that for the sake of completeness. The Clippy syntax analyzer does not work with the latest IntelliJ IDEA build (nor does Cargo check). No errors show until I go to actually compile my project. I'm not sure what this means, exactly. To anyone as frustrated as I am: the only solution that sort of works is downgrading back to the latest 2019.x version and reverting the plugin, etc. to the earlier version. This still does not entirely solve the issues, but it mostly does. Any time-line or updates about if/when this will be fixed? IntelliJ's Rust plugin is near-useless at this moment in time. Is there any idea about what caused everything to break so badly (I'm also referring to the build issues people are having, etc.)? My apologies for harping on you guys about this issue; I love Jetbrains products and use them exclusively for my developing and I do not plan on changing to any other products. I would just really love to have Rust working as I cannot benefit from the IDE while developing. I would have pretty much the same experience if coding in a vanilla Thank you very much for all of your hard work and your dedication. It really means a lot. I hope I did not come across as too abrasive. The issues are frustrating but I want you to know how much I do appreciate everything your team does -- it's incredible. Thanks again! |
My workaround to revive building project was to manually invoke |
Environment
Problem description
After upgrading Intellij IDEA to April 8 version and rust plugin to the 0.2.119.2201-201, Rust projects do not built anymore, Rust sources are not analyzed.
Build Project
does nothingSteps to reproduce
Start IDEA Intellij, with Rust plugin. Try to create a project from existing sources. Then it won't work
or
Open an existing project: it won't work
In intellij logs I can find an error each time I try to build a project:
The text was updated successfully, but these errors were encountered: