从Mac终端启动vs代码时出错

时间:2019-07-26 17:27:14

标签: macos terminal visual-studio-code

我在Mac上安装了vs代码,并尝试从终端启动它,但在运行以下命令时出现错误:

(base) singhalm ~ $ mkdir home

(base) singhalm ~ $ cd home

(base) singhalm home $ code .

运行上面的命令时,出现以下警告和错误:

Syntax Warning: May not be a PDF file (continuing anyway)

Syntax Error: Couldn't read xref table

Syntax Warning: PDF file is damaged - attempting to reconstruct xref table...

Syntax Error: Couldn't find trailer dictionary

Syntax Error: Couldn't read xref table

请注意,我已经遵循了有关在VS代码中设置“ Shell命令:在PATH命令中安装'code'命令”的说明。

我还尝试通过在终端上运行以下命令来将VS Code手动添加到我的路径中:

cat << EOF >> ~/.bash_profile

export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

EOF

如何调试问题?

0 个答案:

没有答案