質問編集履歴

1

コメントの通りにsetting.json修正、「wsl show log」実行結果追記、

2022/10/25 14:14

投稿

arcu
arcu

スコア4

test CHANGED
File without changes
test CHANGED
@@ -16,35 +16,71 @@
16
16
  ・setting.jsonに下記を追記
17
17
  ```setting.json
18
18
  {
19
- "terminal.integrated.cwd": "${workspaceFolder}"
19
+ "terminal.integrated.cwd": "${workspaceFolder}",
20
- "terminal.integrated.defaultProfile.windows": "WSL",
20
+ "terminal.integrated.defaultProfile.windows": "WSL",
21
- "terminal.integrated.profiles.linux": {
21
+ "terminal.integrated.profiles.windows": {
22
- "PowerShell": {
22
+ "PowerShell": {
23
- "source": "PowerShell",
23
+ "source": "PowerShell",
24
- "overrideName": true,
24
+ "overrideName": true,
25
- "icon": "terminal-powershell"
25
+ "icon": "terminal-powershell"
26
- },
26
+ },
27
- "Command Prompt": {
27
+ "Command Prompt": {
28
- "path": [
28
+ "path": [
29
- "${env:windir}\\Sysnative\\cmd.exe",
29
+ "${env:windir}\\Sysnative\\cmd.exe",
30
- "${env:windir}\\System32\\cmd.exe"
30
+ "${env:windir}\\System32\\cmd.exe"
31
- ],
31
+ ],
32
- "args": [],
32
+ "args": [],
33
- "overrideName": true,
33
+ "overrideName": true,
34
- "icon": "terminal-cmd"
34
+ "icon": "terminal-cmd"
35
- },
35
+ },
36
- "Git Bash": {
36
+ "Git Bash": {
37
- "source": "Git Bash"
37
+ "source": "Git Bash",
38
- "overrideName": true,
38
+ "overrideName": true,
39
- },
39
+ },
40
- "WSL": {
40
+ "WSL": {
41
- "path": ["C:\\WINDOWS\\System32\\wsl.exe"],
41
+ "path": ["C:\\WINDOWS\\System32\\wsl.exe"],
42
- "args": [],
42
+ "args": [],
43
- "overrideName": true,
43
+ "overrideName": true,
44
- "icon": "terminal-ubuntu-wsl"
44
+ "icon": "terminal-ubuntu-wsl"
45
45
  }
46
46
  }
47
47
  }
48
+ ```
49
+
50
+ wsl show logコマンド実行結果
51
+ ```
52
+ [2022-10-25 13:56:58.474] Resolving wsl+Ubuntu, resolveAttempt: 1
53
+ [2022-10-25 13:56:58.583] Starting VS Code Server inside WSL (wsl2)
54
+ [2022-10-25 13:56:58.583] Extension version: 0.72.0
55
+ [2022-10-25 13:56:58.583] Windows build: 19043. Multi distro support: available. WSL path support: enabled
56
+ [2022-10-25 13:56:58.585] No shell environment set or found for current distro.
57
+ [2022-10-25 13:56:58.766] WSL daemon log file:
58
+ [2022-10-25 13:56:58.767] Probing if server is already installed: C:\WINDOWS\System32\wsl.exe -d Ubuntu -e sh -c "[ -d ~/.vscode-server/bin/d045a5eda657f4d7b676dedbfa7aab8207f8a075 ] && printf found || ([ -f /etc/alpine-release ] && printf alpine-; uname -m)"
59
+ [2022-10-25 13:56:58.929] Probing result: found
60
+ [2022-10-25 13:56:58.929] Server install found in WSL
61
+ [2022-10-25 13:56:58.931] Launching C:\WINDOWS\System32\wsl.exe -d Ubuntu sh -c '"$VSCODE_WSL_EXT_LOCATION/scripts/wslServer.sh" d045a5eda657f4d7b676dedbfa7aab8207f8a075 stable code-server .vscode-server --host=127.0.0.1 --port=0 --connection-token=2761274871-4175340292-3281565273-1154687058 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all'
62
+ [2022-10-25 13:56:59.382] Setting up server environment: Looking for /home/arcu/.vscode-server/server-env-setup. Not found.
63
+ [2022-10-25 13:56:59.382] WSL version: 5.10.102.1-microsoft-standard-WSL2 Ubuntu
64
+ [2022-10-25 13:56:59.382] WSL-shell-PID: 2453
65
+ [2022-10-25 13:56:59.382] Node executable: /home/arcu/.vscode-server/bin/d045a5eda657f4d7b676dedbfa7aab8207f8a075/node
66
+ [2022-10-25 13:56:59.382] Starting server: /home/arcu/.vscode-server/bin/d045a5eda657f4d7b676dedbfa7aab8207f8a075/bin/code-server --host=127.0.0.1 --port=0 --connection-token=2761274871-4175340292-3281565273-1154687058 --use-host-proxy --without-browser-env-var --disable-websocket-compression --accept-server-license-terms --telemetry-level=all
67
+ [2022-10-25 13:56:59.382] *
68
+ [2022-10-25 13:56:59.382] * Visual Studio Code Server
69
+ [2022-10-25 13:56:59.382] *
70
+ [2022-10-25 13:56:59.382] * By using the software, you agree to
71
+ [2022-10-25 13:56:59.382] * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
72
+ [2022-10-25 13:56:59.382] * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
73
+ [2022-10-25 13:56:59.382] *
74
+ [2022-10-25 13:56:59.382] Server bound to 127.0.0.1:45897 (IPv4)
75
+ [2022-10-25 13:56:59.382] Extension host agent listening on 45897
76
+ [2022-10-25 13:56:59.382]
77
+ [2022-10-25 13:56:59.401] Started local proxy server on 50845.
78
+ [2022-10-25 13:56:59.401] WSL resolver response: 127.0.0.1:50845
79
+ [2022-10-25 13:56:59.401] 接続の問題をデバッグするには、http://127.0.0.1:50845/version でローカル ブラウザーを開きます
80
+ [2022-10-25 13:56:59.401] 'wslExeProxy' を使用して、'remote.WSL2.connectionMethod' を設定して構成されたとおりに VS Code サーバーに接続します
81
+ [2022-10-25 13:56:59.401] 'wslExeProxy' は、スリープとネットワーク アダプターの変更後に再接続の問題を修正する必要があります。
82
+ [2022-10-25 13:56:59.401] 新しい設定に関連する問題は、https://github.com/microsoft/vscode-remote-release/issues/5894 に報告してください
83
+ [2022-10-25 13:56:59.401] 以前の接続方法に戻すには、設定 'remote.WSL2.connectionMethod' を 'wsl2VMAddress' に変更します。
48
84
  ```
49
85
 
50
86