Open ToastyStoemp opened 2 years ago
Looks like Kicad 6 introduced some new syntax / options. Since Kicad uses a hand-written parser, it won't be obvious what changes they made that introduced the new schema -- so I would need an example file that raises this error. Would, you be able to share a the file or a link to a file that raises this error? (The smaller the better).
If you're not able to share the whole file, can you open the kicad file in a text editor and copy the relevent section? I can see from the error that the new / invalid syntax is on line 227 of your kicad file, so possibly just the first 227 lines would be sufficient...
Sure no problem, here is a sample project: https://drive.google.com/file/d/194fkAp9rbQRIXtIBTpL2YjYbg2UKKU7W/view?usp=share_link
Hey, running into this error:
Error
```kicad-to-json\src\module-parser.js:15205 throw peg$buildStructuredError( ^ peg$SyntaxError: Expected "at", "attr", "autoplace_cost180", "autoplace_cost90", "clearance", "descr", "fp_arc", "fp_circle", " "solder_mask_margin", "solder_paste_margin", "solder_paste_margin_ratio", "solder_paste_ratio", "tags", "tedit", "thermal_gap" at peg$buildStructuredError (G:\Other computers\Desktop\Keyboard\_Extra\KiCad\Kicad Parser\node_modules\kicad-to-json\src\m at Object.peg$parse [as parse] (G:\Other computers\Desktop\Keyboard\_Extra\KiCad\Kicad Parser\node_modules\kicad-to-json\sr at Object.parse (G:\Other computers\Desktop\Keyboard\_Extra\KiCad\Kicad Parser\node_modules\kicad-to-json\src\parse.js:11:3 at Object.board (G:\Other computers\Desktop\Keyboard\_Extra\KiCad\Kicad Parser\node_modules\kicad-to-json\index.js:19:61) at Object.This is using KiCad 6
would appreciate some help