Platformio-vscode-ide: Close open serial monitor before uploading

Created on 9 Nov 2017  路  10Comments  路  Source: platformio/platformio-vscode-ide

Here is one issue that annoys me quite a bit: if there is open serial monitor upload fails as given COM port can not be used. As I have terminal always open, I often forget to kill it before uploading the code and end up with error.

It would be very helpful that upload action preforms automatic closing of open serial monitor (should be configurable).

Thx.
Ivan

enhancement

Most helpful comment

But his is how I use it now, I'm pressing those buttons on toolbar, but if the serial monitor is open, upload will fail with message error about COM port not being available, therefore I have to first kill (CTRL+C) serial monitor and then hit upload.

Thx.
Ivan

All 10 comments

We know about this issue and depend on https://github.com/Microsoft/vscode/issues/29855

A temporary solution is to use UPLOAD/SERIAL MONITOR buttons from bottom toolbar. In this case, we have control on the started tasks.

But his is how I use it now, I'm pressing those buttons on toolbar, but if the serial monitor is open, upload will fail with message error about COM port not being available, therefore I have to first kill (CTRL+C) serial monitor and then hit upload.

Thx.
Ivan

Yeah, I have the same issues? Are there any plans to fix this?

Same issue here, some more intelligence on this would be nice!

From Visual Studio Marketplace

Thank you so much for the kind words! :)
We implemented automatic serial port monitor closing/opening in v0.16.0.

  1. Do you use the latest extension version?
  2. Do you use "Toolbar Device Port Monitor" button for starting a new monitor session?
    Please reopen issue #49 ( https://github.com/platformio/platformio-vscode-ide/issues/49 ) if you still have a problem.

1) Version 0.17.3 (2018-07-19) VS code 1.25.1
2) This button? button. Yes. And until I close the connection manually close , i can not upload the firmware. :(
USB TTL Converter FTDI Basic yp-05

Configuring upload protocol... Looking for upload port... Use manually specified: COM3 Uploading .pioenvs\esp12e\firmware.bin error: Failed to open COM3 error: espcomm_open failed error: espcomm_upload_mem failed *** [upload] Error 2

It seems that you have multiple/conflicted extensions for VSCode. Please remove/disable the next extension for PlatformIO Project/Workspace:

  1. Arduino
  2. IoT Utility

Restart VSCode. Does it work now?

1) Arduino
it is not possible to disable/remove, it has become as a dependence on the platformio.
:(
2) IoT Utility not installed.

Ha-ha. Is it a joke from Microsoft? See https://github.com/platformio/platformio-vscode-ide/blob/8d54e66dbc6fd6c29e472eb6792dddb990e02c0c/package.json#L552

We don鈥檛 depend on Arduino extension or Arduino IDE.

Did you install this Arduino extension manually? Or, Microsoft installed it as addition to PlatformIO?

I'm manually installd the Arduino IDE extension, much earlier than PlatformIO extension.
This issues can be closed. I Removed all VS code settings, and installed it clean. Now everything works.
Thx.

Was this page helpful?
0 / 5 - 0 ratings