Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'~' parsing error in windows #10599

Open
6 tasks done
Weidows opened this issue Dec 31, 2024 · 0 comments
Open
6 tasks done

'~' parsing error in windows #10599

Weidows opened this issue Dec 31, 2024 · 0 comments
Assignees
Labels
ssh Issue in vscode-remote SSH

Comments

@Weidows
Copy link

Weidows commented Dec 31, 2024

Is there an existing issue for this bug?

  • I have searched the existing open issues and found none that apply.
  • If I find any issue of interest that is related or closed, I will included a link to it in this issue.

Required Troubleshooting Steps

  • I have read and performed the troubleshooting steps
  • I have tried both values of the remote.SSH.useLocalServer setting
  • My issue was not covered in the Tips and Tricks linked from the Troubleshooting Wiki.
  • I will include a complete copy of my Remote - SSH logs by running Remote-SSH: Show Log in the command palette or from View > Output in the menu bar

[Optional] Diagnose with Copilot

I did not ask the @remote-ssh participant for help

In step 2 of the troubleshooting wiki, what was the result of running the generated SSH command verbatim outside of VS Code?

I did not try step 2 of the troubleshooting steps

Remote-SSH Log

Remote-SSH Log

[10:31:12.037] Install and start server if needed
[10:31:12.044] Checking ssh with "C:\Program Files\glzr.io\GlazeWM\cli\ssh.exe -V"
[10:31:12.047] Got error from ssh: spawn C:\Program Files\glzr.io\GlazeWM\cli\ssh.exe ENOENT
[10:31:12.048] Checking ssh with "D:\Scoop\global\shims\ssh.exe -V"
[10:31:12.050] Got error from ssh: spawn D:\Scoop\global\shims\ssh.exe ENOENT
[10:31:12.050] Checking ssh with "D:\Scoop\shims\ssh.exe -V"
[10:31:12.123] > OpenSSH_9.9p1, OpenSSL 3.2.3 3 Sep 2024

[10:31:12.137] Using SSH config file "C:\Users\Weidows/.ssh/config"
[10:31:12.138] Running script with connection command: "D:\Scoop\shims\ssh.exe" -T -D 57451 -F "C:\Users\Weidows/.ssh/config" "DolphinSound-docker-weidows-dev" sh
[10:31:12.140] Generated SSH command: 'type "C:\Users\Weidows\AppData\Local\Temp\vscode-linux-multi-line-command--olphin-ound-docker-weidows-dev-842503072.sh" | "D:\Scoop\shims\ssh.exe" -T -D 57451 -F "C:\Users\Weidows/.ssh/config" "DolphinSound-docker-weidows-dev" sh'
[10:31:12.142] Using connect timeout of 17 seconds
[10:31:12.144] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[10:31:12.492] > �[?9001h�[?1004h
[10:31:12.493] Got some output, clearing connection timeout
[10:31:12.741] > Can't open user config file C:UsersWeidows/.ssh/config: No such file or directory
> �]0;C:\WINDOWS\System32\cmd.exe�Connection closed by UNKNOWN port 65535
> 过程试图写入的管道不存在。
[10:31:14.025] "install" terminal command done
[10:31:14.026] Install terminal quit with output: 过程试图写入的管道不存在。
[10:31:14.026] Received install output: 过程试图写入的管道不存在。
[10:31:14.027] Failed to parse remote port from server output
[10:31:14.030] Resolver error: Error: 
	at v.Create (D:\Scoop\persist\vscode\data\extensions\ms-vscode-remote.remote-ssh-0.115.1\out\extension.js:2:493431)
	at t.handleInstallOutput (D:\Scoop\persist\vscode\data\extensions\ms-vscode-remote.remote-ssh-0.115.1\out\extension.js:2:490753)
	at t.tryInstall (D:\Scoop\persist\vscode\data\extensions\ms-vscode-remote.remote-ssh-0.115.1\out\extension.js:2:608797)
	at async D:\Scoop\persist\vscode\data\extensions\ms-vscode-remote.remote-ssh-0.115.1\out\extension.js:2:568008
	at async t.withShowDetailsEvent (D:\Scoop\persist\vscode\data\extensions\ms-vscode-remote.remote-ssh-0.115.1\out\extension.js:2:571256)
	at async P (D:\Scoop\persist\vscode\data\extensions\ms-vscode-remote.remote-ssh-0.115.1\out\extension.js:2:564794)
	at async t.resolve (D:\Scoop\persist\vscode\data\extensions\ms-vscode-remote.remote-ssh-0.115.1\out\extension.js:2:568667)
	at async D:\Scoop\persist\vscode\data\extensions\ms-vscode-remote.remote-ssh-0.115.1\out\extension.js:2:839059
[10:31:14.039] ------

Expected Behavior

my ssh setting:

  "remote.SSH.configFile": "~/.ssh/config",

'~' parsed as C:/User/xxx is expected

Actual Behavior

C:\User\xxx, and finally turn to C:UsersWeidows

Steps To Reproduce

config like

  "remote.SSH.configFile": "~/.ssh/config",

Anything else?

No response

@Weidows Weidows added the ssh Issue in vscode-remote SSH label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants