Currently we discard all errors on save, even if syntax check still fails. We need to check syntax again on save and update accordingly.