Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

Kicad, httplib not creating correct library link when a component is placed

Open emilw5 opened this issue 9 months ago • 1 comments

Describe the bug When placing a symbol from a httplib, the library link is incorrect. This causes the ERC to throw an error that it could not find a symbol with the current symbol link. When the tools "edit symbol library links" is used, it creates a correct symbol link and thus no ERC error.

To Reproduce Steps to reproduce the behavior:

  1. In schematic editor, open "Symbol library browser" and select a symbol. Image

  2. Place the symbol in the schematic and run an ERC. Image

  3. Click "Tools" -> "Edit symbol library links" and choose the same symbol as in step 1. Image

  4. The library link is now correct and the ERC will not report this error anymore. Image

Expected behavior When placing a component for the first time, I expect it to create a correct library link and thus eliminating a need to recreate the library link.

Server Side

  • Part-DB Version: 1.16.1
  • PHP Version: 8.3.17
  • Database Server SQLite

Desktop (please complete the following information):

  • OS: [e.g. Windows 11]
  • Browser Chrome

emilw5 avatar Apr 22 '25 05:04 emilw5

I have tried it also the way you described (steps 1 & 2) and when I have a look at the Properties it seems like the last letter of the value in the field Library Link is missing.

I have added the same part via Place Symbol and the Library link is: part-db:DRV8833PWPR when I add the part via Symbol Library Browser the Library link is: part-db:DRV8833PWP

Without looking into it on the Part-DB side, I would assume this is a KiCad error not a Part-DB error? Maybe you should post this on the KiCad Gitlab? Ah, I found your Bugreport there: https://gitlab.com/kicad/code/kicad/-/issues/20407

Please close this ticket here if it's a KiCad problem and not a Part-DB problem. And if there is a solution please add a link to the solution.

mkne avatar May 14 '25 16:05 mkne