VS Code: Remote SSH – 如何从 ClearCase 动态视图中打开文件

huangapple go评论101阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年3月7日 14:17:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/75658580.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定