Reference manual

Objects page

Parse errors

Symptom: the Diagnostics expander on the Solution page lists Compilation unit errors, and the Compilation units tab of the Diagnostics page lists the files or objects that failed.

Cause: Prism for AL could not parse some compilation units. Usually the code does not compile, or the files changed after Prism for AL loaded them. A workspace that compiles with the AL compiler in Visual Studio Code should parse in Prism for AL.

Fix:

  1. In Visual Studio Code, run AL: Package to compile the workspace. If it fails, fix the errors it reports.
  2. Select the Reload button in the Workspace window to load the workspace again. Do this after any change to the workspace files in Visual Studio Code or another editor.
  3. If the errors remain, open the Compilation units tab, open the context menu of the error and select Copy diagnostic info to clipboard. Send it to us through the Feedback window or by email to feedback@stati-cal.com.