{"record":{"id":"8492a11b6f737c57","repo":"usebruno/bruno","slug":"source-environment-not-found","errorCode":null,"errorMessage":"Source environment not found","messagePattern":"Source environment not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-electron/src/ipc/workspace.js","lineNumber":504,"sourceCode":"\n  ipcMain.handle('renderer:rename-workspace-environment', async (event, workspacePath, environmentUid, newName) => {\n    try {\n      return await globalEnvironmentsManager.renameGlobalEnvironment(workspacePath, {\n        environmentUid,\n        name: newName\n      });\n    } catch (error) {\n      throw error;\n    }\n  });\n\n  ipcMain.handle('renderer:copy-workspace-environment', async (event, workspacePath, environmentUid, newName) => {\n    try {\n      const result = await globalEnvironmentsManager.getGlobalEnvironments(workspacePath);\n      const sourceEnv = result.globalEnvironments.find((env) => env.uid === environmentUid);\n\n      if (!sourceEnv) {\n        throw new Error('Source environment not found');\n      }\n\n      // Create new environment with copied variables\n      return await globalEnvironmentsManager.createGlobalEnvironment(workspacePath, {\n        name: newName,\n        variables: sourceEnv.variables || []\n      });\n    } catch (error) {\n      throw error;\n    }\n  });\n\n  ipcMain.handle('renderer:add-collection-to-workspace', async (event, workspacePath, collection) => {\n    try {\n      const normalizedCollection = normalizeCollectionEntry(workspacePath, collection);\n      const updatedCollections = await addCollectionToWorkspace(workspacePath, normalizedCollection);\n\n      const workspaceConfig = readWorkspaceConfig(workspacePath);","sourceCodeStart":486,"sourceCodeEnd":522,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-electron/src/ipc/workspace.js#L486-L522","documentation":"Error \"Source environment not found\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-electron/src/ipc/workspace.js:504 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the source environment name exists in the workspace.","Refresh the environment list 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"}