Skip to content

Parser Fails on Empty G04* command #198

@lookme2

Description

@lookme2

Describe the bug
pyparsing.exceptions.ParseException: Expected End of file, found 'G04' (at char 74), (line:2, col:1)

A clear and concise description of what the bug is.
I have a file from Altium that has an empty G04 command and parser errors out on this command

To Reproduce
snippet of code

G04 #@! TF.GenerationSoftware,Altium Limited,Altium Designer,23.4.1 (23)*
G04*
G04 Layer_Physical_Order=1*
G04 Layer_Color=255*
%FSLAX44Y44*%
%MOMM*%
G71*

Expected behavior
I would think you would just ignore this.

Desktop (please complete the following information):

  • OS: Mac/Linux
  • Python version: 3.11
  • PyGerber version: 2.3.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions