{"action":"created","issue":{"url":"https://api.github.com/repos/theodi/comma-chameleon/issues/188","repository_url":"https://api.github.com/repos/theodi/comma-chameleon","labels_url":"https://api.github.com/repos/theodi/comma-chameleon/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/theodi/comma-chameleon/issues/188/comments","events_url":"https://api.github.com/repos/theodi/comma-chameleon/issues/188/events","html_url":"https://github.com/theodi/comma-chameleon/issues/188","id":267857587,"number":188,"title":"JS error on Edit menu use","user":{"login":"jeremydouglass","id":798570,"avatar_url":"https://avatars3.githubusercontent.com/u/798570?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremydouglass","html_url":"https://github.com/jeremydouglass","followers_url":"https://api.github.com/users/jeremydouglass/followers","following_url":"https://api.github.com/users/jeremydouglass/following{/other_user}","gists_url":"https://api.github.com/users/jeremydouglass/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremydouglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremydouglass/subscriptions","organizations_url":"https://api.github.com/users/jeremydouglass/orgs","repos_url":"https://api.github.com/users/jeremydouglass/repos","events_url":"https://api.github.com/users/jeremydouglass/events{/privacy}","received_events_url":"https://api.github.com/users/jeremydouglass/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-24T00:19:12Z","updated_at":"2017-10-24T03:48:49Z","closed_at":null,"author_association":"NONE","body":"### Expected Behaviour\r\n\r\nMenu items in Edit menu -- e.g. to insert or remove columns or rows -- will function.\r\n\r\n### Current Behaviour (for problems)\r\n\r\nUsing insert column at any time on a fresh install fails with a JavaScript error.\r\n\r\nThis renders the program unusable unless working with exactly 3 columns of data.\r\n\r\n### Steps to Reproduce (for problems)\r\n\r\n1. download Comma.Chameleon-darwin-x64.zip from comma-chameleon.io\r\n2. unzip and drag Comma Chameleon.app to /Applications on macOS Sierra 10.12.6\r\n3. run\r\n4. select Edit > Insert Column Right (or Left)\r\n\r\nResult:\r\n\r\n> **A JavaScript error occurred in the main process**  \r\n> Uncaught Exception:\r\nReferenceError: mainWindow is not defined\r\n    at exports.menu.submenu.click (/Applications/Comma Chameleon.app/Contents/Resources/app/main/menu.js:228:11)\r\n    at MenuItem.click (/Applications/Comma Chameleon.app/Contents/Resources/electron.asar/browser/api/menu-item.js:81:16)\r\n    at Function.delegate.executeCommand (/Applications/Comma Chameleon.app/Contents/Resources/electron.asar/browser/api/menu.js:119:40)\r\n\r\n### Your Environment\r\n\r\n* macOS Sierra 10.12.6\r\n* MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports)\r\n\r\n**This same error also appears with any item in the Edit menu** -- insert / remove / column / row, undo / redo, cut / copy / select all etc. All pop up a javascript error dialog."},"comment":{"url":"https://api.github.com/repos/theodi/comma-chameleon/issues/comments/338864817","html_url":"https://github.com/theodi/comma-chameleon/issues/188#issuecomment-338864817","issue_url":"https://api.github.com/repos/theodi/comma-chameleon/issues/188","id":338864817,"user":{"login":"jeremydouglass","id":798570,"avatar_url":"https://avatars3.githubusercontent.com/u/798570?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremydouglass","html_url":"https://github.com/jeremydouglass","followers_url":"https://api.github.com/users/jeremydouglass/followers","following_url":"https://api.github.com/users/jeremydouglass/following{/other_user}","gists_url":"https://api.github.com/users/jeremydouglass/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremydouglass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremydouglass/subscriptions","organizations_url":"https://api.github.com/users/jeremydouglass/orgs","repos_url":"https://api.github.com/users/jeremydouglass/repos","events_url":"https://api.github.com/users/jeremydouglass/events{/privacy}","received_events_url":"https://api.github.com/users/jeremydouglass/received_events","type":"User","site_admin":false},"created_at":"2017-10-24T03:48:49Z","updated_at":"2017-10-24T03:48:49Z","author_association":"NONE","body":"Thank you, @Stephen-Gates -- that worked.\r\n\r\nI have updated the issue to reflect that it is using any entry in the Edit menu that causes this popup error -- not just insert / remove column. All entries in the right-click dialog work correctly.\r\n"}}
{"actor":{"display_login":"jeremydouglass"}}