【问题标题】:Failed to open VScode within Samba Share无法在 Samba Share 中打开 VScode
【发布时间】:2021-04-29 21:32:39
【问题描述】:

在我的 Ubuntu 系统中:Linux aldebaran 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

一般我会去C++源码所在的目录下启动VS Code

user-prompt> code .

在本地存储的项目上,这可以正常工作。 但不在我的 NAS 安装的 cifs 卷内。我立即得到:

cannot stat path of the current working directory: Permission denied

该目录完全可以被所有其他命令和 bash 脚本读写,但只有 VS Code 有问题。

以“sudo”开头没有区别。同样的错误。

有什么想法吗?

【问题讨论】:

    标签: ubuntu visual-studio-code samba cifs


    【解决方案1】:
    code \\YOUR_SERVER_IP\Folder_Name
    

    打开 vscode -> 文件 -> 打开文件夹 -> \\YOUR_SERVER_IP\Folder_Name

    参考图片参考。

    enter image description here

    enter image description here

    【讨论】:

    • 为什么要这样做?反之不行吗?我明天试试,但即使这样运行也会留下问题。
    猜你喜欢
    • 2020-07-13
    • 1970-01-01
    • 2020-07-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-03
    相关资源
    最近更新 更多