]> gitweb.factorcode.org Git - factor.git/commit
vocabs.loader: Delete errors after using list is fixed with restarts.
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 6 Jan 2022 03:53:44 +0000 (21:53 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 6 Jan 2022 03:55:54 +0000 (21:55 -0600)
commit7b7b90d9e7a639baf1cf3e12151ccd576fece66b
tree1316735b64f74505f9be55cd41a00cf4eaf5e0e1
parentd7382e5bae71ed29998da9af9418f18d31e581ed
vocabs.loader: Delete errors after using list is fixed with restarts.

If a vocabulary needs restarts to fix its using list and that
vocabulary is used from another vocabulary that then recompiles,
the restarts were left in the `errorlist` hash even if they were
fixed. This caused that error to be again thrown and parsing to
resume at the end of the file.

The fix is to remove the errors from the errorlist whenever a
vocabulary finishes loading successfully.

Related to #444.
core/vocabs/loader/loader.factor