biome-vscode: 🐛 Cannot find installed biome binary

VS Code version

1.91.1

Extension version

v2024.8.301002

Biome version

1.8.3

Operating system

  • Windows
  • macOS
  • Linux

Description

SCR-20240909-jquh SCR-20240909-jqvm

Steps to reproduce

I simply added this:

yarn add --dev @biomejs/biome
npx biome init

I also installed the prerelease version of this extension.

Expected behavior

Biome binary from node modules should be found.

Does this issue occur when using the CLI directly?

Not sure / Not applicable

Link to a minimal reproduction

No response

Logs

2024-09-09 10:31:51.668 [info] Biome extension activated
2024-09-09 10:32:54.370 [error] Failed to start Biome extension
2024-09-09 10:32:54.370 [info] Biome extension started
2024-09-09 10:32:54.370 [info] User-facing commands registered
2024-09-09 10:32:54.370 [info] Started listening for lockfile changes
2024-09-09 10:32:54.370 [info] Started listening for configuration changes
2024-09-09 10:32:54.370 [info] Started listening for active text editor changes
2024-09-09 10:32:57.702 [info] 





2024-09-09 10:32:57.702 [info] Biome extension activated

About this issue

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

Most upvoted comments

Image Image

@nhedger I am still facing this problem on 3.0.3

However when I do biome rage

CLI:
  Version:                      1.9.4
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.17.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

I managed to fix it by installing biome as global package on windows 11 npm i -g @biomejs/biome

I use M1 chip and I managed to fix it by installing biome cli in my project pnpm i -D @biomejs/cli-darwin-arm64@1.9.4 By default when i use pnpm i @biomejs/biome, it will install @biomejs/cli-darwin-x64 as cli instead of @biomejs/cli-darwin-arm64

I had the same problem with Mac M1. I am using fnm to manage node env, and I didn’t want to install it globally. I set the path manually in VSCode settings. I hope it helps.

.vscode/settings.json

{
    "biome.lsp.bin": "node_modules/@biomejs/cli-darwin-x64/biome"
}
Image

I’m having this same issue under WSL with biome being installed with pnpm. It doesn’t help to install biome globally either (and that’s not really a fix either).

For me, updating to biome v2.0.6 and restarting VSCode worked on Windows + WSL.

I’m having this same issue under WSL with biome being installed with pnpm. It doesn’t help to install biome globally either (and that’s not really a fix either).

the same here, using win11 and npm, global installation did not solve it.

besides that I am getting this error when trying to run the check.

"devDependencies": {
"@biomejs/biome": "^2.0.2",
> biome check --write ./src

C:/Program Files/nodejs/node.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

Update to v3

I’m having this same issue under WSL with biome being installed with pnpm. It doesn’t help to install biome globally either (and that’s not really a fix either).

the same here, using win11 and npm, global installation did not solve it.

besides that I am getting this error when trying to run the check.

"devDependencies": {
"@biomejs/biome": "^2.0.2",
> biome check --write ./src

C:/Program Files/nodejs/node.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory

I managed to fix it by installing biome as global package on windows 11 npm i -g @biomejs/biome

thanks for this @eliezra236 . it worked for me on linux too

We released v3. If it doesn’t fix it for you, please open a fresh issue with a reproduction repository

This seems to work, thanks!