News for hackers. Stuff that matters.
Re:Rust-analyzer – an IDE backend for Rust by stevehiehn on Monday April 27, 2020 @10:33AM (#22996165)
I started ramping up on a Rust codebase last week. Intellij is my default IDE so I just continued with it. The plugin seems reasonable enough. It does all the basics like checking types etc.
Re:Rust-analyzer – an IDE backend for Rust by runevault on Monday April 27, 2020 @10:44AM (#22996280)
Do you have access to CLion or just Intellij? I ask because CLion has real debugging support that, to my knowledge, Intellij does not have (CLion has built in ties to GDB that the other lacks).
Re:Rust-analyzer – an IDE backend for Rust by tsing on Monday April 27, 2020 @06:13PM (#23000731)
The latest Intellij-rust added debug supporting in IntelliJ IDEA. https://intellij-rust.github.io/2020/04/27/changelog-121.htm...

Edit: fix typo.

Re:Rust-analyzer – an IDE backend for Rust by stevehiehn on Monday April 27, 2020 @11:01AM (#22996465)
I pay for the 'Ultimate' edition which means the different language support is available via plugins. At my day job I toggle between GO & Typescript and some JAVA side projects so setup works well enough for me.

I can't speak to CLion. I use the Go debugger daily and I don't have 'GoLand' perse, just the plugin.

Re:Rust-analyzer – an IDE backend for Rust by isbjorn16 on Monday April 27, 2020 @11:12AM (#22996586)
I can speak for you; you won't get a debugger with the Rust plugin with IntelliJ. I'm going from memory here, and it's been a few months, but I believe the person working at JetBrains on the Rust plugin said it wasn't going to come out for IntelliJ.

My company is good about buying us tools, so they got me CLion (or, rather, the entire Jetbrains Ultimate Pack or whatever it's called). CLion has made Rust development almost infinitely better than it was just using the Rust plugin on IntelliJ (and this is coming from someone who just uses the Python plugin in IntelliJ even though like 50-75% of his code is Python). I'm a JVM dev masquerading as a Python dev and using Rust for some stuff that Python just isn't up to snuff on (and using the super sweet pyo3 package to make native python modules for it, too). The point is, I get the <3 for IntelliJ; I pay for the super ultimate edition for home use just because I like it _that_ much. But CLion and debugging has made my life so much better than doing it with the Rust plugin in IntelliJ or using VS Code.

Some people are content with log statements, but I'd rather stab myself than debug via logs. It's just not my jam!

Edit: I just thought to note that the CLion + Windows + Debugger game is weaksauce. There may be a way to get it to work in windows, but I don't know a single thing about the Visual Studio build tools or how to get everything to play nice or whatever that might be necessary, so I tried to get it to work through WSL. It worked sometimes, and not others, and I got so frustrated I picked up a Mac for my work refresh rather than another surfacebook, mostly because I was tired of having to jump through hoops to sometimes have a mostly working eventually kinda debugger.

Re:Rust-analyzer – an IDE backend for Rust by tsing on Monday April 27, 2020 @06:15PM (#23000741)
The rust plugin updated today with debug support for IntelliJ IDEA Ultimate
Re:Rust-analyzer – an IDE backend for Rust by isbjorn16 on Tuesday April 28, 2020 @12:22PM (#23008561)
That is fantastic news! I was curious when they added it and it looks like: https://github.com/intellij-rust/intellij-rust.github.io/com...

So yeah - nevermind about CLion! I do think it works better than IntelliJ, but it's a subtle, not-easily-quantifiable thing, and it's probably not worth buying it if you're just dabbling and also have IntelliJ Ultimate.

Re:Rust-analyzer – an IDE backend for Rust by dagmx on Monday April 27, 2020 @12:25PM (#22997302)
While Ultimate does give you access to all the language plugins, it does not give you access to all the IDE features that the other Jetbrains IDEs have.

This varies from language to language and IDE to IDE, but Idea does not support C++/Rust debugging, even with the language plugins. Only CLion supports them.

I’ve found this true across multiple languages, hence why I bought the full toolbox subscription and use the language specific IDEs where possible. It’s cut out a lot of rough edges from when I tried to just use Ultimate.

Re:Rust-analyzer – an IDE backend for Rust by alkonaut on Monday April 27, 2020 @05:01PM (#22999984)
I don't think there is any good IDE that offers debugging and good IDE experience on windows (msvc) at the moment. CLion has had debugging but not for msvc last time I checked.

Perhaps VSCode can be combined with Rust-analyzer to give language support on par with IntelliJ-rust, but also a msvc debugger? That would basically make windows development "feature complete" (and free!).

Re:Rust-analyzer – an IDE backend for Rust by steveklabnik on Monday April 27, 2020 @05:42PM (#23000448)
rust-analyzer works well on Windows; I don't do a ton of debugging though. (I have been windows only for the past few years, but am not really an IDE person)