Bootstrap error after installing rust-analyzer

Hello,

After installing the rust-analyzer extension from VSCode marketplace, I ran into "Bootstrap Error" after opening a .rs file. I've copied the error message below.

ERROR [1/31/2024, 9:08:56 AM]: Bootstrap error [Error: Failed to execute /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/server/rust-analyzer --version
	at Uy (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:341:3165)
	at async ka.getOrCreateClient (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:354:2140)
	at async ka.start (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:354:3459)
	at async /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:373:174
	at async d.h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:141:140086)]
INFO [1/31/2024, 9:09:00 AM]: Starting language client
INFO [1/31/2024, 9:09:00 AM]: Using server binary at /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/server/rust-analyzer
WARN [1/31/2024, 9:09:00 AM]: /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/server/rust-analyzer --version: {
  error: [Error: spawnSync /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/server/rust-analyzer Unknown system error -8
  	at Object.spawnSync (node:internal/child_process:1110:20)
  	at spawnSync (node:child_process:931:24)
  	at mv (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:39:70516)
  	at Uy (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:341:2906)
  	at async ka.getOrCreateClient (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:354:2140)
  	at async ka.start (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:354:3459)
  	at async /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:373:174
  	at async d.h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:141:140086)] {
    errno: -8,
    code: 'Unknown system error -8',
    syscall: 'spawnSync /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/server/rust-analyzer',
    path: '/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/server/rust-analyzer',
    spawnargs: [ '--version' ]
  },
  status: null,
  signal: null,
  output: null,
  pid: 0,
  stdout: null,
  stderr: null
}
ERROR [1/31/2024, 9:09:00 AM]: Bootstrap error [Error: Failed to execute /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/server/rust-analyzer --version
	at Uy (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:341:3165)
	at async ka.getOrCreateClient (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:354:2140)
	at async ka.start (/Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:354:3459)
	at async /Users/Austin/.vscode/extensions/rust-lang.rust-analyzer-0.3.1823/out/main.js:373:174
	at async d.h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:141:140086)]

Appreciate any suggestions!

When searching the only similar problem I can find is a github issue that was not resolved, but maybe the last post will give you some ideas.

Uninstalling and re-installing from Extensions Marketplace fixed this. Thanks!

1 Like