我在运行Window 7 64位。我正在尝试为Sketchup2016扩展设置Visual代码作为我的调试环境,tasks.json必须在VSCode中安装,才能使用命令行参数执行Sketchup。我收到了与json文件有关的一般错误,但我对json并不熟悉,我一整天都在努力寻找解决办法。
我收到以下错误:
执行任务:&'C:/Program /SketchUp/SketchUp 2016/SketchUp.exe‘-rdebug 'ide port=7000’< 这个时候是出乎意料的。终端进程以退出代码结束:1
与以下tasks.json相关
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Debug SketchUp 2016",
"type": "shell",
"command": "open -a '/Applications/SketchUp 2016/SketchUp.app' --args -rdebug 'ide port=7000'",
"windows": {
"command": "&'C:/Program Files/SketchUp/SketchUp 2016/SketchUp.exe' -rdebug 'ide port=7000'"
}
}
]
}我尝试过各种语法方法,例如使用\和删除&(对于这些方法,我找不到文档)
有人能看到如何修复语法吗?
谢谢亚历克斯
发布于 2019-02-06 16:52:12
你用的是哪个终端?cmd还是Powershell?
我制作了一个小Ruby来帮助我启动SketchUp --处理跨平台的差异:https://github.com/thomthom/skippy
我在这个VSCode项目示例中使用了它:https://github.com/SketchUp/sketchup-extension-vscode-project
https://stackoverflow.com/questions/51223881
复制相似问题