1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VSCodeでUnable to connect to VS Code server: Error in request.発生

Last updated at Posted at 2024-08-21

VS Code Serverにアクセスできないエラーが発生しました。
再現手順は不明ですが、リモートでUbuntuにSSH接続しつつ、WSL2を立ち上げたら発生したような気がします。

masami@masami-L /u/src> code .
Unable to connect to VS Code server: Error in request.
Error: connect ENOENT /run/user/1000/vscode-ipc-a8a44a73-0123-4d59-9424-463f68dff262.sock
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1606:16) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'connect',
  address: '/run/user/1000/vscode-ipc-a8a44a73-0123-4d59-9424-463f68dff262.sock'
}

この障害が起きている場合、ターミナルに警告アイコンが表示されます。
原因により対処は異なると思いますが、私の場合は簡単に対処可能で、
別のターミナルを立ち上げるだけでOKでした。

1.png

このエラーメッセージで検索すると下記Issueが検索ランキング上位に来ますが、
キャッシュのクリア等、影響が見えにくい処置が多かったですが、
私の場合はそこまでしなくても問題ありませんでした。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?