问题
1The terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed.).
参考方案
下面参考链接是针对windows系统上vscode 出现的相同问题的解答
参考链接:https://blog.csdn.net/weixin_40921421/article/details/122016890
不同之处
- 与前面的解决方案有两点不同:
- 我的问题发生在ssh 挂在远程linux/ubuntu系统
- 我的vscode版本更加新一点
Version: 1.84.2 (user setup) Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e Date: 2023-11-09T10:51:52.184Z Electron: 25.9.2 ElectronBuildId: 24603566 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22621
解决方案
搜索路径:
添加bashrc路径
"terminal.integrated.automationProfile.windows": {},"terminal.integrated.automationProfile.linux": {"/home/xlzhai/.bashrc"}
}
问题解决