Ram usage is not displayed even with compilation verbose turned on. Is there some setting I missed or is it an imperfection?
Thanks so much for your report @micahfriesen !
There was a known bug that caused such behavior, which was considered resolved. Following your report, I see that there was a regression after that fix and that even the fix seems to have not been 100% effective.
I have reopened the issue so that the developers can track this bug:
opened 09:51PM - 17 Jun 22 UTC
closed 08:58AM - 01 Jul 22 UTC
conclusion: resolved
status: in progress
topic: code
type: imperfection
topic: CLI
criticality: high
### Describe the problem
🐛 The last lines of compilation output are not shown… in Output panel
### To reproduce
1. Select **File > Preferences...** from the Arduino IDE menus.
1. Uncheck the box next to **Show verbose output during > `☑` compile**.
**ⓘ** The issue occurs with the verbose output as well. This is done only to produce more simple output for the demo.
1. Click the <kbd>**OK**</kbd> button.
1. Select **Tools > Board > Arduino AVR Boards > Arduino Uno** from the Arduino IDE menus.
**ⓘ** The issue is not specific to this board. A board selection is specified only to ensure the output described here in the demo will be consistent with that seen by those who are reproducing it.
1. Select **Sketch > Verify/Compile** from the Arduino IDE menus.
1. Wait for the compilation process to finish.
1. If the issue does not occur, repeat the process from step 5 until it does occur.
🐛 The memory usage output is not shown:
```text
--------------------------
Compilation complete.
```
The output should be:
```text
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
--------------------------
Compilation complete.
```
### Expected behavior
All lines of compilation output
### Arduino IDE version
2.0.0-rc7-snapshot-94ceefd
### Operating system
Windows, Linux
### Operating system version
Windows 10, Ubuntu 20.04
### Additional context
I bisected the issue to https://github.com/arduino/arduino-ide/commit/4c6243176ca5e66635fde4107e217f1b9666eb62 (does not occur when using the build for https://github.com/arduino/arduino-ide/commit/a8047660a6e23fa41bc42457cf27e53bfe5798d8).
---
The number of missing lines varies. This is easier to observe with verbose compilation output enabled. Sometimes the line showing the `avr-size` command that would be expected immediately before the memory usage lines is printed:
```text
[...]
"C:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.elf" "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.hex"
"C:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.elf"
--------------------------
Compilation complete.
```
Other times it is not:
```text
[...]
"C:\\Users\\per\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.elf" "C:\\Users\\per\\AppData\\Local\\Temp\\arduino-sketch-13926962AEE9C72B0EB120253E6668CD/sketch_jun17a.ino.hex"
--------------------------
Compilation complete.
```
More rarely, one or two of the memory usage lines are shown.
---
Originally reported at https://forum.arduino.cc/t/memory-usage-display-after-compile/1003909
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://github.com/arduino/arduino-ide#nightly-builds)
- [X] My report contains all necessary details
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.
Thanks! I will be tracking.
system
Closed
December 25, 2022, 12:47am
4
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.