biomejs/biome-vscode

๐Ÿ› Error: `Biome client: couldn't create connection to server.` (`ETXTBSY` or `ENOENT`)

Opened this issue ยท 10 comments

VS Code version

1.90.2

Extension version

2.3.0

Biome version

1.7.3

Operating system

  • Windows
  • macOS
  • Linux

Description

While using VS Code error pop-ups regularly appear about Biome not connecting to server. Most observable when switching back to VS Code window.
I feel like I have seen this across all places I use Biome VS Code extension, but now that I am trying to capture instances of errors, I only see it on Linux (Ubuntu WSL on Windows 11).

Full VS Code about:

Version: 1.90.2 (system setup)
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
Date: 2024-06-18T22:34:26.404Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631

Steps to reproduce

  1. Have time pass (seems like most common trigger is switching back to VS Code)

Biome related vscode settings:

{
	"editor.defaultFormatter": "biomejs.biome",
	// Also configure the formatter on a per-language basis for some common languages/file-types, to make sure it is applied
	// even if someone's User Settings specify a different formatter at this level (which overrides the root-level
	// 'editor.defaultFormatter').
	"[json]": {
		"editor.defaultFormatter": "biomejs.biome",
	},
	"[javascript]": {
		"editor.defaultFormatter": "biomejs.biome",
	},
	"[typescript]": {
		"editor.defaultFormatter": "biomejs.biome",
	},
	// Don't search for the biome executable in the path, as it's not a globally installed tool.
	"biome.searchInPath": false,
}

Expected behavior

No error pop-up just refocusing on VS Code

Does this issue occur when using the CLI directly?

Not sure / Not applicable

Logs

(There is no output from `Biome trace`. These are from `Biome` output. Includes some of the oldest logs and then could instances of the new. It looks like multiple instances of connection to Biome server are trying to be established - is that right?)
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info  - 10:32:58 AM] Server initialized with PID: 1757
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli] close 0
[cli-stderr] close
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info  - 11:26:38 AM] Server initialized with PID: 12413
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli] close 0
[cli-stderr] close
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info  - 11:32:21 AM] Server initialized with PID: 14126
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli] close 0
[cli-stderr] close
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stdout] data 46
[cli] exit 0
[cli-stderr] end
[cli-stderr] finish
[cli-stderr] close
[cli-stdout] end
[cli-stdout] finish
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[cli] close 0
[cli-stdout] close
[Info  - 11:35:47 AM] Server initialized with PID: 15424
 . . .
Reloading biome executable.
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Error copying file: EntryNotFound (FileSystemError): Unable to delete nonexistent file 'vscode-remote://wsl+ubuntu-20.04/home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome'
Executing Biome from: /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info  - 10:32:37 AM] Server initialized with PID: 18211
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stdout] end
[cli-stdout] finish
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] data 46
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[cli] exit 0
[cli-stderr] close
[cli] close 0
[cli-stdout] close
[cli-stdout] end
[cli-stdout] finish
[cli-stderr] end
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[cli-stderr] finish
[cli-stderr] close
[cli] close 0
[cli-stdout] close
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[cli-stdout] close
[cli] close 0
[cli-stderr] close
[Info  - 10:32:37 AM] Server initialized with PID: 18211
[Info  - 10:32:37 AM] Server initialized with PID: 18211
[Info  - 10:32:37 AM] Server initialized with PID: 18211
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info  - 10:32:37 AM] Server initialized with PID: 18211
Reloading biome executable.
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.7.3/node_modules/@biomejs/cli-linux-x64/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Copying binary to temporary folder: file:///home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[Error - 10:32:38 AM] Biome client: couldn't create connection to server.
Error: spawn ETXTBSY
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at spawn (node:child_process:780:9)
    at getSocket (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:36509:57)
    at createMessageTransports (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:36553:22)
    at LanguageClient2.createMessageTransports (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:17925:18)
    at LanguageClient2.createConnection (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:15548:39)
    at LanguageClient2.start (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:15124:41)
    at n.value (/home/username/.vscode-server/extensions/biomejs.biome-2.3.0/out/main.js:36249:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
Reloading client failed: Error: spawn ETXTBSY
Reloading client failed: Error: spawn ETXTBSY
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info  - 10:32:38 AM] Server initialized with PID: 18211
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
Executing Biome from: /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome
[cli-stdout] data 46
[cli-stderr] end
[cli-stderr] finish
[cli-stdout] end
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "/home/username/.cache/biome/biome-socket-1.7.3" ...
[Info  - 10:32:39 AM] Server initialized with PID: 18211

Just experienced again - this time directly using Windows VS Code (newer VSCode version too).

Full VS Code about:

Version: 1.91.1 (system setup)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:06:49.809Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631

Log (partial):

