VSCode 在 Linux 系统中找不到文件
VSCode can't find files in Linux system
我已经通过 flatpak
安装了 Visual Studio Code - OSS
。我变了
"terminal.integrated.shell.linux": "/usr/bin/zsh"
shell 存在并正在工作
$ which zsh
> /usr/bin/zsh
$ ls -l $(which zsh)
> -rwxr-xr-x 2 root root 865456 Feb 4 21:06 /usr/bin/zsh
$ zsh --version
> zsh 5.7.1 (x86_64-pc-linux-gnu)
$ echo $SHELL
> /usr/bin/zsh
当新终端 window 打开时,终端 window 在终端 window 中显示以下消息后立即关闭。
execvp(3) failed.: No such file or directory
我又安装了vscodevim
插件并配置了
"vim.enableNeovim": true,
"vim.neovimPath": "/usr/bin/nvim"
但是,我收到以下错误消息。
Configuration: Invalid neovimPath. ENOENT: no such file or directory, stat '/usr/bin/nvim'.
但是 nvim 存在:
$ Configuration: Invalid neovimPath. ENOENT: no such file or directory, stat '/usr/bin/nvim'.
> -rwxr-xr-x 1 root root 3383384 Jan 14 03:41 /usr/bin/nvim
VS Code 似乎找不到系统文件。我该如何解决这个问题?
> Flatpak 1.3.2
> Visual Studio Code - OSS com.visualstudio.code.oss 1.33.1 stable x86_64 flathub user
我可以通过
访问主机中的“/usr/bin/zsh”
"terminal.integrated.shell.linux": "/run/host/usr/bin/zsh"
但是,从主目录加载库和配置时会出现很多问题。所以我假设它不允许访问文件系统中的所有内容。注意:这不需要 flatpak run
的额外参数
我已经通过 flatpak
安装了 Visual Studio Code - OSS
。我变了
"terminal.integrated.shell.linux": "/usr/bin/zsh"
shell 存在并正在工作
$ which zsh
> /usr/bin/zsh
$ ls -l $(which zsh)
> -rwxr-xr-x 2 root root 865456 Feb 4 21:06 /usr/bin/zsh
$ zsh --version
> zsh 5.7.1 (x86_64-pc-linux-gnu)
$ echo $SHELL
> /usr/bin/zsh
当新终端 window 打开时,终端 window 在终端 window 中显示以下消息后立即关闭。
execvp(3) failed.: No such file or directory
我又安装了vscodevim
插件并配置了
"vim.enableNeovim": true,
"vim.neovimPath": "/usr/bin/nvim"
但是,我收到以下错误消息。
Configuration: Invalid neovimPath. ENOENT: no such file or directory, stat '/usr/bin/nvim'.
但是 nvim 存在:
$ Configuration: Invalid neovimPath. ENOENT: no such file or directory, stat '/usr/bin/nvim'.
> -rwxr-xr-x 1 root root 3383384 Jan 14 03:41 /usr/bin/nvim
VS Code 似乎找不到系统文件。我该如何解决这个问题?
> Flatpak 1.3.2
> Visual Studio Code - OSS com.visualstudio.code.oss 1.33.1 stable x86_64 flathub user
我可以通过
访问主机中的“/usr/bin/zsh”"terminal.integrated.shell.linux": "/run/host/usr/bin/zsh"
但是,从主目录加载库和配置时会出现很多问题。所以我假设它不允许访问文件系统中的所有内容。注意:这不需要 flatpak run