biomejs/biome-vscode

๐Ÿ“Ž NixOS support

Closed this issue ยท 3 comments

Summary

This task tracks the implementation of NixOS support for resolving the biome binary from a project's dependencies.

Reference

Contributing

If you'd like to contribute and implement this, please make it known in the comments so we can assign you to the task.

When considering the bundled biome-lsp binary, it may be a better choice to switch to the -musl build, which appears to work out of the box on NixOS:

image

image

PS. "no such file (...)" is a typical error message for broken binaries

When considering the bundled biome-lsp binary, it may be a better choice to switch to the -musl build, which appears to work out of the box on NixOS:

image

image

PS. "no such file (...)" is a typical error message for broken binaries

Not sure how it relates to this issue?

Sorry for the missing explanation. This is an issue related to the NixOS support, that the bundled LSP binary does not work, which I forgot to mention.

image

Extension bundle does not include the prebuilt binary
Biome binary found at /home/user/.config/Code/User/globalStorage/biomejs.biome/server/biome
Executing Biome from: /home/user/.config/Code/User/globalStorage/biomejs.biome/server/biome
[Error - 8:41:13 PM] Biome client: couldn't create connection to server.
Error: spawn /home/user/.config/Code/User/globalStorage/biomejs.biome/server/biome ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[cli-stdout] end
[cli-stdout] finish
[cli-stderr] end
[cli-stderr] finish
[cli-stderr] close
[cli] close -2
[cli-stdout] close