Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Starting ruby LSP gives me Cannot read properties of null (reading 'toString') error #852

Open
dmix opened this issue Mar 14, 2023 · 1 comment
Labels

Comments

@dmix
Copy link

dmix commented Mar 14, 2023

Your environment

  • vscode-ruby version: v0.28.1
  • Ruby version: 2.7.6
  • Ruby version manager (if any): rvm
  • VS Code version: 1.70.0-insider
  • Operating System: macOS Ventura
  • Using language server? (eg useLanguageServer is true in your configuration?) yes

Expected behavior

Language server should start

Actual behavior

I get the following error:

TypeError: Cannot read properties of null (reading 'toString')
    at Object.e.loadEnv (/Users/dmix/.vscode-insiders/extensions/rebornix.ruby-0.28.1/dist/server/index.js:16:282343)
    at /Users/dmix/.vscode-insiders/extensions/rebornix.ruby-0.28.1/dist/server/index.js:16:150418
    at Generator.next (<anonymous>)
    at /Users/dmix/.vscode-insiders/extensions/rebornix.ruby-0.28.1/dist/server/index.js:16:149468
    at new Promise (<anonymous>)
    at r (/Users/dmix/.vscode-insiders/extensions/rebornix.ruby-0.28.1/dist/server/index.js:16:149216)
    at /Users/dmix/.vscode-insiders/extensions/rebornix.ruby-0.28.1/dist/server/index.js:16:150374
    at Array.map (<anonymous>)
    at /Users/dmix/.vscode-insiders/extensions/rebornix.ruby-0.28.1/dist/server/index.js:16:150367
    at Generator.next (<anonymous>)
[Error - 12:03:54 PM] Connection to server got closed. Server will not be restarted.

Uploading Screenshot 2023-03-14 at 12.06.55 PM.png…

Otherwise the ruby package works.

@github-actions
Copy link

This issue has not had activity for 30 days. It will be automatically closed in 30 days.

@github-actions github-actions bot added the stale label Jul 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant