uPesy / easyeda2kicad.py

Convert any LCSC components (including EasyEDA) to KiCad library
GNU Affero General Public License v3.0
678 stars 67 forks source link

Issue Adding new part to sym library #141

Open OnlineDynamic opened 2 months ago

OnlineDynamic commented 2 months ago

Running latest v0.8 version

If I use this command: easyeda2kicad --full --lcsc_id=C1850276 --output "D:\Documents\Git Repositories\KICAD\LCSC Components\LCSC_lib"

followed by this command to add another part:

easyeda2kicad --full --lcsc_id=C3662799 --output "D:\Documents\Git Repositories\KICAD\LCSC Components\LCSC_lib"

The generated file named "LCSC_lib.kicad_sym" is formatted incorrectly

To fix I have to manually go into file and remove ")" before the newly inserted sysmbol reference

channelsixlabs commented 1 month ago

I am also experiencing this quite consistently. I BELIEVE the issue began for me when I upgraded from KiCad v7 to v8, though I'm not sure if the formatting of the symbol library file has changed in any meaningful way.

zyeborm commented 3 weeks ago

I get this very often as well. An example part that gave this error was C496551. It doesn't happen every time so I wonder if it may be related to specific parts. @OnlineDynamic's fix worked for me as well. I hadn't worked out what exactly was wrong with the files that were being made and I was up to easyeda2kicad_8.kicad_sym on this project alone lol. Thanks so much!

zyeborm commented 3 weeks ago

easyeda2kicad8.txt Figured I should put this in as an example, this is the working file after I removed the ) from before the C496551 part but hopefully it allows replication.

Luro02 commented 2 weeks ago

I could not reproduce this issue with the part C496551, mine was added successfully: image and the file looks good as well easyeda2kicad.txt