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.
19 Replies
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
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.
Hmm
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.

so there is in fact functioning autocomplete 🎉
nice!!!
btw sma is supposed to be supported

the 3d model isn't though
lowercase works, uppercase does not work

I do like the automatic kicad suggestions when you don't have something.

ah yea that's a bug
i don't think there's any time where it should be case sensitive
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
they might be with sod_123 or sod123, we are supposed to do some automatic syntax translation but it's far from perfect
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
yea the autocomplete on our internal components is extremely incomplete
wonderful. these are bugs to note, not problems for me now, btw.
yea these are the easy bugs for newbies to pick up