You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My VS Code workspace is a src folder with a web and api subfolders:
web is a React app
api is a Rails API, where my Gemfile.lock is located
It has the following structure
├src
│ ├── web
│ ├── api
│ │ ├── Gemfile.lock
When my VSCode workspace folder is the src directory (with no Gemfile.lock at root). When opening it like that, the formatter is set to none, ruby-lsp doesn't seem to find rubocop, which is part of my Gemfile.
group:developmentdogem'rubocop',require: falseend
When I open VSCode directly in the api folder , ruby-lsp and the rubocop formatter work fine.
The text was updated successfully, but these errors were encountered:
having same problem here, the solution was to add gem 'ruby-lsp', '~> 0.5.1' to project gemfile yet it is not recommended
nicolasrouanne
changed the title
Doesn't work in a monorepo where Gemfile and .ruby are in a subfolder
Doesn't work when Gemfile isn't in VS Code workspace root
Jun 20, 2023
Operating System
Mac OS
Ruby version
3.2.2
Project has a bundle
Ruby version manager being used
rvm
Description
My VS Code workspace is a
src
folder with aweb
andapi
subfolders:web
is a React appapi
is a Rails API, where myGemfile.lock
is locatedIt has the following structure
When my VSCode workspace folder is the
src
directory (with noGemfile.lock
at root). When opening it like that, theformatter
is set tonone
, ruby-lsp doesn't seem to findrubocop
, which is part of myGemfile
.When I open VSCode directly in the
api
folder ,ruby-lsp
and therubocop
formatter work fine.The text was updated successfully, but these errors were encountered: