-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add board stats, checkbox progress bars
Fixes #77
- Loading branch information
Showing
4 changed files
with
173 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to break the component list output on my machine. The previous committed version works perfectly but this version produces an empty bom. Safari/macOS
a58b405 CURRENT
872cdf4 PREVIOUS
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you copy any errors from JS console? Or share your project?
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeError: undefined is not an object (evaluating 'pcbdata.bom.skipped.includes')
2271 if (pcbdata.bom.skipped.includes(i)) continue;
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, that's strange. I will have to see the generated html or the pcb to debug.
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Project archive (zipped) and generated html (zipped) fyi. I don't think that the project is anything particularly odd - it is just a WeMos shield. The footprints are standard - the only difference is that there are some extra fields
Description
Characteristics
Package_ID
Placement
Part#
I have simply achieved the whole project from within Kicad - so there are quite a lot of extra directories etc.
PostBox BOM.zip
PostBox.zip
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot repro with your project, I get working output. Btw there is only one extra field Part#, did you attach wrong version of your project?
Looking at bom from your zip it is very weird. It's like the pcbdata portion was generated with older version while the rest of the page (code, html, etc) is from new one. Like I said, I can't get the same result.
If this reproduces for you can you tell me exact settings you use to generate the bom?
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One potential reason for this issue could be a unclean update to new version of the plugin. Some files were moved around since v2.1, if you just overwrote the folder old files could stay in place and mess up plugin logic. Make sure you delete everything (except config.ini if you want to preserve settings) before dropping in v2.2.
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just rechecked and the other fields are added to eeschema but only the Part# field has any content so the others are suppressed.
I think I must have failed to purge the .pyc file from the plugin directory. When I checked out the new version I think I must have left the .pyc in place. I have symlinked the working directory to the plugin directory to make it easier to update.
I have recloned the repo and it now works. Since I could see the newly added table stuff in the generated webpage, I thought I must have updated correctly but there was an issue with the code. Sorry for the noise.
I must have a look at git clean options to see if I can automate .pyc purging.
a58b405
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git clean -fdx
will remove ignored .pyc files and anything else untracked. But it will remove config.ini too. If you want to preserve that it might be easier to justfind . -name '*.pyc' -exec rm {} +