{"action":"created","issue":{"url":"https://api.github.com/repos/gandm/language-babel/issues/66","labels_url":"https://api.github.com/repos/gandm/language-babel/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/gandm/language-babel/issues/66/comments","events_url":"https://api.github.com/repos/gandm/language-babel/issues/66/events","html_url":"https://github.com/gandm/language-babel/issues/66","id":106431963,"number":66,"title":"Infinite recursion in transpiler.coffee","user":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-14T21:28:54Z","updated_at":"2015-09-15T06:54:07Z","closed_at":null,"body":"This call appears to recurse infinitely when using Nuclide to edit files on a remote server:\r\n```\r\nreturn @getLocalConfig path.dirname(fromDir), toDir, localConfig\r\n```\r\n\r\nThis exception is thrown on save:\r\n```\r\nRangeError: Maximum call stack size exceeded\r\n  at RegExp.exec (native)\r\n  at posixSplitPath (path.js:385:22)\r\n  at Object.posix.dirname (path.js:513:16)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:35)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  at Transpiler.getLocalConfig (/Users/danlo/.atom/packages/language-babel/lib/transpiler.coffee:174:15)\r\n  ... and so on...\r\n```\r\n\r\nI have \"Transpile on save\" turned off."},"comment":{"url":"https://api.github.com/repos/gandm/language-babel/issues/comments/140298058","html_url":"https://github.com/gandm/language-babel/issues/66#issuecomment-140298058","issue_url":"https://api.github.com/repos/gandm/language-babel/issues/66","id":140298058,"user":{"login":"gandm","id":2313237,"avatar_url":"https://avatars.githubusercontent.com/u/2313237?v=3","gravatar_id":"","url":"https://api.github.com/users/gandm","html_url":"https://github.com/gandm","followers_url":"https://api.github.com/users/gandm/followers","following_url":"https://api.github.com/users/gandm/following{/other_user}","gists_url":"https://api.github.com/users/gandm/gists{/gist_id}","starred_url":"https://api.github.com/users/gandm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandm/subscriptions","organizations_url":"https://api.github.com/users/gandm/orgs","repos_url":"https://api.github.com/users/gandm/repos","events_url":"https://api.github.com/users/gandm/events{/privacy}","received_events_url":"https://api.github.com/users/gandm/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T06:54:07Z","updated_at":"2015-09-15T06:54:07Z","body":"I've just pushed some changes to the repo that should fix your problem. I won't publish until you've checked it works . I've added another config option that is disabled by default `allowLocalOverride` that will stop traversal of the directory. I also trap for infinite recursion should the setting be on."}}