{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/issues/181","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/issues/181/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/issues/181/events","html_url":"https://github.com/RocketChat/Rocket.Chat.Electron/issues/181","id":151073390,"number":181,"title":"\"A JavaScript error occurred in the main process\" when moving app window","user":{"login":"localhorst","id":350845,"avatar_url":"https://avatars.githubusercontent.com/u/350845?v=3","gravatar_id":"","url":"https://api.github.com/users/localhorst","html_url":"https://github.com/localhorst","followers_url":"https://api.github.com/users/localhorst/followers","following_url":"https://api.github.com/users/localhorst/following{/other_user}","gists_url":"https://api.github.com/users/localhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/localhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localhorst/subscriptions","organizations_url":"https://api.github.com/users/localhorst/orgs","repos_url":"https://api.github.com/users/localhorst/repos","events_url":"https://api.github.com/users/localhorst/events{/privacy}","received_events_url":"https://api.github.com/users/localhorst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"rodrigok","id":234261,"avatar_url":"https://avatars.githubusercontent.com/u/234261?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigok","html_url":"https://github.com/rodrigok","followers_url":"https://api.github.com/users/rodrigok/followers","following_url":"https://api.github.com/users/rodrigok/following{/other_user}","gists_url":"https://api.github.com/users/rodrigok/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigok/subscriptions","organizations_url":"https://api.github.com/users/rodrigok/orgs","repos_url":"https://api.github.com/users/rodrigok/repos","events_url":"https://api.github.com/users/rodrigok/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigok/received_events","type":"User","site_admin":false},"assignees":[{"login":"rodrigok","id":234261,"avatar_url":"https://avatars.githubusercontent.com/u/234261?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigok","html_url":"https://github.com/rodrigok","followers_url":"https://api.github.com/users/rodrigok/followers","following_url":"https://api.github.com/users/rodrigok/following{/other_user}","gists_url":"https://api.github.com/users/rodrigok/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigok/subscriptions","organizations_url":"https://api.github.com/users/rodrigok/orgs","repos_url":"https://api.github.com/users/rodrigok/repos","events_url":"https://api.github.com/users/rodrigok/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigok/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/milestones/7","html_url":"https://github.com/RocketChat/Rocket.Chat.Electron/milestone/7","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/milestones/7/labels","id":2264672,"number":7,"title":"2.3.0","description":"","creator":{"login":"engelgabriel","id":1000217,"avatar_url":"https://avatars.githubusercontent.com/u/1000217?v=3","gravatar_id":"","url":"https://api.github.com/users/engelgabriel","html_url":"https://github.com/engelgabriel","followers_url":"https://api.github.com/users/engelgabriel/followers","following_url":"https://api.github.com/users/engelgabriel/following{/other_user}","gists_url":"https://api.github.com/users/engelgabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/engelgabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engelgabriel/subscriptions","organizations_url":"https://api.github.com/users/engelgabriel/orgs","repos_url":"https://api.github.com/users/engelgabriel/repos","events_url":"https://api.github.com/users/engelgabriel/events{/privacy}","received_events_url":"https://api.github.com/users/engelgabriel/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":9,"state":"open","created_at":"2017-01-19T17:06:58Z","updated_at":"2017-01-20T14:43:55Z","due_on":"2017-01-30T08:00:00Z","closed_at":null},"comments":26,"created_at":"2016-04-26T08:26:52Z","updated_at":"2017-01-20T14:45:04Z","closed_at":"2017-01-20T14:43:55Z","body":"## My Setup\n- Windows 7 64Bit, SP1. \n- All updates installed\n- Rocket.Chat+ v 1.3.1 \n- [x] I have tested with the latest application version\n- [x] I can simulate the issue easily\n## Description\n- After installation (update from 1.2)\n- Starting the app\n- Loggin in to the server\n- Moving the app window\n## Current Behavior\n\nMoving the app window makes an error message pop up: \n\"A JavaScript error occurred in the main process ...\" \n## Expected Behavior\n\nNo error message\n## Full error message:\n\n`\n[Window Title]\nError\n\n[Main Instruction]\nA JavaScript error occurred in the main process\n\n[Content]\nUncaught Exception:\nError: EPERM: operation not permitted, rename 'C:\\Users\\myusername\\AppData\\Roaming\\Rocket.Chat+\\window-state-main.json.**new**' -> 'C:\\Users\\myusername\\AppData\\Roaming\\Rocket.Chat+\\window-state-main.json'\n    at Error (native)\n    at Object.fs.renameSync (fs.js:729:18)\n    at writeAtomicSync (C:\\Program Files (x86)\\Rocket.Chat+\\resources\\app.asar\\node_modules\\fs-jetpack\\lib\\file_ops.js:105:8)\n    at Object.writeSync [as write](C:Program Files %28x86%29Rocket.Chat+resourcesapp.asarnode_modulesfs-jetpacklibfile_ops.js:116:5)\n    at Object.write (C:\\Program Files (x86)\\Rocket.Chat+\\resources\\app.asar\\node_modules\\fs-jetpack\\lib\\jetpack.js:192:21)\n    at Object.saveState (C:\\Program Files (x86)\\Rocket.Chat+\\resources\\app.asar\\background.js:72:21)\n    at BrowserWindow.<anonymous> (C:\\Program Files (x86)\\Rocket.Chat+\\resources\\app.asar\\background.js:268:25)\n    at emitOne (events.js:77:13)\n    at BrowserWindow.emit (events.js:169:7)\n[OK]\n`\n## More\n- Uninstalling previous version beforehand did not solve this issue.\n## <bountysource-plugin>\n\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33337833-a-javascript-error-occurred-in-the-main-process-when-moving-app-window?utm_campaign=plugin&utm_content=tracker%2F19476668&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F19476668&utm_medium=issues&utm_source=github).\n</bountysource-plugin>\n"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/issues/comments/274088728","html_url":"https://github.com/RocketChat/Rocket.Chat.Electron/issues/181#issuecomment-274088728","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Electron/issues/181","id":274088728,"user":{"login":"theoryshaw","id":507113,"avatar_url":"https://avatars.githubusercontent.com/u/507113?v=3","gravatar_id":"","url":"https://api.github.com/users/theoryshaw","html_url":"https://github.com/theoryshaw","followers_url":"https://api.github.com/users/theoryshaw/followers","following_url":"https://api.github.com/users/theoryshaw/following{/other_user}","gists_url":"https://api.github.com/users/theoryshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/theoryshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theoryshaw/subscriptions","organizations_url":"https://api.github.com/users/theoryshaw/orgs","repos_url":"https://api.github.com/users/theoryshaw/repos","events_url":"https://api.github.com/users/theoryshaw/events{/privacy}","received_events_url":"https://api.github.com/users/theoryshaw/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T14:45:04Z","updated_at":"2017-01-20T14:45:04Z","body":"Yes, It seems to."}}
{"actor":{"display_login":"theoryshaw"}}