Closed jason-ha closed 2 weeks ago
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 to1.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.
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
I just saw an instance with my Ubuntu WSL. At the time I was running a script to start a "hugo" server. My impression from these repros is that the first instance happens while system is under some CPU resource pressure. server log: server.2024-07-29-22.log VS Code log:
[Info - 3:01:59 PM] Server initialized with PID: 1858472
Reloading biome executable.
Reloading biome executable.
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.8.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
Biome binary found at /home/username/ff/FluidFramework/node_modules/.pnpm/@biomejs+cli-linux-x64@1.8.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
[Error - 3:03:20 PM] Biome client: couldn't create connection to server.
Error: spawn /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
Reloading client failed: Error: spawn /home/username/.vscode-server/data/User/workspaceStorage/6d2bfb47690451719f3468e462506f41/biomejs.biome/biome ENOENT
[cli-stdout] end
[cli-stdout] finish
[cli-stderr] end
[cli-stderr] finish
[cli-stderr] close
[cli] close -2
[cli-stdout] close
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] exit 0
Connecting to "/home/username/.cache/biome/biome-socket-1.8.3" ...
[cli-stderr] close
[cli] close 0
[cli-stdout] close
[Info - 3:03:20 PM] Server initialized with PID: 1858472
This will no longer be an issue in the upcoming release. We've taken a different approach that should solve this.
Looking forward to a fix - FWIW as I continue to see blips, issues appear to correlate to anything touching the pnpm lock file.
VS Code version
1.90.2
Extension version
2.3.0
Biome version
1.7.3
Operating system
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:
Steps to reproduce
Biome related vscode settings:
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