55 ms·
I love watching Rust progress. But the #1 thing I'm watching is the RLS and vscode plugin. Maybe I'm weird but I work with so many languages that having to mana
by Waterluvian 8y ago
I love watching Rust progress. But the #1 thing I'm watching is the RLS and vscode plugin. Maybe I'm weird but I work with so many languages that having to manage multiple editors is a non-start. So any time I have a little personal project that could be done in Rust (for learning) I end up using Go or Python instead because the vscode support is still quite buggy.
Naturally others will say you don't need IDE-like support and that's fine. It's just the way I enjoy learning. Autocomplete is an amazing learning tool.
- steveklabnik 8y agoWe're embarking on a major project to re-architect the compiler and write a next-generation RLS. It's on this year's roadmap. See here for more: https://ferrous-systems.com/blog/rust-analyzer-2019/ https://ferrous-systems.com/blog/rust-analyzer-2019/
- eatbitseveryday 8y agoMaybe we can expand acronyms the first time they are used? I am guessing RLS is Rust Language Server? The URL you cite also does not have this spelled out.
- runevault 8y agosince no one else has answered you yet, RLS is Rust Language Server.
- robohamburger 8y ago> It has high latency: because build is costly, it is invoked at most once per x seconds, which means you either have to wait to get the results, or get stale results. I find this is the worst part right now. Latency is everything if it is tied to actual typing in of code. Excited to see this get fixed, or at least improved!
- pzmarzly 8y agoI can recommend https://tabnine.com/ https://tabnine.com/ with https://github.com/rust-analyzer/rust-analyzer https://github.com/rust-analyzer/rust-analyzer . While rust-analyzer doesn't always resolve type (unlike Jetbrains Rust plugin, which always does but sometimes incorrectly), it still makes writing code faster and doesn't have RLS quirks (which come from the fact that RLS has to compile the code before offering suggestions, so code has to be correct at some point, which is not good if you are prototyping)
- batisteo 8y agoToo bad TabNine is a Freemium :-/
- maltsev 8y agoWhen working with Rust code you get all paid features for free: https://tabnine.com/faq#language https://tabnine.com/faq#language
- Lorkki 8y agoIt's a lot smoother than stable RLS, but type resolution is practically nonexistent for futures-based code due to trait support still lacking. Definitely excited to check back once that's resolved though.
- dagmx 8y agoIf you're open to a different ide, intellij idea or CLion with the rust plugin is a really great combo. Idea + rust is free minus debugging.
- AlexanderDhoore 8y agoBefore Vim I had to look for an editor every time I learned a new language. Now I just use Vim. For everything.
- panpanna 8y agoWell, there are two ways to interpret that :)
- fnordsensei 8y agoTry :q! On a more serious note: I have a long-term goal to learn either Vim or Emacs for various reasons, the above mentioned being one of them. It's hard to feel so spectacularly unproductive as I do when I try them out though, so it's easy to give up. What's there best way to go about learning Vim or Emacs?
- bgilroy26 8y agoI learned by playing vim adventures, but that might be too kiddie for you. Check out this old HN post[1] [1] https://news.ycombinator.com/item?id=213054 https://news.ycombinator.com/item?id=213054
- jamil7 8y agoNot sure about emacs but vim basically requires a period of fighting through how horribly unproductive you will initially be, give it a week or two and you'll be ok.
- oselhn 8y agoI do not understand what people like about vscode. If I ignore insane resource consumption this is at most average IDE (the only real benefit over sublime "text editor" is integrated debugger). This is most preferred editor at work so I am forced to work with it and there are some of the most serious issues I have: 1. Only one side panel, so I can't see outline, test results and project files at the same time as I am used to see on widescreen monitors in other IDEs. 2. Language servers are still not comparable to solutions offered by java IDEs and in case of C++ they are worse than anything else I used. 3. Python extension constantly forgets and founds unit test. There is little support for unit test in other languages. 4. Official C++ extension despite being completely useless consumes several gigabytes of space for "indexed" files (I wonder if it is so bad to not hurt sales of Visual Studio). I also tried to use clangd which is better but there is still a lot of work to be done before it is useful. I like sublime rust support for really small projects and eclipse support for larger projects (which is not ideal) but I have not coded anything serious in rust yet, so I do not know if there is some good IDE.
- Waterluvian 8y agoIt works well enough for the 6 languages I use weekly. I'm honestly too busy doing all the other engineering tasks that don't happen inside Vscode to really care that it's not perfect. I don't live in vscode that much each week to really care.
- Matthias247 8y agoFor C++ try the cquery extension. It's pretty good. It mostly helped me to provide IDE support (full code completion and navigation) for a project that wasn't supported by Visual Studio or any other IDE (embedded project based on gcc and a hacky makefile).
- nullwasamistake 8y agoVscode has great Typescript and JS support. Arguably the best of any editor. I still use jetbrains for other languages, it's really hit or miss.
- lenkite 8y agoI bought and use JetBrains CLion (C++ IDE) precisely for these reasons. I only use VSCode for HTML/JS/CSS and as a markdown editor. For plain editing I just use VIM. For medium-scale projects, VSCode tends to take enormous amounts of resources.