14 ms·
As others have mentioned, we have lots of tooling that isn't specific to any IDE. For more information about IDE support in Rust, see this page: https://www.rus
by kibwen 11y ago
As others have mentioned, we have lots of tooling that isn't specific to any IDE. For more information about IDE support in Rust, see this page: https://www.rust-lang.org/ides.html https://www.rust-lang.org/ides.html
TL;DR: There exist Rust plugins for Eclipse, IntelliJ, Visual Studio, Atom, Emacs, Sublime Text, Vim, and VS Code.
We're also working on ways to improve the compiler to better support the IDE use case: https://github.com/rust-lang/rfcs/pull/1317 https://github.com/rust-lang/rfcs/pull/1317
- SneakerXZ 11y agoI have followed https://areweideyet.com/ https://areweideyet.com/ and picked Atom and it is far from what I would like. I will try to give another chance to Rust in half year and see if it improved. But I would suggest to look at Swift SourceKit https://github.com/apple/swift/tree/master/tools/SourceKit https://github.com/apple/swift/tree/master/tools/SourceKit or OmniSharp http://www.omnisharp.net/ http://www.omnisharp.net/ SourceKit provides really nice Swift support in Xcode. If you can deliver same thing built on top of VSCode, Intellij IDEA with integrated debugger, I am sold.
- jhasse 11y agoWhat was missing for you in Atom?
- SneakerXZ 11y agoI would like to see: - Be able to see inferred type - Be able to see documentation for types and methods - Better auto completion was sometimes suggesting non senses and after selecting it placed a cursor on wrong place - Integrated debugger - Go to definition (including Rust std) - Syntax checking - Integrated formatter
- jhasse 11y agoThe last three points on your list work in Atom :) > - Be able to see inferred type https://github.com/phildawes/racer/issues/304 https://github.com/phildawes/racer/issues/304 > - Be able to see documentation for types and methods https://github.com/phildawes/racer/issues/415 https://github.com/phildawes/racer/issues/415 > - Better auto completion was sometimes suggesting non senses and after selecting it placed a cursor on wrong place Seems like a bug, never experienced this myself though. > - Integrated debugger I'm currently using nemiver and atom-gdb to set breakpoints from within Atom and launch nemiver. But you're right: A great integrated debugger would be awesome :) > - Go to definition (including Rust std) This works with atom-racer: Ctrl+Shift+P and type "racer find definition" > - Syntax checking https://atom.io/packages/linter-rust https://atom.io/packages/linter-rust > - Integrated formatter https://github.com/rust-lang-nursery/rustfmt/blob/master/atom.md https://github.com/rust-lang-nursery/rustfmt/blob/master/ato...
- SneakerXZ 11y agoThanks for the reply! > This works with atom-racer: Ctrl+Shift+P and type "racer find definition" Nice, unfortunately it works only for my methods and not for std. > - Syntax checking Oh, you right, I got wrong path to Cargo so it didn't work out of box but still it is not like you have it in IDE and you don't see errors as you type but you need to save. > - Integrated formatter Cool, thanks!
- jhasse 11y ago> Nice, unfortunately it works only for my methods and not for std. That's strange. It works for me for std, too. Have you set RUST_SRC_PATH?