英文:
VS Code:Remote SSH - How to open files from a clearcase dynamic view
问题
我通过SSH从Windows终端连接到我的Oracle Linux构建服务器,设置Clearcase视图,然后使用Vi查看/编辑代码。
现在,我正在尝试使用Visual Studio Code - 远程SSH来连接到服务器并直接从Windows PC编辑代码。
我能够从VS Code连接到服务器,并能够从VS Code终端设置Clearcase视图。但是,如果我尝试在与我的视图关联的VS文件资源管理器中打开文件夹,我看不到任何文件。不过,我可以从VS Code终端中看到文件。
请提供建议以在VS资源管理器中查看文件。
英文:
I connect to my Oracle Linux build server using SSH from Windows Terminal, set the Clearcase view and then view/edit code using Vi.
Now, I am trying to use Visual Studio Code - Remote SSH to connect to the server and edit code directly from Windows PC.
I am able to connect to the server from VS Code and able to set clearcase view from VS Code Terminal. But if I try to open the folder in VS File Explorer attached to my view I am not seeing any files. I can see the files from VS Code Terminal though.
Kindly provide suggestions to see the files in VS Explorer.
答案1
得分: 1
使用 cleartool setview(将动态视图挂载到 /vobs)不是推荐的最佳做法,因为它会生成一个新的进程,这可能无法在VSCode Remote SSH会话中正确解释。
为了验证这一点,尝试使用完整的视图路径 /view/AViewName/vobs/aVob/.../yourFolder 访问相同的文件夹,而不设置任何视图(假设 Vob 已经挂载)。然后查看文件是否可见。
英文:
Using cleartool setview (to mount a dynamic view onto /vobs) is not the recommended best practice, as it spawns a new process which might not be correctly interpreted within the VSCode Remote SSH session.
To validate that, try and access the same folder using the full view path /view/AViewName/vobs/aVob/.../yourFolder, without setting any view (and assuming the Vob is already mounted).
See if your files are visible then.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论