#RustAnalyzer

medium rare birdmigratory@jorts.horse
2025-07-04

I really wish there was a way to filter "find references" in #rustanalyzer to only positive (application) or negative (pattern) uses

2025-06-01

M-. is so ossum, it never occurred to me to try something else!

oylenshpeegul.gitlab.io/blog/p

2025-05-09

The unsynn! macro turns out to become a #rustanalyzer stress test ๐Ÿค” #rustlang

The code is fine, compiles as intended. R-A doesn't agree.

Valid source code using the unsynn! macro with certain statements with a red box around which is rust-analyzer flagging errors.
JavAlpsjavalps
2025-04-24

@counterVariable
5. Notice line no(s). 14, 15, 16. If you use `nvim-navic` or `barbecue` for winbar then don't need to tinker it. Otherwise you can remove it.
6. `codelldb` for rust, is recommended if you use debugger and have a setup.

JavAlpsjavalps
2025-04-24

@counterVariable
3. Do not setup LSP with rust-analyzer beforehand, rustaceanvim will do it for you.
4. Look at line no. 5, since, you probably didn't/haven't setup any `settings.lua` file to manage macro Neovim settings. Replace the line with `enabled = package.loaded["rust-analyzer"] ~= nil`. This way rustaceanvim will only work when rust-analyzer is available. If you don't care about it remove line no. 5 completely.

...

JavAlpsjavalps
2025-04-24

@counterVariable Yea, I have something that works.

NOTE : I've made few assumptions :
1. You use Lazy as package manager.
2. You use Mason.

There are few things that you need to keep in mind :
1. My path for this file in my config is -> `lua/plugins/intellisense/languages/rust.lua`. But you can put this file anywhere within the `plugins` directory.
2. You need rust-analyzer for rustaceanvim to work.

...

My config for rust
JavAlpsjavalps
2025-04-22

@stevenaleach Hey ๐Ÿ‘‹. Do you have any guide on how to start with ?

2025-04-17

But it already makes my fan spin blazingly fast!!

github.com/rust-lang/rust-anal

#rust #rustanalyzer

chfkch :nixos: :rust:chfkch@ruhr.social
2024-08-01

Finally i got #Embassy working on my #ESP32c6 in #NixOS. By now it should be over 95% reproducible. The last parts have to wait until i finished my day job.
The litte bugger now runs #EmbeddedRust #RustLang.

I will share the flake, which is mostly the oxilica/rust-overlay flake with the corrected toolchain and stuff like #RustAnalyzer and `cargo espflash`.

Mo Bitar :ferris:mo8it@fosstodon.org
2024-07-08

Ever wondered why the language server #RustAnalyzer isn't showing all errors, warnings and lints? ๐Ÿ˜•

This is especially an issue in #Rustlings where Rust-Analyzer only shows the diagnostics in some of the exercises.

Turns out, Rust-Analyzer uses `cargo check` under the hood which itself stops checking early unless you specify the `--keep-going` flag ๐Ÿƒ๐Ÿผ

This is fixed in Rust-Analyzer now ๐Ÿ˜ƒ

github.com/rust-lang/rust-anal

Thanks to @veykril ๐Ÿค—

#RustLang

CYBER :blobcatchewwire: katzeschrottkatze@ck.katzen.cafe
2024-05-10
2024-02-27

(re)installing rust-analyzer must be easy now, at least, for me. #emacs #rustanalyzer

(defun install-rust-analyzer ()
  (interactive)
  (shell-command "mkdir -p ~/.local/bin && \
    wget -O - https://github.com/rust-lang/rust-analyzer/releases/latest/download/rust-analyzer-`arch`-unknown-linux-gnu.gz | \
	zcat > ~/.local/bin/rust-analyzer && \
    chmod 755 ~/.local/bin/rust-analyzer"))
2024-02-19

After some time DuckDuckgoing about rust-analyzer and YouCompleteMe; At the end I applied a radical solution, kill the thingy when exit vim

autocmd QuitPre *.rs :!ps -ef | grep rust-analyzer | grep -v grep | awk '{ print $2 }' | xargs kill -s 9

#vim #rustanalyzer #youCompleteMe

2024-01-05

@MoskitoHero Iโ€™m wondering if it will eventually be possible to have a similar experience. Two hints about why: (1) #gitlab is working on something similar to copilot, but exposed as an LSP server gitlab.com/gitlab-org/editor-e; (2) #helix supports multiple LSP servers since last version (so you donโ€™t have to choose between #rustanalyzer and something else) helix-editor.com/news/release-

๐ŸŒธ lily ๐Ÿณ๏ธโ€โšง๏ธ :flag_pansexual: :flag_ace: ฮธฮ” โ‹ & โˆžtauon@possum.city
2023-12-21

how the fuck do you make #RustAnalyzer use the binyary at rustup which rust-analyzer in #Rust in #VSCode? please boost i'm pulling my hair out
EDIT: solved! :3
you have to set rust-analyzer.server.path in settings.json

Bobulous :rust: :codeberg:bobulous@fosstodon.org
2023-11-21

@imperio I've opened a feature request on the #RustAnalyzer repo:

github.com/rust-lang/rust-anal

Out of curiosity, what setup do you use for Rust development?

#Rust #RustLang

Mark Nichols (LGBTQIA+ Ally)zanshin@hachyderm.io
2023-11-17

I'm running an inadvertent comparison of Zulip, Slack, and Discord tonight. I asked the same question (copy & pasted) about rust-analyzer, Neovim, and #[cfg(feature = "ssrโ€)] attributes.

I'm curious to see which gets a response first, and which response is the most helpful.

#rustAnalyzer #Neovim #Rust

Orhun Parmaksฤฑz ๐Ÿ‘พorhun@fosstodon.org
2023-08-02

rust-analyzer is getting "remove unused imports" feature soon! ๐Ÿฆ€

๐Ÿš€ github.com/rust-lang/rust-anal

#rustlang #rustanalyzer #lsp

2023-06-17

Out of #RAM , #swap full. What could be the reason? Did I go overboard with Firefox tabs? Too many QtCreators? A multitude of open consoles and documents?

Nope. It's stray #rustanalyzer processes eating 15GiB. Or maybe it's #kwrite's fault?

#rust #leak #rls #languageserver

Jessie Chatham Spencerjmintb@hachyderm.io
2023-04-19

Had some fun on stream exploring #rustanalyzer through a GH issue: github.com/rust-lang/rust-anal

The developer guidelines/docs were nice and pragmatic, definitely worth a read: github.com/rust-lang/rust-anal

The goal of the issue is to implement completions for extern crate names. I started out getting the completion to work with hardcoded suggestions, which works now. Next time we'll look at sourcing the correct suggestions.

#rust

youtu.be/hpMxG5h1Me8

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst