diff --git a/CHANGELOG.md b/CHANGELOG.md index 5afd3aeb..930a3506 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Can be disabled to use absolute coordinates. (#87) - Board View: flipped output. (#89) - Board View: problems with netnames using spaces. (#90) +- Schematic load: problems with fields containing double quotes. (#98) +- `--list`: problems with layers and fields specific for the project. + (INTI-CMNB/kibot_variants_arduprog#4) ## [0.11.0] - 2021-04-25 diff --git a/kibot/__main__.py b/kibot/__main__.py index e3cd7bad..6e0a4609 100644 --- a/kibot/__main__.py +++ b/kibot/__main__.py @@ -90,7 +90,9 @@ def list_pre_and_outs(logger, outputs): if len(outputs): logger.info('Outputs:') for o in outputs: - config_output(o, dry=True) + # Note: we can't do a `dry` config because some layer and field names can be validated only if we + # load the schematic and the PCB. + config_output(o, dry=False) logger.info('- '+str(o)) @@ -341,15 +343,16 @@ def main(): with open(plot_config) as cf_file: outputs = cr.read(cf_file) + # Determine the SCH file + GS.set_sch(solve_schematic(args.schematic, args.board_file, plot_config)) + # Determine the PCB file + GS.set_pcb(solve_board_file(GS.sch_file, args.board_file)) + # Is just list the available targets? if args.list: list_pre_and_outs(logger, outputs) sys.exit(0) - # Determine the SCH file - GS.set_sch(solve_schematic(args.schematic, args.board_file, plot_config)) - # Determine the PCB file - GS.set_pcb(solve_board_file(GS.sch_file, args.board_file)) if args.makefile: # Only create a makefile generate_makefile(args.makefile, plot_config, outputs)