While updating manufacturer part numbers in my custom library, I noticed behavior that seems inconsistent and could possibly be a bug.
I often edit the MPN field in the Manufacturer Attributes section of a component. The workflow is very simple: I select a component, replace the existing MPN with a new one, and press Ctrl+S to save.
The save operation appears to complete successfully. I can see the green progress bar in the lower-right corner indicating that the library has been saved. However, when I navigate to another component and then return to the one I just edited, the old MPN is sometimes still present.
At first I thought the save operation had failed randomly, but after repeating the process many times I noticed a pattern. It seems that if I modify the MPN field and immediately press Ctrl+S, the new value is not always committed. On the other hand, if I first click on another field (for example the Manufacturer field) so that the MPN field loses focus, and only then save, the new MPN is stored correctly.
Has anyone else observed this behavior? Is it a known issue, or is there some expected workflow that requires leaving the field before saving?
After correcting all MPN values in my library, I tried to update the components already used in my existing projects.
I used:
Project → Project Library Manager → Update all elements
The update process completes without errors, but the new MPN values are still not visible in the existing project components.
System Information
LibrePCB Version: 2.1.1
Qt Version: 6.11.1 (built against 6.11.1)
Operating System: Linux Mint 22.3 (x86_64)
Runtime: AppImage
Gian Carlo