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?

More than 1 year has passed since last update.

WSL2 Ubuntu-22.04でVSCodeがターミナルから起動できない問題

Posted at

問題

うっかりホームディレクトリを吹き飛ばし、環境構築し直したら問題がおきた。

VSCode内のターミナルからcodeコマンドを使用すると、Unable to connect to VS Code serverで失敗しまうのだ。

なぜか通常のターミナルからは起動できる。

解決

下記ISSUEコメントにある通り、loginctl enable-linger $(whoami)で解決する。

Unable to connect to VS Code server: Error in request - ENOENT /run/user/1000/vscode-ipc-*.sock · Issue #157275 · microsoft/vscode · GitHub

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?