{"record":{"id":"412b1f9edd898960","repo":"usebruno/bruno","slug":"collection-collectionpath-does-not-exist","errorCode":null,"errorMessage":"Collection: ${collectionPath} does not exist","messagePattern":"Collection: (.+?) does not exist","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/ipc/collection.js","lineNumber":342,"sourceCode":"      }\n\n      const { size, filesCount } = await getCollectionStats(dirPath);\n      brunoConfig.size = size;\n      brunoConfig.filesCount = filesCount;\n\n      mainWindow.webContents.send('main:collection-opened', dirPath, uid, brunoConfig);\n      ipcMain.emit('main:collection-opened', mainWindow, dirPath, uid, brunoConfig);\n    }\n  );\n\n  // move an external collection into the workspace's directory\n  ipcMain.handle(\n    'renderer:move-collection-to-workspace',\n    async (event, { workspacePath, collectionPath, collectionUid, collectionName }) => {\n      validateWorkspacePath(workspacePath);\n\n      if (!collectionPath || !isDirectory(collectionPath)) {\n        throw new Error(`Collection: ${collectionPath} does not exist`);\n      }\n\n      // resolve a collision-free target folder inside `<workspace>/collections`\n      const collectionsDir = path.join(workspacePath, 'collections');\n      if (!fs.existsSync(collectionsDir)) {\n        await createDirectory(collectionsDir);\n      }\n\n      let folderName = sanitizeName(path.basename(collectionPath));\n      if (fs.existsSync(path.join(collectionsDir, folderName))) {\n        const uniqueName = await findUniqueFolderName(folderName, collectionsDir);\n        folderName = sanitizeName(uniqueName);\n      }\n      const newPath = path.join(collectionsDir, folderName);\n\n      if (path.normalize(collectionPath) === path.normalize(newPath)) {\n        throw new Error('Collection is already inside the workspace');\n      }","sourceCodeStart":324,"sourceCodeEnd":360,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/ipc/collection.js#L324-L360","documentation":"Error \"Collection: ${collectionPath} does not exist\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/ipc/collection.js:342 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the collection path exists and contains bruno.json or opencollection.yml.","Fix the path and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}