[Info  - 9:50:25 AM] Server initialized with PID: 14964
Reloading biome executable.
Biome binary found at d:\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.7.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/85974bf9b18f42b60c268d05e426b998/biomejs.biome/biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\85974bf9b18f42b60c268d05e426b998\biomejs.biome\biome.exe
[cli-stdout] data 29
[cli-stderr] end
[cli] exit 0
[cli-stdout] end
[cli-stderr] end
[cli-stdout] end
Connecting to "\\.\pipe\biome-service-1.7.3" ...
[cli-stderr] finish
[cli-stdout] finish
[cli-stderr] finish
[cli-stdout] finish
[Error - 9:50:37 AM] Biome client: couldn't create connection to server.
Error: connect ENOENT \\.\pipe\biome-service-1.7.3
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)
Reloading client failed: Error: Could not connect to the Biome server at "\\.\pipe\biome-service-1.7.3": connect ENOENT \\.\pipe\biome-service-1.7.3
[cli-stdout] close
[cli-stderr] close
[cli] close 0
[cli-stdout] close
[cli] close 0
[cli-stderr] close
Reloading biome executable.
Biome binary found at d:\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.7.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/85974bf9b18f42b60c268d05e426b998/biomejs.biome/biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\85974bf9b18f42b60c268d05e426b998\biomejs.biome\biome.exe
[cli-stdout] data 29
[cli] exit 0
Connecting to "\\.\pipe\biome-service-1.7.3" ...
[Info  - 9:50:58 AM] Server initialized with PID: 22648
Reloading biome executable.
Biome binary found at d:\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.7.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/85974bf9b18f42b60c268d05e426b998/biomejs.biome/biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\85974bf9b18f42b60c268d05e426b998\biomejs.biome\biome.exe
[cli-stderr] end
[cli-stdout] end
[cli-stderr] finish
[cli-stdout] finish
[cli-stdout] close
[cli] close 0
[cli-stderr] close
[cli-stdout] data 29
[cli] exit 0
Connecting to "\\.\pipe\biome-service-1.7.3" ...
[Info  - 9:51:06 AM] Server initialized with PID: 23316

Could you please update the Biome version to the latest (v1.8.3 currently)? We fixed many issues and we don't ship patches to 1.7.x anymore.

Could you please update the Biome version to the latest (v1.8.3 currently)? We fixed many issues and we don't ship patches to 1.7.x anymore.

I was able to get our team updated. So far, no repro. :) I'll try to check back in next week.

Thanks for the feedback. I'll close this for now. Feel free to reopen if you have more information.

