platformio / platformio-docs

PlatformIO Documentation
https://docs.platformio.org
Apache License 2.0
240 stars 325 forks source link

VSCode custom command question #206

Open dontsovcmc opened 3 years ago

dontsovcmc commented 3 years ago

Can't understand how I can run custom command with VS Code. Try add this to tasks.json, but It doesn't work.

{
  "type": "shell",
  "task": "Monitor 115200",
    "command": "platformio",
    "args": [
        "--baud", "115200",
        "--port", "/dev/cu.wchusbserial1420",
    ],
  "problemMatcher": [
    "$platformio"
  ],
  "label": "PlatformIO: Monitor 115200"
}
Executing task: platformio --baud 115200 --port /dev/cu.wchusbserial1420 <
/bin/bash: platformio: command not found
Не удалось запустить процесс терминала "/bin/bash '-c', 'platformio --baud 115200 --port /dev/cu.wchusbserial1420'" (код выхода: 127).

pio also doesn't work.