Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
This repository was 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

Description

@dmix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions