{"action":"created","issue":{"url":"https://api.github.com/repos/mgrenier/remote-ftp/issues/235","labels_url":"https://api.github.com/repos/mgrenier/remote-ftp/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/mgrenier/remote-ftp/issues/235/comments","events_url":"https://api.github.com/repos/mgrenier/remote-ftp/issues/235/events","html_url":"https://github.com/mgrenier/remote-ftp/issues/235","id":118082437,"number":235,"title":"Uncaught RangeError: Maximum call stack size exceeded","user":{"login":"justbane","id":4744199,"avatar_url":"https://avatars.githubusercontent.com/u/4744199?v=3","gravatar_id":"","url":"https://api.github.com/users/justbane","html_url":"https://github.com/justbane","followers_url":"https://api.github.com/users/justbane/followers","following_url":"https://api.github.com/users/justbane/following{/other_user}","gists_url":"https://api.github.com/users/justbane/gists{/gist_id}","starred_url":"https://api.github.com/users/justbane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justbane/subscriptions","organizations_url":"https://api.github.com/users/justbane/orgs","repos_url":"https://api.github.com/users/justbane/repos","events_url":"https://api.github.com/users/justbane/events{/privacy}","received_events_url":"https://api.github.com/users/justbane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mgrenier/remote-ftp/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-20T16:59:32Z","updated_at":"2015-12-18T23:23:56Z","closed_at":null,"body":"To reproduce\r\n\r\n1. right click on toplevel folder or select al files and folders, then right click\r\n2. select sync local -> remote from context menu\r\n\r\nSync will start and run for a time and then fail. Files do appear to upload but after fail - package must disconnect/reconnect.\r\n\r\n**Atom Version**: 1.2.3\r\n**System**: Mac OS X 10.11.1\r\n**Thrown From**: [Remote-FTP](https://github.com/mgrenier/remote-ftp) package, v0.7.10\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught RangeError: Maximum call stack size exceeded\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/directory.js:356\r\n\r\nRangeError: Maximum call stack size exceeded\r\n    at String.indexOf (native)\r\n    at Directory.module.exports.Directory.isPathPrefixOf (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/directory.js:356:23)\r\n    at Directory.module.exports.Directory.relativize (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/pathwatcher/lib/directory.js:196:23)\r\n    at Project.module.exports.Project.relativizePath (/Applications/Atom.app/Contents/Resources/app.asar/src/project.js:321:40)\r\n    at Project.module.exports.Project.relativize (/Applications/Atom.app/Contents/Resources/app.asar/src/project.js:311:19)\r\n    at Client.module.exports.Client.toRemote (/Users/justbane/.atom/packages/Remote-FTP/lib/client.js:293:17)\r\n    at n (/Users/justbane/.atom/packages/Remote-FTP/lib/client.js:549:28)\r\n    at n (/Users/justbane/.atom/packages/Remote-FTP/lib/client.js:565:9)\r\n    at n (/Users/justbane/.atom/packages/Remote-FTP/lib/client.js:565:9)\r\n    at n (/Users/justbane/.atom/packages/Remote-FTP/lib/client.js:547:16)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -3:00.6.0 atom-commander:add-server (td.icon.icon-file-directory)\r\n  2x -2:58.4.0 core:paste (atom-text-editor.editor.mini.is-focused)\r\n  2x -2:46.6.0 core:backspace (atom-text-editor.editor.mini.is-focused)\r\n     -2:05.8.0 atom-commander:toggle-visible (tbody.atom-commander-list-view.list)\r\n  2x -1:53.4.0 remote-ftp:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)\r\n     -1:23.4.0 remote-ftp:connect (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)\r\n     -1:12.7.0 command-palette:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)\r\n     -1:08.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -1:08.6.0 git-plus:new-branch (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)\r\n     -1:05.7.0 core:backspace (atom-text-editor.editor.mini.is-focused)\r\n     -1:05.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)\r\n     -1:05.0 core:cancel (atom-text-editor.editor.mini.is-focused)\r\n     -1:03.1.0 command-palette:toggle (atom-pane.pane.active)\r\n     -0:57.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -0:57.5.0 git-plus:checkout (atom-pane.pane.active)\r\n     -0:08.1.0 remote-ftp:sync-with-local (span.name.icon.icon-repo)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {}\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nRemote-FTP, v0.7.10\r\natom-commander, v0.5.0\r\nautocomplete-php, v0.3.7\r\ncolor-picker, v2.0.13\r\ngit-plus, v5.6.5\r\nhighlight-selected, v0.11.1\r\nlinter, v1.11.2\r\nlinter-flow, v4.0.0\r\nlinter-php, v1.1.3\r\nlocal-history, v3.2.3\r\nremote-edit, v1.8.22\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mgrenier/remote-ftp/issues/comments/165919458","html_url":"https://github.com/mgrenier/remote-ftp/issues/235#issuecomment-165919458","issue_url":"https://api.github.com/repos/mgrenier/remote-ftp/issues/235","id":165919458,"user":{"login":"albru123","id":7580983,"avatar_url":"https://avatars.githubusercontent.com/u/7580983?v=3","gravatar_id":"","url":"https://api.github.com/users/albru123","html_url":"https://github.com/albru123","followers_url":"https://api.github.com/users/albru123/followers","following_url":"https://api.github.com/users/albru123/following{/other_user}","gists_url":"https://api.github.com/users/albru123/gists{/gist_id}","starred_url":"https://api.github.com/users/albru123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albru123/subscriptions","organizations_url":"https://api.github.com/users/albru123/orgs","repos_url":"https://api.github.com/users/albru123/repos","events_url":"https://api.github.com/users/albru123/events{/privacy}","received_events_url":"https://api.github.com/users/albru123/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T23:23:56Z","updated_at":"2015-12-18T23:23:56Z","body":"Getting it even when using local <- remote"}}