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

[BUG] global dir value is not used for ERC/DRC outputs #292

Closed
cdwilson opened this issue Sep 15, 2022 · 4 comments
Closed

[BUG] global dir value is not used for ERC/DRC outputs #292

cdwilson opened this issue Sep 15, 2022 · 4 comments
Assignees

Comments

@cdwilson
Copy link

Describe the bug
The documentation for the default dir global option says:

The default dir value for any output is ..

I assumed that the *drc.txt & *erc.txt outputs would use this value, i.e. the path to these reports would be:

OUT_DIR / dir / *drc.txt

However, it appears that these outputs ignore the default dir global option and are output in:

OUT_DIR / *drc.txt

Expected behavior
I expected the ERC/DRC reports to be output in the dir path.

Environment (please complete the following information):
Where are you running KiBot:

  • Using a docker image? kicad_auto:dev_k6
@set-soft
Copy link
Member

Technically not a bug, preflights aren't outputs (mushrooms aren't plants ;-)
But It sounds logic.
Now this is the default, but can be disabled.

@cdwilson
Copy link
Author

@set-soft I'm now getting the following errors when running the ERC/DRC:

ERROR:PCB_fabrication/ModST_Mouse_v1_100037_rev_B (kibot.pre_run_erc - pre_run_erc.py:45)
- Running the ERC
ERROR:PCB_fabrication/ModST_Mouse_v1_100037_rev_B (kibot.pre_run_drc - pre_run_drc.py:44)
- Running the DRC

Debug output isn't giving me anything more helpful:

ERROR:PCB_fabrication/ModST_Mouse_v1_100037_rev_B (kibot.pre_run_erc - pre_run_erc.py:45)
DEBUG:ERC report: /workdir/kibot/_build/PCB_fabrication/ModST_Mouse_v1_100037_rev_B/ModST_Mouse_v1_100037_rev_B_erc.txt (kibot.pre_run_erc - pre_run_erc.py:56)
- Running the ERC
DEBUG:Executing: /usr/bin/eeschema_do -r -vvv run_erc -o /workdir/kibot/_build/PCB_fabrication/ModST_Mouse_v1_100037_rev_B/ModST_Mouse_v1_100037_rev_B_erc.txt /workdir/ModST_Mouse.kicad_sch /workdir/kibot/_build (kibot - kiplot.py:163)
DEBUG:Command line: /usr/bin/eeschema_do -r -vvv run_erc -o /workdir/kibot/_build/PCB_fabrication/ModST_Mouse_v1_100037_rev_B/ModST_Mouse_v1_100037_rev_B_erc.txt /workdir/ModST_Mouse.kicad_sch /workdir/kibot/_build (kibot - kiplot.py:165)

The ERC/DRC seems to be running correctly (I see the reports in the output dir) and there are zero violations.

Any idea what might be causing this?

@cdwilson
Copy link
Author

Oh, looks like it might be this:

logger.error(GS.global_dir)

logger.error(GS.global_dir)

@set-soft
Copy link
Member

Oops! I forgot to remove them. Now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants