Open ROBIN-Olivier opened 1 year ago
Changed it to an enhancement as our editor will not catch everything that the compiler rejects.
Hi,
As I already said, The language server is not a language compiler 😊
I agree with that. Our goal is to, of course, not show any false errors for programs that compile, but we cannot show all errors the compiler would find. However, we can only add value if we can make that set of errors we do show in the editor as large as we can. Hence, this would be a valuable enhancement.
The developers I train are delighted that this parsing shows them syntax errors, so they avoid a lot of compilation errors when writing their instructions.
I understand that the parser cannot catch all compilation errors as it depends on the compiler. But are there compilers that accept an empty IF END-IF (#341) or a COPY in column 7 (#340)?
When I code a condition with IF ... END-IF without statement, compilation is KO, but parsing of zOpenEditor is OK: