Skip to content

Fixing Common Errors

Drew Lewis edited this page May 20, 2025 · 4 revisions

error: * PTX:BUG: Exercise component mis-labeled

This usually means that you have placed an <answer> within a <statement>. Unfortunately, this error doesn't tell you where the problem occurs, so it can be hard to find. You can use the following command in the terminal to list all of the places where <answer>s are neither a child of an <activity> or of a <task>:

xpath -e '//answer[not(parent::activity or parent::task)]' source/*/source/*/*.ptx

Clone this wiki locally