Ray Kholodovsky - twofold: 1. I tried to do ...

twofold: 1. I tried to do <diode footprint="SMA" (or similar) and that didn't work which leads me to believe that you don't have a ton of native footprints created. Also note I didn't get any type error when I defined a nonexistent footprint. 2. No worries, so I went to rely on the kicad footprint footprint="kicad:Diode_SMD/D_SMA" which is sometimes a very verbose name and requires me to have reference material open (bonus points for on brand?) How cursed would it be to ship the contents of your kicad viewer (mod cache?) as types with tscircuit for autocomplete and sanity checking? if one defines something that's not in the list, it's probably not a valid kicad footprint and can be caught earlier.
No description
19 Replies
Seve
Seve2mo ago
Its a bit of a tricky issue because our footprints have so many variants, and there’s a lot of kicad models, so im not sure we can do it all in TS without a special technique where we generate a declaration file You should have autocomplete on all kicad names tho, is that not working
Ray Kholodovsky
Ray KholodovskyOP2mo ago
hmmm, I haven't seen any autocomplete on that, and also not for a lot of other "values" only types. Not sure if my vscode is overwhelmed or something.
Seve
Seve2mo ago
Hmm
Ray Kholodovsky
Ray KholodovskyOP2mo ago
oh. sorry. this is the vscode quirk where the suggestions only show up when you start typing with the quotation mark, if you go to edit inside the quote it tends not to suggest.
No description
Ray Kholodovsky
Ray KholodovskyOP2mo ago
so there is in fact functioning autocomplete 🎉
Seve
Seve2mo ago
nice!!!
Seve
Seve2mo ago
btw sma is supposed to be supported
No description
Seve
Seve2mo ago
the 3d model isn't though
Ray Kholodovsky
Ray KholodovskyOP2mo ago
lowercase works, uppercase does not work
Ray Kholodovsky
Ray KholodovskyOP2mo ago
No description
Ray Kholodovsky
Ray KholodovskyOP2mo ago
I do like the automatic kicad suggestions when you don't have something.
No description
Seve
Seve2mo ago
ah yea that's a bug i don't think there's any time where it should be case sensitive
Ray Kholodovsky
Ray KholodovskyOP2mo ago
I confirm sma, smb, smc works in lower case but not uppercase. SOD-123, SOD-323, SOD-523 and so on are not natively supported but kicad has you covered 🙂 agree, unaware of any case meaning differences there
Seve
Seve2mo ago
they might be with sod_123 or sod123, we are supposed to do some automatic syntax translation but it's far from perfect
Ray Kholodovsky
Ray KholodovskyOP2mo ago
smb and smc native also without 3d model sod123 , sod323 , sod523 do not show up in suggestions but do output something on the pcb, I'm not sure if they are correct or not, suggest setting up a test to compare them to the kicad equivalents
Seve
Seve2mo ago
yea the autocomplete on our internal components is extremely incomplete
Ray Kholodovsky
Ray KholodovskyOP2mo ago
wonderful. these are bugs to note, not problems for me now, btw.
Seve
Seve2mo ago
yea these are the easy bugs for newbies to pick up

Did you find this page helpful?