{"action":"created","issue":{"url":"https://api.github.com/repos/myint/cppclean/issues/121","repository_url":"https://api.github.com/repos/myint/cppclean","labels_url":"https://api.github.com/repos/myint/cppclean/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/myint/cppclean/issues/121/comments","events_url":"https://api.github.com/repos/myint/cppclean/issues/121/events","html_url":"https://github.com/myint/cppclean/issues/121","id":270196183,"node_id":"MDU6SXNzdWUyNzAxOTYxODM=","number":121,"title":"IndexError: pop from empty list","user":{"login":"DethRaid","id":2505597,"node_id":"MDQ6VXNlcjI1MDU1OTc=","avatar_url":"https://avatars1.githubusercontent.com/u/2505597?v=4","gravatar_id":"","url":"https://api.github.com/users/DethRaid","html_url":"https://github.com/DethRaid","followers_url":"https://api.github.com/users/DethRaid/followers","following_url":"https://api.github.com/users/DethRaid/following{/other_user}","gists_url":"https://api.github.com/users/DethRaid/gists{/gist_id}","starred_url":"https://api.github.com/users/DethRaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DethRaid/subscriptions","organizations_url":"https://api.github.com/users/DethRaid/orgs","repos_url":"https://api.github.com/users/DethRaid/repos","events_url":"https://api.github.com/users/DethRaid/events{/privacy}","received_events_url":"https://api.github.com/users/DethRaid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-01T05:16:11Z","updated_at":"2018-07-25T18:12:10Z","closed_at":null,"author_association":"NONE","body":"Ran this on my code base. I handle dependencies as git submodules, so they're all in my working tree and cppclean ran on all of them. It spit out a bunch of warnings, then a stack trace:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/cppclean\", line 145, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/bin/cppclean\", line 120, in main\r\n    entire_ast = list([_f for _f in builder.generate() if _f])\r\n  File \"/usr/local/bin/cppclean\", line 120, in <listcomp>\r\n    entire_ast = list([_f for _f in builder.generate() if _f])\r\n  File \"/usr/local/lib/python3.5/dist-packages/cpp/ast.py\", line 647, in generate\r\n    if self.namespaces.pop():\r\nIndexError: pop from empty list\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/myint/cppclean/issues/comments/407846525","html_url":"https://github.com/myint/cppclean/issues/121#issuecomment-407846525","issue_url":"https://api.github.com/repos/myint/cppclean/issues/121","id":407846525,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzg0NjUyNQ==","user":{"login":"regomatic","id":35701969,"node_id":"MDQ6VXNlcjM1NzAxOTY5","avatar_url":"https://avatars2.githubusercontent.com/u/35701969?v=4","gravatar_id":"","url":"https://api.github.com/users/regomatic","html_url":"https://github.com/regomatic","followers_url":"https://api.github.com/users/regomatic/followers","following_url":"https://api.github.com/users/regomatic/following{/other_user}","gists_url":"https://api.github.com/users/regomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/regomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/regomatic/subscriptions","organizations_url":"https://api.github.com/users/regomatic/orgs","repos_url":"https://api.github.com/users/regomatic/repos","events_url":"https://api.github.com/users/regomatic/events{/privacy}","received_events_url":"https://api.github.com/users/regomatic/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T18:12:10Z","updated_at":"2018-07-25T18:12:10Z","author_association":"NONE","body":"I'm getting this issue as well, using Python 2.7, with a similar but longer stacktrace:\r\n` File \"c:\\Python27\\lib\\runpy.py\", line 174, in _run_module_as_main\r\n    \"__main__\", fname, loader, pkg_name)\r\n  File \"c:\\Python27\\lib\\runpy.py\", line 72, in _run_code\r\n    exec code in run_globals\r\n  File \"C:\\Python27\\Scripts\\cppclean.py\", line 145, in <module>\r\n    sys.exit(main())\r\n  File \"C:\\Python27\\Scripts\\cppclean.py\", line 138, in main\r\n    quiet=args.quiet):\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\find_warnings.py\", line 597, in run\r\n    hunter.find_warnings()\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\find_warnings.py\", line 126, in find_warnings\r\n    self._find_source_warnings()\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\find_warnings.py\", line 542, in _find_source_warnings\r\n    included_files, forward_declarations = self._read_and_parse_includes()\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\find_warnings.py\", line 177, in _read_and_parse_includes\r\n    module = self._get_module(node)\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\find_warnings.py\", line 151, in _get_module\r\n    ast_list = [_f for _f in builder.generate() if _f]\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 651, in generate\r\n    result = self._generate_one(token)\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 675, in _generate_one\r\n    return method()\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 1177, in handle_class\r\n    return self._handle_class_and_struct(Class)\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 1174, in _handle_class_and_struct\r\n    return self._get_class(class_type, None)\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 1486, in _get_class\r\n    body = list(ast.generate())\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 651, in generate\r\n    result = self._generate_one(token)\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 675, in _generate_one\r\n    return method()\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 1180, in handle_struct\r\n    return self._handle_class_and_struct(Struct)\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 1174, in _handle_class_and_struct\r\n    return self._get_class(class_type, None)\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 1486, in _get_class\r\n    body = list(ast.generate())\r\n  File \"c:\\Python27\\lib\\site-packages\\cpp\\ast.py\", line 647, in generate\r\n    if self.namespaces.pop():\r\nIndexError: pop from empty list`"}}
{"actor":{"display_login":"regomatic"}}