Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close open serial monitor before uploading #49

Closed
ikorman opened this issue Nov 9, 2017 · 11 comments
Closed

Close open serial monitor before uploading #49

ikorman opened this issue Nov 9, 2017 · 11 comments

Comments

@ikorman
Copy link

ikorman commented Nov 9, 2017

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

@ivankravets ivankravets changed the title Feature: close open serial monitor before uploading Close open serial monitor before uploading Nov 9, 2017
@ivankravets
Copy link
Member

We know about this issue and depend on microsoft/vscode#29855

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

@ikorman
Copy link
Author

ikorman commented Nov 9, 2017

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

@kristsm
Copy link

kristsm commented Dec 16, 2017

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

@philomatic
Copy link

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

@ivankravets ivankravets removed this from the 1.0.0 milestone Jun 20, 2018
@FeyverkSoft
Copy link

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 Close open serial monitor before uploading #49 ( Close open serial monitor before uploading #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

@ivankravets
Copy link
Member

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?

@ivankravets ivankravets reopened this Jul 24, 2018
@FeyverkSoft
Copy link

FeyverkSoft commented Jul 24, 2018

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

@ivankravets
Copy link
Member

Ha-ha. Is it a joke from Microsoft? See

"ms-vscode.cpptools"

We don’t depend on Arduino extension or Arduino IDE.

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

@FeyverkSoft
Copy link

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.

@ivankravets
Copy link
Member

Reported to microsoft/vscode#55050

@thomas725
Copy link

I have the opposite problem: I'm using ArduinoOTA to upload firmware, and I'm annoyed that pressing the upload button automatically closes my serial monitor (which of course would make sense if I where uploading the firmware via serial connection, but it should check that's the case before closing the serial monitor)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants