我在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
如何调试问题?