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

language server crashing on latest vscode #502

Closed
epk opened this issue Jul 3, 2019 · 5 comments
Closed

language server crashing on latest vscode #502

epk opened this issue Jul 3, 2019 · 5 comments

Comments

@epk
Copy link

epk commented Jul 3, 2019

Your environment

  • vscode-ruby version: 0.24.0
  • Ruby version: 2.6.3
  • Ruby version manager (if any): chruby
  • VS Code version: Version 1.36.0 (1.36.0)
  • Operating System: macOS Mojave 10.14.5 (18F132)
  • Using language server? Yes

Expected behavior

Should start up

Actual behavior

[Info  - 3:33:07 PM] Initializing Ruby language server...
[Info  - 3:33:07 PM] Rebuilding tree-sitter for local Electron version
[Error - 3:33:07 PM] Server initialization failed.
  Message: Request initialize failed with message: No prebuilt binaries found (target=undefined runtime=undefined arch=undefined libc=undefined platform=undefined)
  Code: -32603 
@kascote
Copy link

kascote commented Jul 4, 2019

the last vscode is using node v69 and the last tree-sitter-ruby is against v64 and isn't founding the url to download:

https://github.com/tree-sitter/tree-sitter-ruby/releases/download/v0.15.0/tree-sitter-ruby-v0.15.0-electron-v69-linux-x64.tar.gz

we have to wait to tree-sitter-ruby generate a new release in that case ?

btw: the last message with undefined values, seems related to prebuildInstall.download
https://github.com/rubyide/vscode-ruby/blob/master/server/src/util/rebuilder.ts#L38

isn't sending all the data to show the error:
https://github.com/prebuild/prebuild-install/blob/04be92d2ead6459741e0fb64cc44735f6c2fa519/download.js#L66

@wingrunr21
Copy link
Collaborator

wingrunr21 commented Jul 6, 2019

This is known and we already have a PR upstream to fix it.

If you have build tooling installed on your system you can perform the following:

cd ~/.vscode/extensions/rebornix.ruby-0.24.0/server
npm install

That should trigger prebuild to build the binary

I am researching moving to the WASM build of tree-sitter but there appears to potentially be some issues (see microsoft/vscode#65559)

@wingrunr21
Copy link
Collaborator

I'm closing this as this is a dup of #486

@joshgoebel
Copy link

joshgoebel commented Jul 8, 2019

% cd ~/.vscode/extensions/rebornix.ruby-0.24.0/server
% npm install                                              
added 389 packages from 755 contributors and audited 1925 packages in 6.016s
found 0 vulnerabilities

This didn't fix the issue though. Guess I'll wait for an upstream fix?

@wingrunr21
Copy link
Collaborator

v0.24.1 was just published with the updated binaries

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants