Operating System
MacOS 14.2.1
Ruby version
3.2.2
Project has a bundle
Ruby version manager being used
rvm
Description
i've been without ruby tooling for a very long time, so decided to attempt to get it running again, still to no avail in vscode
below is the output opening up a singular ruby codebase
2024-01-17 17:12:48.604 [info] (titan-api) Checking if asdf is available on the path with command: /bin/zsh -i -c 'asdf --version'
2024-01-17 17:12:48.604 [info] (titan-api) Checking if chruby is available on the path with command: /bin/zsh -i -c 'chruby --version'
2024-01-17 17:12:48.647 [info] (titan-api) Checking if rbenv is available on the path with command: /bin/zsh -i -c 'rbenv --version'
2024-01-17 17:12:49.135 [info] (titan-api) Checking if rvm is available on the path with command: /bin/zsh -i -c 'rvm --version'
2024-01-17 17:12:49.735 [info] (titan-api) Discovered version manager rvm
2024-01-17 17:12:49.735 [info] (titan-api) Trying to activate Ruby environment with command: /bin/zsh -i -c 'rvm-auto-ruby -rjson -e "STDERR.printf(%{RUBY_ENV_ACTIVATE%sRUBY_ENV_ACTIVATE}, JSON.dump({ env: ENV.to_h, ruby_version: RUBY_VERSION, yjit: defined?(RubyVM::YJIT) }))"' inside directory: /Users/aronlilland/Documents/dev/controlair/titan-api
2024-01-17 17:12:51.332 [info] (titan-api) Ruby LSP> Skipping custom bundle setup since /Users/aronlilland/Documents/dev/controlair/titan-api/.ruby-lsp/Gemfile.lock already exists and is up to date
2024-01-17 17:12:51.345 [info] (titan-api) Ruby LSP> Running bundle install for the custom bundle. This may take a while...
Ruby LSP> Command: (bundle check || bundle install) 1>&2
2024-01-17 17:12:51.575 [info] (titan-api) Found no changes, using resolution from the lockfile
2024-01-17 17:12:51.607 [info] (titan-api) The Gemfile's dependencies are satisfied
2024-01-17 17:12:53.310 [info] (titan-api) Starting Ruby LSP v0.13.4...
2024-01-17 17:12:53.341 [info] (titan-api) [Error - 5:12:53 PM] Client Ruby LSP: connection to server is erroring.
Header must provide a Content-Length property.
{"found no changes, using resolution from the lockfile\ncontent-length":"1513"}
Shutting down server.
2024-01-17 17:12:53.343 [info] (titan-api) [Error - 5:12:53 PM] Stopping server failed
2024-01-17 17:12:53.343 [info] (titan-api) Error: Client is not running and can't be stopped. It's current state is: starting
at ds.shutdown (/Users/aronlilland/.vscode/extensions/shopify.ruby-lsp-0.5.7/out/extension.js:41:8468)
at ds.stop (/Users/aronlilland/.vscode/extensions/shopify.ruby-lsp-0.5.7/out/extension.js:41:8047)
at ds.stop (/Users/aronlilland/.vscode/extensions/shopify.ruby-lsp-0.5.7/out/extension.js:44:38186)
at ds.handleConnectionError (/Users/aronlilland/.vscode/extensions/shopify.ruby-lsp-0.5.7/out/extension.js:43:63)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-01-17 17:12:53.343 [info] (titan-api) [Error - 5:12:53 PM] Client Ruby LSP: connection to server is erroring.
Header must provide a Content-Length property.
{"{\"id\"":"0,\"result\":{\"capabilities\":{\"positionEncoding\":\"utf-16\",\"textDocumentSync\":{\"openClose\":true,\"change\":2},\"completionProvider\":{\"triggerCharacters\":[\"/\"],\"completionItem\":{\"labelDetailsSupport\":true}},\"hoverProvider\":{},\"definitionProvider\":true,\"documentHighlightProvider\":true,\"documentSymbolProvider\":{\"symbolKind\":{\"value_set\":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},\"hierarchicalDocumentSymbolSupport\":true},\"codeActionProvider\":{\"resolveProvider\":true},\"codeLensProvider\":{},\"documentLinkProvider\":{},\"documentFormattingProvider\":true,\"documentOnTypeFormattingProvider\":{\"firstTriggerCharacter\":\"{\",\"moreTriggerCharacter\":[\"\\n\",\"|\",\"d\"]},\"foldingRangeProvider\":{\"lineFoldingOnly\":true},\"selectionRangeProvider\":true,\"semanticTokensProvider\":{\"documentSelector\":{\"scheme\":\"file\",\"language\":\"ruby\"},\"legend\":{\"tokenTypes\":[\"namespace\",\"type\",\"class\",\"enum\",\"interface\",\"struct\",\"typeParameter\",\"parameter\",\"variable\",\"property\",\"enumMember\",\"event\",\"function\",\"method\",\"macro\",\"keyword\",\"modifier\",\"comment\",\"string\",\"number\",\"regexp\",\"operator\",\"decorator\"],\"tokenModifiers\":[\"declaration\",\"definition\",\"readonly\",\"static\",\"deprecated\",\"abstract\",\"async\",\"modification\",\"documentation\",\"default_library\"]},\"range\":true,\"full\":{\"delta\":false}},\"inlayHintProvider\":{},\"diagnosticProvider\":{\"interFileDependencies\":false,\"workspaceDiagnostics\":false},\"workspaceSymbolProvider\":true},\"serverInfo\":{\"name\":\"Ruby LSP\",\"version\":\"0.13.4\"},\"formatter\":\"rubocop\"},\"jsonrpc\":\"2.0\"}Content-Length: 242"}
Shutting down server.
2024-01-17 17:12:53.344 [info] (titan-api) [Error - 5:12:53 PM] Stopping server failed
2024-01-17 17:12:53.344 [info] (titan-api) Error: Client is not running and can't be stopped. It's current state is: starting
at ds.shutdown (/Users/aronlilland/.vscode/extensions/shopify.ruby-lsp-0.5.7/out/extension.js:41:8468)
at ds.stop (/Users/aronlilland/.vscode/extensions/shopify.ruby-lsp-0.5.7/out/extension.js:41:8047)
at ds.stop (/Users/aronlilland/.vscode/extensions/shopify.ruby-lsp-0.5.7/out/extension.js:44:38186)
at ds.handleConnectionError (/Users/aronlilland/.vscode/extensions/shopify.ruby-lsp-0.5.7/out/extension.js:43:63)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
As a side note, I am running my codebase in docker for development, but my VSCode is not connected to the container, because I maintain 13+ codebases, and want them all to be present in my vscode, which would be not be possible (as far as im aware) if running in a container. So my MacOS has a bare bones install of rvm, ruby 3.2.2, bundler 2.4.22, and ruby-lsp installed.
If i open up a zsh shell in my codes repo and run ruby-lsp, this is the output
$ ruby-lsp
Ruby LSP> Running bundle install for the custom bundle. This may take a while...
Ruby LSP> Command: (bundle check || bundle install) 1>&2
Resolving dependencies...
The Gemfile's dependencies are satisfied
Starting Ruby LSP v0.13.4...
Operating System
MacOS 14.2.1
Ruby version
3.2.2
Project has a bundle
Ruby version manager being used
rvm
Description
i've been without ruby tooling for a very long time, so decided to attempt to get it running again, still to no avail in vscode
below is the output opening up a singular ruby codebase
As a side note, I am running my codebase in docker for development, but my VSCode is not connected to the container, because I maintain 13+ codebases, and want them all to be present in my vscode, which would be not be possible (as far as im aware) if running in a container. So my MacOS has a bare bones install of rvm, ruby 3.2.2, bundler 2.4.22, and ruby-lsp installed.
If i open up a zsh shell in my codes repo and run
ruby-lsp, this is the output