Replies: 1 comment 2 replies
-
Thanks for the question. I think there are multiple things involved here. First, you don't have to add Remove the What could be causing trouble is the Nix environment activation. I'm not familiar with Nix, so I don't know if the custom activation script is correct. After removing |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I am new to Ruby, and I am currently in a project where I should not update the project Gemfile, hence I setup ruby-lsp to refer to an external Gemfile. It seems to work fine, but I am interested to know how do I trigger formatting (can I get it to format on save?) for the project, using the gems defined by the external Gemfile?
This is my formatter settings in settings.json (I get same outcome if I change formatter from
auto
torubocop
)And the external Gemfile is (rubocop matches the one defined in the project)
When I ask vscode to format my ruby code (CMD+SHIFT+P -> Format Document), it is prompting me to install a formatter extension (There is no formatter for
ruby
files installed)Beta Was this translation helpful? Give feedback.
All reactions