Closed
Description
Describe the problem
🐛 The Arduino IDE's Serial Monitor and Serial Plotter features are non-functional.
To reproduce
Equipment
- Any Arduino board
Steps
- Connect an Arduino board to your computer.
- Select the board and port from the Arduino IDE menus.
- Upload a sketch that will demonstrate serial input and output capabilities are working:
unsigned long previousMillis; void setup() { Serial.begin(9600); } void loop() { if (Serial.available() > 0) { while (Serial.available() > 0) { Serial.write(Serial.read()); delay(10); } } else if (millis() - previousMillis >= 1000) { previousMillis = millis(); Serial.println("hello"); } }
- Open the "Serial Monitor" view.
🐛 There is no baud rate menu.
🐛 The expected output is not printed. - Type some text in the "Message ..." field.
- Press Ctrl+Enter.
🐛 The expected reaction to the message does not occur. - Select Tools > Serial Plotter from the Arduino IDE menus.
🐛 The Serial Plotter window does not open.
Expected behavior
Standard functionality from Serial Monitor and Serial Plotter.
Arduino IDE version
2.0.0-rc8-snapshot-7d96153
Operating system
Windows, Linux
Operating system version
Windows 10, Ubuntu 20.04
Additional context
I bisected the bug to a36524e (does not occur when using the build for 1073c3f).
The following is printed to the logs the first time Serial Monitor or Serial Plotter is opened:
root INFO starting monitor
root ERROR Request startMonitor failed with error: Cannot read properties of undefined (reading 'client')
root ERROR Uncaught Exception:
root ERROR TypeError: Cannot read properties of undefined (reading 'client')
at MonitorService.get coreClient [as coreClient] (C:\ide 2\tip\68-7d96153\resources\app\node_modules\arduino-ide-extension\lib\node\core-client-provider.js:291:40)
at MonitorService.portMonitorSettings (C:\ide 2\tip\68-7d96153\resources\app\node_modules\arduino-ide-extension\lib\node\monitor-service.js:336:39)
at new MonitorService (C:\ide 2\tip\68-7d96153\resources\app\node_modules\arduino-ide-extension\lib\node\monitor-service.js:58:14)
at MonitorManager.monitorServiceFactory (C:\ide 2\tip\68-7d96153\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-ide-backend-module.js:137:16)
at MonitorManager.createMonitor (C:\ide 2\tip\68-7d96153\resources\app\node_modules\arduino-ide-extension\lib\node\monitor-manager.js:241:30)
at MonitorManager.startMonitor (C:\ide 2\tip\68-7d96153\resources\app\node_modules\arduino-ide-extension\lib\node\monitor-manager.js:77:28)
at MonitorManagerProxyImpl.startMonitor (C:\ide 2\tip\68-7d96153\resources\app\node_modules\arduino-ide-extension\lib\node\monitor-manager-proxy-impl.js:45:29)
at JsonRpcProxyFactory.onRequest (C:\ide 2\tip\68-7d96153\resources\app\node_modules\@theia\core\lib\common\messaging\proxy-factory.js:127:49)
at C:\ide 2\tip\68-7d96153\resources\app\node_modules\@theia\core\lib\common\messaging\proxy-factory.js:106:54
at handleRequest (C:\ide 2\tip\68-7d96153\resources\app\node_modules\vscode-jsonrpc\lib\main.js:376:27)
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details