{"action":"created","issue":{"url":"https://api.github.com/repos/jml/difftodo/issues/17","labels_url":"https://api.github.com/repos/jml/difftodo/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jml/difftodo/issues/17/comments","events_url":"https://api.github.com/repos/jml/difftodo/issues/17/events","html_url":"https://github.com/jml/difftodo/issues/17","id":115333928,"number":17,"title":"Missing todo","user":{"login":"tomprince","id":283816,"avatar_url":"https://avatars.githubusercontent.com/u/283816?v=3","gravatar_id":"","url":"https://api.github.com/users/tomprince","html_url":"https://github.com/tomprince","followers_url":"https://api.github.com/users/tomprince/followers","following_url":"https://api.github.com/users/tomprince/following{/other_user}","gists_url":"https://api.github.com/users/tomprince/gists{/gist_id}","starred_url":"https://api.github.com/users/tomprince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomprince/subscriptions","organizations_url":"https://api.github.com/users/tomprince/orgs","repos_url":"https://api.github.com/users/tomprince/repos","events_url":"https://api.github.com/users/tomprince/events{/privacy}","received_events_url":"https://api.github.com/users/tomprince/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-05T17:29:17Z","updated_at":"2015-11-06T18:28:28Z","closed_at":null,"body":"Given\r\n```diff\r\ndiff --git a/flocker/node/agents/blockdevice.py b/flocker/node/agents/blockdevice.py\r\nindex 540fcac..a97d000 100644\r\n--- a/flocker/node/agents/blockdevice.py\r\n+++ b/flocker/node/agents/blockdevice.py\r\n@@ -1116,6 +1184,7 @@ class BlockDeviceDeployerLocalState(PClass):\r\n         These are the only parts of the state that need to be sent to the\r\n         control service.\r\n         \"\"\"\r\n+        # XXX above untested\r\n         return (self.node_state, self.nonmanifest_datasets)\r\n \r\n```\r\ndiff-todo gives 0 todos."},"comment":{"url":"https://api.github.com/repos/jml/difftodo/issues/comments/154493403","html_url":"https://github.com/jml/difftodo/issues/17#issuecomment-154493403","issue_url":"https://api.github.com/repos/jml/difftodo/issues/17","id":154493403,"user":{"login":"jml","id":125674,"avatar_url":"https://avatars.githubusercontent.com/u/125674?v=3","gravatar_id":"","url":"https://api.github.com/users/jml","html_url":"https://github.com/jml","followers_url":"https://api.github.com/users/jml/followers","following_url":"https://api.github.com/users/jml/following{/other_user}","gists_url":"https://api.github.com/users/jml/gists{/gist_id}","starred_url":"https://api.github.com/users/jml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jml/subscriptions","organizations_url":"https://api.github.com/users/jml/orgs","repos_url":"https://api.github.com/users/jml/repos","events_url":"https://api.github.com/users/jml/events{/privacy}","received_events_url":"https://api.github.com/users/jml/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T18:28:28Z","updated_at":"2015-11-06T18:28:28Z","body":"The problem is that the code snippet in the diff is fundamentally ambiguous.\r\n\r\nPygments is choosing to interpret the docstring as _beginning_ on the third line, rather than ending. This means it thinks the comment is actually part of a docstring, which in turn means that difftodo never sees it.\r\n\r\nThe least bad fix is probably to run pygments on the whole file (if available), and then use the diff to figure out which comments to extract."}}