【问题标题】:vscode - python task runnervscode - python 任务运行器
【发布时间】:2015-09-23 06:23:17
【问题描述】:

有了 vscode,我想要我自己的 python 任务运行器。

我在 task.json 中创建了自己的任务运行器。但是它没有完成并继续运行。

代码版本 0.4

我唯一的目标是运行一个 python 应用程序并在新的拆分窗口中显示服务器连接。

python app.py

这就是我创建它的方式,但它的错误会让我朝着正确的方向前进

// A task runner for python
// Runs a python program
{
    "version": "0.1.0",

    "command": "python",

    // The command is a shell script
    "isShellCommand": true,

    // Show the output window only if unrecognized errors occur. 
    // "showOutput": "silent",

    // args is the HelloWorld program to compile.
    //"args": ["HelloWorld.ts"],

    // use the standard tsc problem matcher to find compile problems
    // in the output.
    //"problemMatcher": "$tsc"
}

【问题讨论】:

    标签: python visual-studio-code


    【解决方案1】:

    任务运行器当前等待进程完成。只要进程正在运行,我们就会在状态栏中旋转进度条。我们支持“长时间”运行的任务并在积压工作中执行多个任务。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-07-10
      • 2019-12-09
      • 2017-09-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-19
      相关资源
      最近更新 更多