-
Notifications
You must be signed in to change notification settings - Fork 286
Sorry, but there is no formatter for 'ruby'-files installed. #269
Comments
same here |
This is also happening to me. |
Same here. :/ |
This will be addressed via #317. Please use that to track progress against it. |
Did y'all figure this out? |
Same happening here with me, however when I go to View > Command Palette and choose format it formats just fine. Seems to be related just with my vim shortcut Using ALT+SHIFT+F for now to format the whole document works ok |
seeing the same issue, even with format from view > command palette @jcarlos |
This will be addressed via #317. Until then, if someone else debugs and submits a PR for a fix I'll be happy to take a look/merge. |
Anyone have a workaround that they use? This is sort of a key feature on an ide and this pops up on the google search result when looking for it. Maybe someone has something working that we can use? Other than opening up Sublime text and using BeautifyRuby (which I hate to admit that I've been doing) |
Same thing to here . If anyone fixes the issues/Found how to rectify this please update |
I'm a VSCode noob and I just installed the Ruby extension and I'm seeing this error ("There is no selection formatter for 'ruby'-files installed.") whenever I do I understand progress is being tracked at #317, but I'm wondering if I'm fundamentally missing something here: am I to understand that there is no Ruby plugin in VSCode's ecosystem that knows how how to do basic auto-indentation in Ruby files, and that everyone doing Ruby in VSCode is forced to manually format/indent their code? I understand asking this question runs the risk of broadcasting open-source entitlement, but this is such a strange situation to me that I wonder if I'm somehow just misunderstand the ecosystem or how I'm "supposed" to be using VSCode with Ruby. |
@machty The Ruby ecosystem in VSCode land is generally somewhat lacking, but its not as bad as one might think at first sight. I guess you are using the Vim plugin because of Additionally, this extension here currently supports formatting via Rubocop (somewhat slow). There is also vscode-rufo, a plugin for an external formatter - that one works pretty good for stuff like "Format on save". What is really non-existing, is proper support for formatting ERB files. (I'm currently working on a plugin for this myself, should be available in the near future, just need some free time to finish my prototype) |
Thanks for the insight @kaiwood. I ended up remapping |
Remapping == doesn't seem to be working. Can somebody paste their remapping configuration to make sure I have it right? "vim.normalModeKeyBindingsNonRecursive": [{
"before": ["j"],
"after": ["g", "j"]
},
{
"before": ["k"],
"after": ["g", "k"]
},
{
"before": ["=", "="],
"commands": ["editor.action.reindentselectedlines"]
}
], I've tried recursive and non-recursive (though it shouldn't make a difference for |
Note to random Googlers (correct me if I'm wrong): you can follow this to get ruby formatting working: https://github.com/rubyide/vscode-ruby#formatting If I understand correctly, #317 is targeted towards making some improvements to how it's implemented. |
#405 is the implementation for most of that ticket |
Adding this setting in
|
rvm use (version)@global |
Your environment
vscode-ruby
version: masterMake sure you have
ruby
,ruby-debug-ide
andruby-debug-basex19
installed before submitting your issue -- thank you !Expected behavior
I can use rubocop to do formatting
Actual behavior
I get the `sorry, but there is no formatter for 'ruby'-files installed.
Steps to reproduce the problem
On my machine, it is systematic. I've run under a debugger, and the line with
registerDocumentFormattingEditProvider
is executed.The text was updated successfully, but these errors were encountered: