Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
DevOps: Fix ruby-lsp
  • Loading branch information
danhalson committed Feb 20, 2025
commit e501eebb178777787cc257a1ede3329748cc4907
7 changes: 7 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@
},
"rubyLsp.enabledFeatures": {
"diagnostics": true
},
"rubyLsp.rubyVersionManager": {
"identifier": "none"
},
"rubyLsp.rubyExecutablePath": "/usr/local/bin/ruby",
"rubyLsp.featureFlags": {
"launcher": false // ruby-lsp v0.17 will fail with this flag enabled
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ FROM builder AS dev-container
RUN apt-get update \
&& apt-get install --yes --no-install-recommends sudo git vim zsh ssh curl less
RUN sh -c "$(curl -L https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
-t robbyrussell \
-p git -p docker-compose -p yarn \
-p https://github.com/zsh-users/zsh-autosuggestions \
# -p https://github.com/marlonrichert/zsh-autocomplete \
-p https://github.com/unixorn/fzf-zsh-plugin
-t robbyrussell \
-p git -p docker-compose -p yarn \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/marlonrichert/zsh-autocomplete \
-p https://github.com/unixorn/fzf-zsh-plugin
RUN chsh -s $(which zsh) ${USER}

# Slim application image without development dependencies
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ end
group :development do
gem 'awesome_print'
gem 'rails-erd'
gem 'ruby-lsp', '~> 0.17.7'
gem 'ruby-lsp-rails'
gem 'ruby-lsp-rspec'
end
Expand Down
1 change: 0 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ DEPENDENCIES
rubocop-graphql
rubocop-rails
rubocop-rspec
ruby-lsp (~> 0.17.7)
ruby-lsp-rails
ruby-lsp-rspec
scout_apm
Expand Down