-
Notifications
You must be signed in to change notification settings - Fork 236
Serial Monitor not updating in real time #1396
Comments
I have the same issue: OS = MacOS Catalina 10.15.7 Arduino extension = v0.4.8 I tried investigating about this. Arduino ide: VS Code: Its not a wrong baud rate settings, i ve read almost everything i could read about this issue... i m writing here because i ended up all my options. |
I've been able to repro this and am working on a fix. |
We just released a new version, 0.4.9, that contains a fix for this issue. Let us know if any more issues come up! |
Thank you @gcampbell-msft for your help, but i do have some problem still. https://www.dropbox.com/s/yyxzlo0y9ya7m64/Schermata%202022-01-13%20alle%2010.47.45.png?dl=0 |
@siideffect Same problem here. I opened bug #1418 to track this. |
@siideffect Could you provide some example code of what you're running and also what board you are using? I'm not currently able to repro this issue. |
Hi @gcampbell-msft , it was a simple gpio reading on a touch pin of a esp32 board, in the loop() function. |
I'm running a simple sketch that emits a few lines about once or twice a second. the serial monitor seems to have real trouble showing these lines as they happen. there's a delay of upto a second... I'd really rather this thing show me data as soon as it comes in, instead of this apparent "polling". if you have to have a polling interval and the default has to be largeish, please make it configurable because I'd wanna dial that down to something more responsive. |
Yes, I can confirm that in version 4.1.2 problem still persists and it makes Arduino console almost impossible to use efficiently. Any plans of solving the problem? Cheers |
@dumski @crackwitz, I just attempted to repro this issue with my own "Hello, World" program, and I wasn't able to repro. Could you possibly confirm what OS you all are on, what board, baud rate, etc? In the meantime, we have a standalone Serial Monitor in Preview available now, if you want to try that out! https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-serial-monitor&ssr=false#overview. |
Windows 10, random arduino nano, 115200. it's got nothing to do with that because those things work perfectly fine. Putty has no issues displaying the data instantly. regular Arduino also has no issues (well I can tell they're polling but they do it fast enough to be tolerable). if this isn't an issue of polling when one shouldn't, then someone must have messed up some buffer handling. since I got to use the serial monitor of esp-idf (for esp32 without arduino), my expectations were raised considerably. I expect something close to a proper terminal. the entry box presented in that standalone extension is at least comparable to regular arduino. I'm gonna check that extra extension out... edit ok, it fails to scroll along with the feed (once I select something or scroll), and I can see lines being received in pieces of 32 bytes at a time. when I've got one line per second that is ~70 bytes long, and this thing displays half of that, makes a noticeable pause, then displays the rest of the line... you can probably imagine what I could say about that. |
@crackwitz I'll look into the buffering on the new extension, feel free to post an issue about this on the vscode-serial-monitor issues page! As for the failing to scroll along, there is an auto scrolling button present edit Also, to make sure you have the most up-to-date version, you can switch to the pre-release version as well. |
Ah, so that's what that does! It wouldn't give me a tooltip and I speculated that it means "line wrap". I'll open an issue. |
@crackwitz Yes, unfortunately there's a bug that wouldn't show tooltips. It's been fixed and if you switch to the Pre-release version tooltips are restored, but we haven't done an official release of those fixes just yet. |
here's a little screen capture showing this extension at v0.4.12: You'll notice the client-side timestamps keep up but the lines aren't presented properly. There is an apparent 500 ms timeout involved that causes the rest of the console buffer to show, or not show. for comparison, three other methods: microsoft/vscode-serial-monitor#23 |
OS: Win10
Versions: Arduino IDE: 1.8.16 || Extension: 0.4.8
Sys info:
VSCode: 1.63.2
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
Bug:
Whenever using the serial monitor with an Uno it never shows the output in real time, instead it only dumps it all after closing the serial monitor. To make it work i have to increase the delay in program to 300+ ms.
Steps:
Log file:
rendererLog.txt
The text was updated successfully, but these errors were encountered: