home.social

#rustanalyzer — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rustanalyzer, aggregated by home.social.

  1. Forcing #Zed to use #beta of the #rust-analyzer for the project is neither trivial nor obvious. It by default calls stable rust-analyzer ignoring rustup's override for the project; on top of that installing rust-analyzer beta using #rustup is non-obvious and doesn't happen automatically with the override to the beta chanel to my disappointment.

    Fact #Zed doesn't handle environment variables in settings files doesn't help.

    #rust #rustlang #rustanalyzer

  2. Forcing #Zed to use #beta of the #rust-analyzer for the project is neither trivial nor obvious. It by default calls stable rust-analyzer ignoring rustup's override for the project; on top of that installing rust-analyzer beta using #rustup is non-obvious and doesn't happen automatically with the override to the beta chanel to my disappointment.

    Fact #Zed doesn't handle environment variables in settings files doesn't help.

    #rust #rustlang #rustanalyzer

  3. Forcing #Zed to use #beta of the #rust-analyzer for the project is neither trivial nor obvious. It by default calls stable rust-analyzer ignoring rustup's override for the project; on top of that installing rust-analyzer beta using #rustup is non-obvious and doesn't happen automatically with the override to the beta chanel to my disappointment.

    Fact #Zed doesn't handle environment variables in settings files doesn't help.

    #rust #rustlang #rustanalyzer

  4. Rust-analyzer has began using CPU in the background. It doesn't do it immediately, but if I leave VSCode open, then I notice that in hour or so, it will start to use 5-10% of CPU just by doing nothing. I have to restart the VSCode to get it to behave.

    #Rust #RustAnalyzer

  5. Rust-analyzer has began using CPU in the background. It doesn't do it immediately, but if I leave VSCode open, then I notice that in hour or so, it will start to use 5-10% of CPU just by doing nothing. I have to restart the VSCode to get it to behave.

    #Rust #RustAnalyzer

  6. Rust-analyzer has began using CPU in the background. It doesn't do it immediately, but if I leave VSCode open, then I notice that in hour or so, it will start to use 5-10% of CPU just by doing nothing. I have to restart the VSCode to get it to behave.

    #Rust #RustAnalyzer

  7. Rust-analyzer has began using CPU in the background. It doesn't do it immediately, but if I leave VSCode open, then I notice that in hour or so, it will start to use 5-10% of CPU just by doing nothing. I have to restart the VSCode to get it to behave.

    #Rust #RustAnalyzer

  8. Rust-analyzer has began using CPU in the background. It doesn't do it immediately, but if I leave VSCode open, then I notice that in hour or so, it will start to use 5-10% of CPU just by doing nothing. I have to restart the VSCode to get it to behave.

    #Rust #RustAnalyzer

  9. today i discovered the best and probably most useless feature of #rustanalyzer: “view crate graph”

  10. today i discovered the best and probably most useless feature of #rustanalyzer: “view crate graph”

  11. today i discovered the best and probably most useless feature of #rustanalyzer: “view crate graph”

  12. today i discovered the best and probably most useless feature of #rustanalyzer: “view crate graph”

  13. today i discovered the best and probably most useless feature of #rustanalyzer: “view crate graph”

  14. The unsynn! macro turns out to become a #rustanalyzer stress test 🤔 #rustlang

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

  15. @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.

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  16. @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.

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  17. @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.

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  18. @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.

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  19. @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.

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  20. @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.

    ...

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  21. @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.

    ...

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  22. @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.

    ...

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  23. @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.

    ...

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  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.

    ...

    #neovim #rust #rustaceanvim #rustanalyzer #dap #codelldb #lazy #mason

  25. @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.

    ...

    #neovim #rust #rustaceanvim #dap #rustanalyzer #codelldb #lazy #mason

  26. @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.

    ...

    #neovim #rust #rustaceanvim #dap #rustanalyzer #codelldb #lazy #mason

  27. @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.

    ...

    #neovim #rust #rustaceanvim #dap #rustanalyzer #codelldb #lazy #mason

  28. @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.

    ...

    #neovim #rust #rustaceanvim #dap #rustanalyzer #codelldb #lazy #mason

  29. @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.

    ...

    #neovim #rust #rustaceanvim #dap #rustanalyzer #codelldb #lazy #mason

  30. 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`.

  31. 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`.

  32. 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`.

  33. 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`.

  34. 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`.

  35. Ever wondered why the language server isn't showing all errors, warnings and lints? 😕

    This is especially an issue in 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 🤗