Vscode-ruby: Error: ENOENT: no such file or directory language-configuration-ruby.json

Created on 9 Dec 2019  路  3Comments  路  Source: rubyide/vscode-ruby

Your environment

  • vscode-ruby version: 0.26.0
  • Ruby version: 2.3.8
  • Ruby version manager (if any): rbenv
  • VS Code version: 1.40
  • Operating System: Mac OS 10.15.1
  • Using language server? (eg useLanguageServer is true?) Yes

Hello -

I recently installed VS Code and the Ruby extensions but am now struggling to spin up the language server. More generally, none of the linting functionality appears to be working.

When I view the Language Server Output Channel, the server appears to be hanging at Loading Ruby tree-sitter syntax from /Users/mike/.vscode/extensions/rebornix.ruby-0.26.0/dist/server/tree-sitter-ruby.wasm.

When I view the Developer Tools debugging console, I see the following error:
Error: Unable to read file (EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open '/Users/mike/.vscode/extensions/rebornix.ruby-0.26.0/language-configuration-ruby.json')

Before installing the Ruby extensions, I brew installed rbenv and then installed ruby version 2.3.8.

My settings.json looks like this:

{
    "workbench.colorTheme": "Default High Contrast",
    "terminal.integrated.shell.osx": "/bin/bash",
    "window.zoomLevel": 0,
    "ruby.useLanguageServer": true,
    "ruby.format": "rubocop",
    "[ruby]": {

    }
}

Any help would be greatly appreciated.

Thanks!

Most helpful comment

I was able to fix this by running curl https://raw.githubusercontent.com/rubyide/vscode-ruby/master/packages/vscode-ruby/language-configuration-ruby.json > ~/.vscode/extensions/rebornix.ruby-0.27.0/language-configuration-ruby.json

All 3 comments

How did you solved it?

I was able to fix this by running curl https://raw.githubusercontent.com/rubyide/vscode-ruby/master/packages/vscode-ruby/language-configuration-ruby.json > ~/.vscode/extensions/rebornix.ruby-0.27.0/language-configuration-ruby.json

@wingrunr21 it seems that this is still an issue in rebornix.ruby-0.28.1.
Any reason why this is the case?
And is this solvable?

PS: Thank you so much for vscode-ruby. It is so great! :pray:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pelletencate picture pelletencate  路  5Comments

lalunamel picture lalunamel  路  5Comments

rachsmithcodes picture rachsmithcodes  路  5Comments

resistorsoftware picture resistorsoftware  路  3Comments

ghost picture ghost  路  4Comments