rust-analyzer: VSCode: Cannot destructure property `releaseName` of 'undefined' or 'null'

I just installed the rust-analyzer extension on vscode and it was unable to download the binary automatically. it gave me the following error:

Failed to download language server from rust-analyzer GitHub repository: Cannot destructure property releaseName of ‘undefined’ or ‘null’.

My environment:

  • manjaro linux
  • rust: stable-x86_64-unknown-linux-gnu (default) rustc 1.41.0 (5e1a79984 2020-01-27)
  • vscode 1.41.1
  • rust-analyzer: 0.1.20200211

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 28 (19 by maintainers)

Most upvoted comments

Yeah, and you need to update the vscode to 1.42 😅 (#3139)

Ah. that version is not in my package manager yet. Manjaro usually runs a week-ish behind Arch.

As of today, 1.42.1 landed in Manjaro. I can confirm the the install works correctly now.

yes, I was refering to the ubuntu directories my actual command is:

rm -fr  ~/.vscode-oss/extensions/matklad.rust-analyzer-0.1.20200211     
ls ~/.config/Code\ -\ OSS/User/globalStorage      
                                                                                                                             
    state.vscdb  state.vscdb.backup

and the global storage had no matklad directory

@Progdrasil, did you install the extension from source previously?

No i did not

when I install the extension the only log i have regarding rust-analyzer

[Extension Host] 
/home/rene/.config/Code - OSS/User/globalStorage/matklad.rust-analyzer/ra_lsp_server-linux --version output: undefined

then when i click Download now button:

[Extension Host] 
Issuing request for released artifacts metadata to https://api.github.com/repos/rust-analyzer/rust-analyzer/releases/latest

notificationsAlerts.ts:40 
Failed to download language server from rust-analyzer GitHub repository: Cannot destructure property `releaseName` of 'undefined' or 'null'.
onDidNotificationChange @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:581
addNotification @ notifications.ts:171
notify @ notificationService.ts:101
(anonymous) @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
(anonymous) @ rpcProtocol.ts:101
fire @ event.ts:581
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:581
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:200
addChunk @ _stream_readable.js:294
readableAddChunk @ _stream_readable.js:275
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166

notificationsAlerts.ts:40 
Rust Analyzer Language Server is not available. Please, ensure its [proper installation](https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/user#vs-code).
onDidNotificationChange @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:581
addNotification @ notifications.ts:171
notify @ notificationService.ts:101
(anonymous) @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:398
_invokeHandler @ rpcProtocol.ts:383
_receiveRequest @ rpcProtocol.ts:299
_receiveOneMessage @ rpcProtocol.ts:226
(anonymous) @ rpcProtocol.ts:101
fire @ event.ts:581
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:581
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:200
addChunk @ _stream_readable.js:294
readableAddChunk @ _stream_readable.js:275
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166

[Extension Host] DNS resolution for example.com was successful ["93.184.216.34"]

For me since I was hacking on rust-analyzer I installed the plugin from source because it was a command away.

A command and a preference change away 😃. Confusion will ensue otherwise.

Interesting, when I uninstall the extensions and search for it, it show the right version (0.1.20200224). However once I install it, it reverts to the version mentioned in the description (0.1.20200211)

yes i just installed it.

When i run the Extensions: Check for extensions update command in vscode it tells me all extensions are up to date