question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

There is no selection formatter for 'ruby'-files installed.

See original GitHub issue

Your environment

  • vscode-ruby version: 0.18.0
  • Ruby version: 2.5.0
  • VS Code version: 1.24.1
  • Operating System: Mac OS 10.13.5

And … the issue

I’m sorry! I know I’m breaking apart from your Issue template, but this seems more like a Feature Request than a Bug.

I just worked very hard to add Rubocop to a Ruby project so I can finally use vscode-ruby to format my Ruby code in VSCode. So now the file formatting action (OPT-SHIFT-F) will finally work.

However, it looks like selection formatting (CMD-K CMD-F) still doesn’t work. When I run that command, I get the following error message:

There is no selection formatter for ‘ruby’-files installed.

My hunch is that support for selection formatting still hasn’t been added to vscode-ruby; I could not find any Issues that existed talking about selection formatting. Regardless, I wanted to report this, at it would be very nice if this extension had selection formatting support.

Thank you!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wingrunr21commented, Feb 20, 2019

v0.22.0 supports selection formatting

0reactions
wingrunr21commented, Feb 21, 2019

It is working but for rubocop or standard you can’t have any linter errors (due to the return code). #434 handles that bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sorry, but there is no formatter for 'ruby'-files installed. #469
I get the `sorry, but there is no formatter for 'ruby'-files installed. Everything was working alright until i updated ruby on project into ......
Read more >
How do I auto format Ruby or .erb files in VS Code?
install a formatter by clicking on the 'Extensions' tab on the left hand side of vscode, searching for 'ERB Formatter/Beautify' (by Ali Ariff), ......
Read more >
How To Set Up Linters and Formatters for VS Code and Ruby ...
For Ruby, Rubocop has both great formatting as well as linting capabilities. A linter can be executed by a terminal command.
Read more >
vscode-rufo - Ruby formatter - Visual Studio Marketplace
This Visual Studio Code extension provides formatting via Rufo. It will be used with files that have the “Ruby” syntax.
Read more >
Installing the Ruby Plugin for Prettier in VS Code
Prettier is the premier code formatter extension for front-end languages ... in any ruby document in VS Code and select "format document".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found