@nhedger, please reopen (don't know that I can do that myself).
I am seeing similar behavior with v1.8.3, but not as often.

Current environment:

Version: 1.91.1 (system setup)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:06:49.809Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631

Here is a log from Windows

[Info  - 11:28:07 PM] Server initialized with PID: 35432
Reloading biome executable.
Reloading biome executable.
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Reloading biome executable.
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Error copying file: EntryNotFound (FileSystemError): Unable to delete nonexistent file 'c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe'
Executing Biome from: c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe
[cli-stdout] data 29
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe
[cli-stdout] data 29
[cli-stderr] end
[cli-stdout] end
[cli-stderr] finish
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[cli-stdout] data 29
[Info  - 11:29:45 PM] Server initialized with PID: 35432
Reloading biome executable.
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Reloading biome executable.
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Reloading biome executable.
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe
[cli-stdout] end
[cli-stderr] end
[cli] exit 0
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[cli-stdout] end
[cli-stderr] end
[cli] exit 0
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[cli-stdout] finish
[cli-stderr] finish
[cli-stdout] finish
[cli-stderr] finish
[cli-stderr] close
[cli] close 0
[cli-stdout] close
[cli-stderr] close
[cli] close 0
[cli-stdout] close
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe
[Info  - 11:29:46 PM] Server initialized with PID: 35432
[Info  - 11:29:46 PM] Server initialized with PID: 35432
[cli-stdout] data 29
[cli-stdout] data 29
[cli-stdout] data 29
[cli-stderr] end
[cli-stdout] end
[cli-stderr] finish
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[cli-stderr] end
[cli-stdout] end
[cli-stderr] finish
[cli-stdout] finish
[cli-stdout] close
[cli-stderr] close
[cli] exit 0
[cli] close 0
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[cli-stdout] end
[cli-stderr] end
[cli] exit 0
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[cli-stdout] finish
[cli-stderr] finish
[cli-stderr] close
[cli] close 0
[cli-stdout] close
[Info  - 11:29:47 PM] Server initialized with PID: 35432
[Info  - 11:29:47 PM] Server initialized with PID: 35432
[Info  - 11:29:47 PM] Server initialized with PID: 35432

And soon after going back to VS Code after making the prior post.

[Info  - 11:43:40 PM] Server initialized with PID: 35432
Reloading biome executable.
Reloading biome executable.
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Reloading biome executable.
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Biome binary found at c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/78b345dcbdade2e6782407579e1bcfe4/biomejs.biome/biome.exe
Error copying file: Unknown (FileSystemError) (FileSystemError): Error: Unable to copy 'biome.exe' into 'biomejs.biome' (Error: EBUSY: resource busy or locked, copyfile 'c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe' -> 'c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe').
Executing Biome from: c:\w\msft\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe
[cli-stdout] data 29
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\78b345dcbdade2e6782407579e1bcfe4\biomejs.biome\biome.exe
[cli-stdout] data 29
[cli-stdout] end
[cli-stderr] end
[cli-stdout] finish
[cli-stderr] finish
[cli-stderr] close
[cli-stdout] close
[cli] exit 0
[cli] close 0
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[Info  - 11:43:45 PM] Server initialized with PID: 35432

Is there a pattern to this issue happening? We need a way to reproduce it if we hope to find what causes it.

I don't use Windows myself, so help on this front would certainly be appreciated.

  • are you able to reproduce it in a systematic way?
  • what's the bear minimum setup on which you can reproduce it?
  • What's the last action you took when the issue presented itself (did you switch git branches, run a command, etc?)

Please provide as much context as possible.

Can you provide the daemon logs when this happens? https://biomejs.dev/guides/editors/create-a-plugin/#daemon-logs

I believe this will happen with Linux as well, at least it did with 1.7.3. I have been away from my WSL Linux box mostly since updating; so, no confirmation of repro yet.
As best I can tell it is related to being away from VS Code and then coming back. I tend to have VS Code persistently open and don't change workspaces. Something seems to trigger multiple pipes or such and that can grow.
The last time I was reproducing this, I was also doing a resource intensive build when it happened.
I think these are the relevant daemon logs for the most recent snippet above: server.log.2024-07-19-06

I was just observing this happen on another system (Windows) and was going to collect the server logs. However, there are no server logs corresponding to the most recent incident. The client logs mention 1:39 to 1:42pm but latest server log file was written at 1:19pm.
Client log portion:

[Info  - 1:39:35 PM] Server initialized with PID: 9120
Reloading biome executable.
Reloading biome executable.
Biome binary found at d:\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Reloading biome executable.
Biome binary found at d:\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Biome binary found at d:\ff\FluidFramework\node_modules\.pnpm\@biomejs+cli-win32-x64@1.8.3\node_modules\@biomejs\cli-win32-x64\biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/85974bf9b18f42b60c268d05e426b998/biomejs.biome/biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/85974bf9b18f42b60c268d05e426b998/biomejs.biome/biome.exe
Copying binary to temporary folder: file:///c%3A/Users/username/AppData/Roaming/Code/User/workspaceStorage/85974bf9b18f42b60c268d05e426b998/biomejs.biome/biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\85974bf9b18f42b60c268d05e426b998\biomejs.biome\biome.exe
[Error - 1:42:36 PM] Biome client: couldn't create connection to server.
Error: spawn EBUSY
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at spawn (node:child_process:799:9)
    at getSocket (c:\Users\username\.vscode\extensions\biomejs.biome-2.3.0\out\main.js:36509:57)
    at createMessageTransports (c:\Users\username\.vscode\extensions\biomejs.biome-2.3.0\out\main.js:36553:22)
    at LanguageClient2.createMessageTransports (c:\Users\username\.vscode\extensions\biomejs.biome-2.3.0\out\main.js:17925:18)
    at LanguageClient2.createConnection (c:\Users\username\.vscode\extensions\biomejs.biome-2.3.0\out\main.js:15548:39)
    at LanguageClient2.start (c:\Users\username\.vscode\extensions\biomejs.biome-2.3.0\out\main.js:15124:41)
    at n.value (c:\Users\username\.vscode\extensions\biomejs.biome-2.3.0\out\main.js:36249:26)
Reloading client failed: Error: spawn EBUSY
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\85974bf9b18f42b60c268d05e426b998\biomejs.biome\biome.exe
Executing Biome from: c:\Users\username\AppData\Roaming\Code\User\workspaceStorage\85974bf9b18f42b60c268d05e426b998\biomejs.biome\biome.exe
[cli-stdout] data 29
[cli-stderr] end
[cli-stdout] end
[cli] exit 0
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[cli-stdout] data 29
[cli-stderr] end
[cli] exit 0
[cli-stderr] finish
[cli-stdout] finish
[cli-stdout] end
Connecting to "\\.\pipe\biome-service-1.8.3" ...
[cli-stderr] finish
[cli-stdout] finish
[cli-stdout] close
[cli] close 0
[cli-stderr] close
[cli-stdout] close
[cli] close 0
[cli-stderr] close
[Info  - 1:42:36 PM] Server initialized with PID: 9120