{"action":"created","issue":{"url":"https://api.github.com/repos/mattsawyer77/atom-perforce/issues/32","repository_url":"https://api.github.com/repos/mattsawyer77/atom-perforce","labels_url":"https://api.github.com/repos/mattsawyer77/atom-perforce/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/mattsawyer77/atom-perforce/issues/32/comments","events_url":"https://api.github.com/repos/mattsawyer77/atom-perforce/issues/32/events","html_url":"https://github.com/mattsawyer77/atom-perforce/issues/32","id":115939231,"number":32,"title":"Failed to activate the atom-perforce package","user":{"login":"unional","id":3254987,"avatar_url":"https://avatars.githubusercontent.com/u/3254987?v=3","gravatar_id":"","url":"https://api.github.com/users/unional","html_url":"https://github.com/unional","followers_url":"https://api.github.com/users/unional/followers","following_url":"https://api.github.com/users/unional/following{/other_user}","gists_url":"https://api.github.com/users/unional/gists{/gist_id}","starred_url":"https://api.github.com/users/unional/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unional/subscriptions","organizations_url":"https://api.github.com/users/unional/orgs","repos_url":"https://api.github.com/users/unional/repos","events_url":"https://api.github.com/users/unional/events{/privacy}","received_events_url":"https://api.github.com/users/unional/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mattsawyer77/atom-perforce/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"mattsawyer77","id":236582,"avatar_url":"https://avatars.githubusercontent.com/u/236582?v=3","gravatar_id":"","url":"https://api.github.com/users/mattsawyer77","html_url":"https://github.com/mattsawyer77","followers_url":"https://api.github.com/users/mattsawyer77/followers","following_url":"https://api.github.com/users/mattsawyer77/following{/other_user}","gists_url":"https://api.github.com/users/mattsawyer77/gists{/gist_id}","starred_url":"https://api.github.com/users/mattsawyer77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattsawyer77/subscriptions","organizations_url":"https://api.github.com/users/mattsawyer77/orgs","repos_url":"https://api.github.com/users/mattsawyer77/repos","events_url":"https://api.github.com/users/mattsawyer77/events{/privacy}","received_events_url":"https://api.github.com/users/mattsawyer77/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-09T18:45:51Z","updated_at":"2016-04-13T20:44:12Z","closed_at":"2015-11-09T19:06:20Z","body":"[Enter steps to reproduce below:]\r\n\r\n1. enable atom-perforce at a folder that is not under p4\r\n\r\n\r\n**Atom Version**: 1.1.0\r\n**System**: Microsoft Windows Server 2012 R2 Standard\r\n**Thrown From**: [atom-perforce](https://github.com/mattsawyer77/atom-perforce) package, v1.6.0\r\n\r\n\r\n### Stack Trace\r\n\r\nFailed to activate the atom-perforce package\r\n\r\n```\r\nAt Cannot read property 'reduce' of undefined\r\n\r\nTypeError: Cannot read property 'reduce' of undefined\r\n  at Object.extractVarsFromEnvironment (C:\\Users\\hwong\\.atom\\packages\\atom-perforce\\lib\\environment.js:68:27)\r\n  at Object.setupEnvironment (C:\\Users\\hwong\\.atom\\packages\\atom-perforce\\lib\\atom-perforce.js:127:40)\r\n  at execP4Command (C:\\Users\\hwong\\.atom\\packages\\atom-perforce\\lib\\atom-perforce.js:27:64)\r\n  at Object.getChanges (C:\\Users\\hwong\\.atom\\packages\\atom-perforce\\lib\\atom-perforce.js:432:13)\r\n  at C:\\Users\\hwong\\.atom\\packages\\atom-perforce\\main.js:93:26\r\n  at Workspace.module.exports.Workspace.observeTextEditors (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\workspace.js:267:9)\r\n  at setupObservers (C:\\Users\\hwong\\.atom\\packages\\atom-perforce\\main.js:67:34)\r\n  at Object.activate (C:\\Users\\hwong\\.atom\\packages\\atom-perforce\\main.js:185:17)\r\n  at Package.module.exports.Package.activateNow (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package.js:232:19)\r\n  at C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package.js:212:32\r\n  at Package.module.exports.Package.measure (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package.js:153:15)\r\n  at C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package.js:205:26\r\n  at Package.module.exports.Package.activate (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package.js:201:34)\r\n  at PackageManager.module.exports.PackageManager.activatePackage (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package-manager.js:474:21)\r\n  at C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package-manager.js:310:19\r\n  at C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\config.js:568:20\r\n  at Emitter.module.exports.Emitter.emit (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\node_modules\\event-kit\\lib\\emitter.js:86:11)\r\n  at Config.module.exports.Config.emitChangeEvent (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\config.js:753:29)\r\n  at Config.module.exports.Config.setRawValue (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\config.js:545:19)\r\n  at Config.module.exports.Config.set (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\config.js:215:14)\r\n  at Config.module.exports.Config.removeAtKeyPath (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\config.js:332:12)\r\n  at Package.module.exports.Package.enable (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package.js:138:26)\r\n  at PackageManager.module.exports.PackageManager.enablePackage (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\src\\package-manager.js:139:14)\r\n  at HTMLButtonElement.<anonymous> (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\node_modules\\settings-view\\lib\\package-card.js:314:27)\r\n  at HTMLButtonElement.jQuery.event.dispatch (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\node_modules\\jquery\\dist\\jquery.js:4435:9)\r\n  at HTMLButtonElement.elemData.handle (C:\\Users\\hwong\\AppData\\Local\\atom\\app-1.1.0\\resources\\app.asar\\node_modules\\jquery\\dist\\jquery.js:4121:28)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -1:43 settings-view:open (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"packagesWithKeymapsDisabled\": [\r\n      \"preview-plus\"\r\n    ],\r\n    \"disabledPackages\": [\r\n      \"preview-plus\",\r\n      \"atom-html-preview\",\r\n      \"atom-ternjs\",\r\n      \"atom-trello\",\r\n      \"browser-plus\",\r\n      \"compare-files\",\r\n      \"emmet\",\r\n      \"git-plus\",\r\n      \"minimap-find-and-replace\",\r\n      \".bin\",\r\n      \"linter-csslint\",\r\n      \"linter-eslint\",\r\n      \"navigate\",\r\n      \"php-server\",\r\n      \"pigments\",\r\n      \"autosave\",\r\n      \"atom-terminal\"\r\n    ],\r\n    \"themes\": [\r\n      \"atom-material-ui\",\r\n      \"atom-material-syntax\"\r\n    ]\r\n  },\r\n  \"atom-perforce\": {\r\n    \"autoAdd\": true,\r\n    \"autoEdit\": true,\r\n    \"autoRevert\": true\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-material-syntax, v0.2.4\r\natom-material-ui, v0.7.1\r\natom-perforce, v1.6.0\r\natom-typescript, v7.7.2\r\nauto-indent, v0.5.0\r\ndocblockr, v0.7.3\r\nfile-icons, v1.6.11\r\nhighlight-selected, v0.10.1\r\nlinter, v1.10.0\r\nlinter-tslint, v0.4.2\r\nminimap, v4.16.0\r\nmocha, v0.0.7\r\nproject-manager, v2.6.5\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mattsawyer77/atom-perforce/issues/comments/209640130","html_url":"https://github.com/mattsawyer77/atom-perforce/issues/32#issuecomment-209640130","issue_url":"https://api.github.com/repos/mattsawyer77/atom-perforce/issues/32","id":209640130,"user":{"login":"yordis","id":4237280,"avatar_url":"https://avatars.githubusercontent.com/u/4237280?v=3","gravatar_id":"","url":"https://api.github.com/users/yordis","html_url":"https://github.com/yordis","followers_url":"https://api.github.com/users/yordis/followers","following_url":"https://api.github.com/users/yordis/following{/other_user}","gists_url":"https://api.github.com/users/yordis/gists{/gist_id}","starred_url":"https://api.github.com/users/yordis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yordis/subscriptions","organizations_url":"https://api.github.com/users/yordis/orgs","repos_url":"https://api.github.com/users/yordis/repos","events_url":"https://api.github.com/users/yordis/events{/privacy}","received_events_url":"https://api.github.com/users/yordis/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T20:44:12Z","updated_at":"2016-04-13T20:44:12Z","body":"@mattsawyer77 I am using 1.7.6 and give me this error as well.\r\n\r\nI have open atom with 3 perforce mappings inside. I don't know if this can cause problems."}}