circuitdojo / zephyr-tools

VSCode Tools for Zephyr
Apache License 2.0
20 stars 5 forks source link

no registered task type 'zephyr-tools' #1

Closed hongshui3000 closed 1 year ago

hongshui3000 commented 1 year ago

When performing some tasks, such as serial port monitoring tasks

Zephyr Tools: Serial Monitor

vscode will output an error message image

jaredwolff commented 1 year ago

Hi @hongshui3000

Did you run Zephyr Tools: Setup?

hongshui3000 commented 1 year ago

yes,In fact, when running Zephyr Tools: Setup, the same error.Although an error is reported, it does not seem to affect the use The error output is under the Tasks of OUTPUT. image Seems to be an error generated by these codes below, I'm not sure

        exec = new vscode.ShellExecution(cmd, shellOptions);

        // Task
        task = new vscode.Task(
            { type: "zephyr-tools", command: taskName },
            vscode.TaskScope.Workspace,
            taskName,
            "zephyr-tools",
            exec
        );

        // Start execution
        await TaskManager.push(task, {
            ignoreError: false, lastTask: true, successMessage: "Init complete!",
            callback: done, callbackData: { dest: dest }
        });
jaredwolff commented 1 year ago

Ok. Correct me if I'm wrong. The task is working but that error is coming over the output.

As long as it doesn't affect functionality I'll check it out at some point soon. Thanks for reporting.

hongshui3000 commented 1 year ago

Thanks for open source such a good extension