Skip to content

Add error handling in the pg problem editor#3046

Open
pstaabp wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
pstaabp:pgml-convert-pgeditor
Open

Add error handling in the pg problem editor#3046
pstaabp wants to merge 1 commit into
openwebwork:WeBWorK-2.21from
pstaabp:pgml-convert-pgeditor

Conversation

@pstaabp

@pstaabp pstaabp commented Jul 8, 2026

Copy link
Copy Markdown
Member

This adds error handling for the PGML converter to the PGProblemEditor. This mimics the pg tidy interface and code.

If there is an error in parsing the PG problem--currently only the loadMacros command will throw an error--then the error is shown in the right pane of the PG problem editor. Upon fixing the error and rerunning the "Convert to PGML" in the "Code Maintenance" table, the code is updated and pre-rendered. Note, previously, the code was not rerendered after code conversion.

Also, openwebwork/pg#1425 is needed to test this.

@pstaabp pstaabp force-pushed the pgml-convert-pgeditor branch from 1556e15 to 5659ea7 Compare July 8, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant