lapce-rust icon indicating copy to clipboard operation
lapce-rust copied to clipboard

Unable to connect to rust-analyzer

Open xiaoshihou514 opened this issue 2 years ago • 1 comments

Hey, just been testing out the lapce ecosystem and I seemed to encounter a few issues. I downloaded the rust plugin but it doesn't seem to do anything. e.g no warnings when there are open brackets, no cmp when I type "pri" etc.

I tried

  • let the plugin use its supposedly bundled RA
  • point it to an RA binary I installed with rustup
  • reopen the editor
  • open the editor with admin access

Either way cmp and code lens don't seem to work. In the first case there are no warnings, the second case I got a complaint that RA could not be found, but it is definitely there and it's also in my PATH.

Info

  • OS: windows10
  • path to rustup installed RA binary: C:\Users\my_user_name.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rust-analyzer.exe (from which rust-analyzer)
  • lapce version: 0.2.5 grabbed from gh release
  • rust plugin version: 0.2.4
  • code I am testing with: std hello world program from cargo new

I have a gut feeling it's cause of some windows issue. Let me know if any testing is needed.

xiaoshihou514 avatar Feb 19 '23 02:02 xiaoshihou514

Likely not a windows or packaging issue. Installed lapce 0.2.7 on EndeavourOS via community pacman package, installed plugin via the GUI and have the same behavior: RA prints initialization messages on status bar for a few seconds but after that mysteriously disappers and nothing except syntax highlighing works (not even a common indentifier-only completion).

elenakrittik avatar Apr 17 '23 20:04 elenakrittik