我一直很高兴地使用"渲染"按钮在VS代码中渲染Quarto文档.然后第二天我收到错误消息(忽略xxxx而不是我的用户名):
Uni : The term 'Uni' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:50
+ cmd /C"quarto preview "c:\Users\xxxx\Dropbox (Uni of Auckland)\Qui ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (Uni:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
路径或空格似乎有问题,堆栈上有许多问题引用了使用不同软件的相同问题,但这些问题对我没有帮助:
-
The term '' is not recognized as the name of a cmdlet, function, script file
-
The term 'go' is not recognized as the name of a cmdlet, function, script file, or operable program
如果我运行命令quarto render .\example.qmd
,它呈现得很好.或者,如果我将工作目录移动到我的桌面,则渲染按钮将再次工作.我不能更改Dropbox的名称,因为它是由机构管理的.
不知道一夜之间发生了什么变化.我很想恢复使用渲染按钮的功能.
有什么主意吗?感谢Stack社区!