Closed ZLLentz closed 1 year ago
Looks like single quotes were used in a DESC inside a single quote pragma
Checking ./LCLSGeneral/LCLSGeneral/DUTs/DUT_EPS.TcDUT ERROR:pytmc.bin.pragmalint:Linter error: Unhandled exception: Found invalid pragma line(s): ./LCLSGeneral/LCLSGeneral/DUTs/DUT_EPS.TcDUT (TcPlcObject) ---------------------------------------------------------- - DUT_EPS: Declaration - 3 pragmas | pv: sFlagDesc | io: i | field: DESC of nFlag variable, using ' --> | ' seperated list. --> | ./LCLSGeneral/LCLSGeneral/DUTs/DUT_EPS.TcDUT:line 12: {attribute 'pytmc' := ' pv: sFlagDesc io: i field: DESC of nFlag variable, using ';' seperated list. '} ERROR:pytmc.bin.pragmalint:Unhandled exception (may be a pytmc bug) Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/pytmc/bin/pragmalint.py", line 253, in lint_source lint_pragma(pragma) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/pytmc/bin/pragmalint.py", line 131, in lint_pragma pragmas.split_pytmc_pragma(pragma_setting) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/pytmc/pragmas.py", line 95, in split_pytmc_pragma raise ValueError(f"Found invalid pragma line(s):\n{invalid_lines}") ValueError: Found invalid pragma line(s): | pv: sFlagDesc | io: i | field: DESC of nFlag variable, using ' --> | ' seperated list. --> | INFO:pytmc.bin.pragmalint:Total pragmas found: 3 Total linter errors: 1 Pragma lint failed. Setting error code.
Looks like single quotes were used in a DESC inside a single quote pragma