Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List index out of range when parsing a footprint with empty 'attr' field #2

Closed
mvnmgrx opened this issue Apr 1, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@mvnmgrx
Copy link
Owner

mvnmgrx commented Apr 1, 2022

When parsing this footprint, the empty attr token triggers a exception:

(footprint "Battery_CR1225"
  (layer "F.Cu")
  (tedit 5B93F51B)
  (descr "CR1225 battery")
  (tags "battery CR1225 coin cell")
  (attr)
  (fp_text reference "REF**" (at 0 -1) (layer "F.SilkS") hide
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_text value "Battery_CR1225" (at 0 0.5) (layer "F.Fab")
    (effects (font (size 1 1) (thickness 0.15)))
  )
  (fp_circle (center 0 0) (end 6.25 0) (layer "F.Fab") (width 0.1))
  (model "${KICAD6_3DMODEL_DIR}/Battery.3dshapes/Battery_CR1225.wrl"
    (offset (xyz 0 0 0))
    (scale (xyz 1 1 1))
    (rotate (xyz 0 0 0))
  )
)

image

@mvnmgrx mvnmgrx closed this as completed in 9e5e5a4 Apr 1, 2022
@mvnmgrx mvnmgrx reopened this Apr 1, 2022
@mvnmgrx mvnmgrx added the bug Something isn't working label Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant