matthewlai / JLCKicadTools

Tool for using JLCPCB assembly service with KiCad
GNU General Public License v3.0
346 stars 62 forks source link

Throw error if multiple files are present #90

Closed Shackmeister closed 11 months ago

Shackmeister commented 2 years ago

Hi All I have spent a good half hour debugging why one component was missing in the JLC bom. Turns out I had a seperate export folder, which also had a valid .pos file. Could we perhaps throw an error if there are multiple XML, pos files etc? alternatively use the latest one.

These file inconsistencies can be quite dangerous IMO

Thanks for a great tool!

matthewlai commented 2 years ago

Thanks. Yes, I agree that's not desirable.

I've made the changes in the check_single_file_test branch, but don't have easy access to a computer to test it now. Would you mind testing it for me? You should be able to install it with something like - pip install git+https://github.com/matthewlai/JLCKicadTools@check_single_file_test

mikebwilliams commented 2 years ago

I got some errors:

matthewlai commented 11 months ago

Sorry I missed this earlier. Thanks for the testing @mikebwilliams . Merged now.