pygerber icon indicating copy to clipboard operation
pygerber copied to clipboard

Parser Fails on Empty G04* command

Open lookme2 opened this issue 1 year ago • 0 comments

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

lookme2 avatar May 09 '24 13:05 lookme2