-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue fo RFC2912, transition to rust-analyzer as our official LSP #4224
Comments
Could someone briefly describe how RLS does on-the-fly checking? I know that rust-analyzer on-the-fly checking will be implemented in its own way, but knowing how RLS does it I think could be some useful background knowledge for this thread. |
RLS acts as a custom rustc driver and uses an internal compiler api ( |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
We can somewhat tick the blocking issue box:
Also posted it in the RFC thread: rust-lang/rfcs#2912 (comment) It doesn't provide exact feature parity since it doesn't work yet with messages such as |
#4494 implements code action snippet capability. |
I've transitioned all code actions to use progressive enhancement, so code actions in next release should just work with any any editor which implements I've also started documenting all our protocol extensions in this document. At this point, although we are not fully confirming to the protocol yet, I believe we've solved all major practical conformance issues. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
`inotify_init1` is not available in older versions of glibc. See[1] and the related discussion for details. [1] rust-lang/rust-analyzer#4224 (comment)
`inotify_init1` is not available in older versions of glibc. See[1] and the related discussion for details. [1] rust-lang/rust-analyzer#4224 (comment)
I've made the change and released versions 0.8.3 and 0.7.1. Please let me know if it helps. |
4757: Update inotify r=matklad a=matklad #4224 (comment) bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
That worked, thanks @hannobraun ! |
Current status:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Also one could create a symlink for convenient reasons: ln -s $(rustup which rust-analyzer ) ~/.local/bin/rust-analyzer |
Should |
@lnicola I think we need to add something else for that. I've opened rust-lang/vscode-rust#812 for the last bit we need to fix before we can start the "feedback govering" phase properly. |
Hi, on major blocker for me to adopting rust-analyzer (as a CoC plugin in (neo)vim) is the inability to update errors on the fly. This is already listed here but I didn't see any links to specific issues. Searching I found #6591, which looks like it is requesting the same. If this is correct, maybe it would be useful to link it in the TODO item in the issue description, so other people that want to monitor particular items on the TODO list can subscribe to the specific issues. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Note that the real blocker today is non-technical. We need to move rust-analyzer over to rust-lang project before it can be made official. We are slowly but steadily doing that with the rust-lang core team. |
This comment has been minimized.
This comment has been minimized.
Since https://blog.rust-lang.org/2022/02/21/rust-analyzer-joins-rust-org.html has been announced and it seems that Rust Analyzer has joined the Rust org (does it mean that the repository will move?), I'd gladly move or replace the code for the current VSCode extension with the Rust Analyzer VSCode extension (maybe with an added option to run RLS if already installed by rustup) to quickly move things forward. To give some more context from my side: I've obviously dropped the ball with the migration tracked at rust-lang/vscode-rust#812. I was and am still struggling with mental health issues and it became apparent that I cannot keep up with my existing open source obligations (at least I viewed them as such) and couldn't maintain the outlined pace of work nor even communicate that properly. I'm really sorry for that. I'm very happy that the Rust IDE story is getting better and better with every week and I'll happily coordinate with adding new maintainers to the official Rust VSCode extension and with any work required to make the switch (should I CC any specific RA team?). Thanks for all your hard work on the Rust Analyzer and other IDE-related bits! |
I work on VS Code and a few team members also noted how much better Rust editing is with rust-analyzer. I dug deeper as VS Code had a built-in recommendation for the rust-lang extension and found this issue. As one fix the upcoming VS Code 1.66 will start recommending rust-analyzer. Until the extensions are unified this seems the best experience for users. Feel free to contact me if you need help with the transitioning in VS Code or Marketplace. |
Rust is switching to rust-analyzer and deprecating rls (rust-lang/rust-analyzer#4224). On Feb 23, 2022, rls broke on nightly, and a month later it was still not fixed (rust-lang/rust#94284). It seems there is no longer interest in RLS, so we drop support for it so we can continue to update nightlies.
Rust is switching to rust-analyzer and deprecating rls (rust-lang/rust-analyzer#4224). On Feb 23, 2022, rls broke on nightly, and a month later it was still not fixed (rust-lang/rust#94284). It seems there is no longer interest in RLS, so we drop support for it so we can continue to update nightlies.
As There was a slight change of plans regarding the VSCode extensions, as instead of merging the two VSCode extensions as described in rust-lang/vscode-rust#812, https://github.com/rust-lang/vscode-rust is now being deprecated in favor of the |
Issues blocking providing rust-analyzer as an alternative
"rust-analyzer.applySourceChange"
with less adHoc SnippetTextEditIssues blocking switching to rust-analyzer as the main implementation
Issues under discussion
The text was updated successfully, but these errors were encountered: