usebruno/bruno · error · Error
Collection is already in YML format
Error message
Collection is already in YML format
What it means
Error "Collection is already in YML format" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-electron/src/ipc/yml-migration.js:231
try {
if (fs.existsSync(ymlFile)) {
fs.unlinkSync(ymlFile);
}
} catch (_) {}
}
if (backupDir && !keepBackup) {
await fsExtra.remove(backupDir).catch(() => {});
}
throw error;
}
};
const migrateCollectionToYml = async ({ mainWindow, watcher, collectionPathname, collectionUid }) => {
const brunoJsonPath = path.join(collectionPathname, 'bruno.json');
let brunoConfig;
try {
if (getCollectionFormat(collectionPathname) === 'yml') {
throw new Error('Collection is already in YML format');
}
brunoConfig = JSON.parse(fs.readFileSync(brunoJsonPath, 'utf8'));
} catch (error) {
try {
await openCollection(mainWindow, watcher, collectionPathname);
} catch (_) { }
throw error;
}
// Unmount before touching disk: detach the watcher (for a file-cache v2 mount this also
// stops the cache write-through riding on it, so migration's own writes/deletes aren't
// double-processed as live changes) and clear every cache keyed by the deterministic
// path-derived uid, so the post-migration reopen loads genuinely fresh state.
if (watcher) {
watcher.removeWatcher(collectionPathname, mainWindow, collectionUid);
}
try {
await unmount(collectionUid);
} catch (_) {}View on GitHub (pinned to 9bdd81c7bd)
Solutions
- No action needed; the collection already uses YML format.
When it happens
Trigger: Thrown at packages/bruno-electron/src/ipc/yml-migration.js:231 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13).
Data as JSON: /api/errors/d6cb1c6dd07cdf70.
Report an issue: GitHub.