lean on codemirror and unify error reporting