-
Notifications
You must be signed in to change notification settings - Fork 62
RLS mode auto format fails with Code: -32601 #239
Comments
Set |
Right now formatting support in RLS is behind the "unstable features" flags. Have you enabled this flag? unstable_features = true Also, relevant cross-issues: rust-lang/rls#242 rust-lang/rls#3 |
RLS is so unstable as to be unusable. Going to racer for now. Really racer should be the default and RLS the cutting edge option. |
Attached is the output with the rls=debug option. I don't see anything more verbose about the error in there. Excerpt:
|
I switched back to legacy mode which mostly works in the meantime, described here: https://klausi.github.io/rustnish/2017/05/28/using-visual-studio-code-for-rust-on-ubuntu.html |
Still getting this error.. It actually does reformat, but complains too :/ Edit: it could be that it throws this error when rustfmt succeeds, but throws warnings like line overflow? |
I'm still getting this error. |
Just starting learning rust and the formatting code does not work on mac.
|
Right it is still unusable. |
This extension hasn't been updated in two years, please use rust-lang/rls-vscode. |
Right, but it still has some problems and I am using an extension called rust-assist which provides the functionalitites which rls-vscode has bugs. |
Version of VSCode: 1.12.1
Version of the extension: 0.3.14
OS: Ubuntu 16.04
Description: "Format Document" does not work in RLS mode.
Output of the "Rust logging" channel:
Maybe this is not supported yet in RLS mode? I also have
"editor.formatOnSave": true
in my settings and a rls.toml file withunstable_features = true
but the Rust code is not automatically formatted on save.The text was updated successfully, but these errors were encountered: