钛扩展错误处理 "launch":无法在 Visual Studio 代码中找到 运行 任务

titanium-extension Error processing "launch": Unable to find running task in Visual Studio Code

我有一个使用 Titanium appcelerator 开发的应用程序(我知道它已停产,但现在我没有时间用其他语言重新编写该应用程序)使用 Visual Studio 代码钛插件。

最近我能够 运行 我的设备上的应用程序,并将该应用程序启动到 Xcode 组织者。

但是在更新后(我不知道更新了什么),我无法再在我的设备上测试我的应用程序。我收到一条弹出消息:

[titanium-extension] Error processing "launch": Unable to find running task

并且在控制台中出现此错误:

Error running task
Unable to find loaded project for /Users/manuelrodrigues/Documents/Appcelerator_Studio_Workspace/aqua-info, please ensure it is active in the workspace

这是我的 launch.json 文件:

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
    {
        "name": "Launch on Android",
        "type": "titanium",
        "request": "launch",
        "platform": "android"
    },
    {
        "name": "Launch on iOS",
        "type": "titanium",
        "request": "launch",
        "platform": "ios"
    }
]

}

已安装的版本:

节点:v17.7.1 npm:8.5.2 vscode:1.65.2(通用) appcelerator 钛插件:0.14.0 appcelerator 钛 SDK:10.1.1.GA

谁能帮我解决这个错误?我真的不知道那是什么

谢谢

当前不支持节点 17。最大版本为 16(它会记录警告但工作正常)。所以我会降级您的节点,然后使用 sudo npm i -g titanium alloy 重新安装工具链并再次启动 vscode。

您也可以随时使用 CLI ti build -p ios -C foo 并以这种方式进行编译。

快速补充说明:它没有停止,它现在只是一个完整的 open-source 项目,Tidev Inc. 将继续维护这项工作。更多的更新将会到来,所有的模块都将被更新并且它仍然被维护!