SSH Terminal first command "cd /" in 2024.3
Hi there!
I have recently updated PHPStorm to 2024.3 and have encountered an unusual and annoying problem. Each time I connect to a server via SSH terminal using previously saved configuration, the “cd /” command is automatically executed.
I've tried this with different projects and different servers that have nothing in common. Each time the same command “cd /” appears on the first line.
There aren't many settings in Settings > Tools > SSH Terminal. Am I missing something?
请先登录再写评论。
Experiencing the same in PhpStorm SSH terminal since upgrading to 2024.3. Doesn't happen to SSH connections outside PhpStorm.
It seems sporadic. Doesn't affect all SSH connections. Although: I had a connection that was unaffected; I saved deployment settings to change its hostname, and then it was affected.
A coworker tells me it's auto changing directory to the deploy path.
In the Deployment > env > Mappings settings, deployment path is described as ‘relative to the server root path’ as set on the Connection settings, but that's not how it's being applied here. Also note the UI shows a warning if deployment path is left empty.
Either PhpStorm should change it to cd to root path + deployment path, or revert and not change directory on connection as before.
It seems Deployment option shouldn't affect the SSH Terminal: I can have one SSH connection for multiple deployments, or no deployments at all.
I have opened a project (never opened in 2024.3) with 1 Deployment, set root path and with 2 mappings (relative to root path). None of these options is “/”. In fact, the first command is “cd /” again.
As for me, this option may be useful in some cases. I think there should be a new setting for that. But can't find it.
Hello, Jk, Ryan. The problem you encountered is a known issue that is a result of this feature request implementation. Please consider upvoting the first issue I mentioned to show you're also affected by it. It is very important to us to evaluate the number of users negatively affected by this change.