You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm following your excellent tutorial series. Thank you for writing these!
Towards the end of lesson 6, there is a suggestion about how to get autocomplete to work, which involves copying the auto-generated bindings.rs from the output directory back into the project. That didn't actually work for me (maybe I wasn't copying it to the right place, not sure - I'm completely new to Rust).
But regardless, it seems there is now a better way, at least for IntelliJ. I thought it might be worth updating the lesson with these instructions, since AutoComplete is so immensely helpful for someone who is learning Rust and OpenGL (the target audience of this blog series).
There is an experimental feature of the intellij-rust plugin which allows for auto-completion to work when using:
Hey, I'm following your excellent tutorial series. Thank you for writing these!
Towards the end of lesson 6, there is a suggestion about how to get autocomplete to work, which involves copying the auto-generated
bindings.rs
from the output directory back into the project. That didn't actually work for me (maybe I wasn't copying it to the right place, not sure - I'm completely new to Rust).But regardless, it seems there is now a better way, at least for IntelliJ. I thought it might be worth updating the lesson with these instructions, since AutoComplete is so immensely helpful for someone who is learning Rust and OpenGL (the target audience of this blog series).
There is an experimental feature of the intellij-rust plugin which allows for auto-completion to work when using:
To enable it, open the Maintenance Menu using
Ctrl+Shift+Alt+/
, select "Experimental Features", then enable the following feature:org.rust.cargo.fetch.out.dir
Then restart the IDE.
Worked beautifully for me. There is some discussion here as to why the feature is designated as Experimental and disabled by default:
intellij-rust/intellij-rust#4573
And the original issue from intellij-rust is here:
intellij-rust/intellij-rust#1908
The text was updated successfully, but these errors were encountered: