{"action":"opened","issue":{"url":"https://api.github.com/repos/chrsmithdemos/zen-coding/issues/185","labels_url":"https://api.github.com/repos/chrsmithdemos/zen-coding/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/chrsmithdemos/zen-coding/issues/185/comments","events_url":"https://api.github.com/repos/chrsmithdemos/zen-coding/issues/185/events","html_url":"https://github.com/chrsmithdemos/zen-coding/issues/185","id":58993164,"number":185,"title":"zen_files.py","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmithdemos/zen-coding/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/zen-coding/labels/Milestone-0.7","name":"Milestone-0.7","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/zen-coding/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmithdemos/zen-coding/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-26T00:15:12Z","updated_at":"2015-02-26T00:15:12Z","closed_at":null,"body":"```\nThere's an infinite loop in locate_file(), on line 37:\nparent = os.path.dirname(editor_file)\nshould be\nparent = os.path.dirname(parent)\n\nBut there still will be an infinite loop because os.path.dirname('/') == '/'.\n\nI patched it here:\nhttp://github.com/fmarcia/zen-coding-gedit/commit/6a473046b80ba63de7705c6a55082b\n750f206474#diff-1\n\nhth\n```\n\n-----\nOriginal issue reported on code.google.com by `franck.marcia@gmail.com` on 26 May 2010 at 9:46"}}