{"action":"closed","issue":{"url":"https://api.github.com/repos/phan/phan/issues/1342","repository_url":"https://api.github.com/repos/phan/phan","labels_url":"https://api.github.com/repos/phan/phan/issues/1342/labels{/name}","comments_url":"https://api.github.com/repos/phan/phan/issues/1342/comments","events_url":"https://api.github.com/repos/phan/phan/issues/1342/events","html_url":"https://github.com/phan/phan/issues/1342","id":281906505,"node_id":"MDU6SXNzdWUyODE5MDY1MDU=","number":1342,"title":"output invalid for Code Climate","user":{"login":"davehenton","id":18341459,"node_id":"MDQ6VXNlcjE4MzQxNDU5","avatar_url":"https://avatars2.githubusercontent.com/u/18341459?v=4","gravatar_id":"","url":"https://api.github.com/users/davehenton","html_url":"https://github.com/davehenton","followers_url":"https://api.github.com/users/davehenton/followers","following_url":"https://api.github.com/users/davehenton/following{/other_user}","gists_url":"https://api.github.com/users/davehenton/gists{/gist_id}","starred_url":"https://api.github.com/users/davehenton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davehenton/subscriptions","organizations_url":"https://api.github.com/users/davehenton/orgs","repos_url":"https://api.github.com/users/davehenton/repos","events_url":"https://api.github.com/users/davehenton/events{/privacy}","received_events_url":"https://api.github.com/users/davehenton/received_events","type":"User","site_admin":false},"labels":[{"id":276522256,"node_id":"MDU6TGFiZWwyNzY1MjIyNTY=","url":"https://api.github.com/repos/phan/phan/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-13T21:41:23Z","updated_at":"2018-06-22T02:39:24Z","closed_at":"2018-06-22T02:39:24Z","author_association":"NONE","body":"Dave here with Code Climate. We're occasionally seeing the following output from **phan** in Code Climate builds. Let me know what other information you need from me, and how we can go about getting this fixed. Thanks!\r\n\r\n```\r\nengine produced invalid output: {:message=>\"Invalid JSON\", :output=>\"Phan\\\\Exception\\\\IssueException in /usr/src/app/src/Phan/AST/ContextNode.php:771\\nStack trace:\\n#0 /usr/src/app/src/Phan/AST/UnionTypeVisitor.php(1018): Phan\\\\AST\\\\ContextNode->getClassConst()\\n#1 /usr/src/app/src/Phan/AST/Visitor/Element.php(60): Phan\\\\AST\\\\UnionTypeVisitor->visitClassConst(Object(ast\\\\Node))\\n#2 /usr/src/app/src/Phan/AST/Visitor/KindVisitorImplementation.php(22): Phan\\\\AST\\\\Visitor\\\\Element->acceptKindVisitor(Object(Phan\\\\AST\\\\UnionTypeVisitor))\\n#3 /usr/src/app/src/Phan/AST/UnionTypeVisitor.php(123): Phan\\\\AST\\\\Visitor\\\\KindVisitorImplementation->__invoke(Object(ast\\\\Node))\\n#4 /usr/src/app/src/Phan/Language/UnionType.php(154): Phan\\\\AST\\\\UnionTypeVisitor::unionTypeFromNode(Object(Phan\\\\CodeBase), Object(Phan\\\\Language\\\\Context), Object(ast\\\\Node), false)\\n#5 /usr/src/app/src/Phan/Language/FutureUnionType.php(57): Phan\\\\Language\\\\UnionType::fromNode(Object(Phan\\\\Language\\\\Context), Object(Phan\\\\CodeBase), Object(ast\\\\Node), false)\\n#6 /usr/src/app/src/Phan/Language/Element/ElementFutureUnionType.php(56): Phan\\\\Language\\\\FutureUnionType->get()\\n#7 /usr/src/app/src/Phan/Language/Element/Property.php(78): Phan\\\\Language\\\\Element\\\\Property->getFutureUnionType()\\n#8 /usr/src/app/src/Phan/Analysis/CompositionAnalyzer.php(76): Phan\\\\Language\\\\Element\\\\Property->getUnionType()\\n#9 /usr/src/app/src/Phan/Language/Element/Clazz.php(1678): Phan\\\\Analysis\\\\CompositionAnalyzer::analyzeComposition(Object(Phan\\\\CodeBase), Object(Phan\\\\Language\\\\Element\\\\Clazz))\\n#10 /usr/src/app/src/Phan/Analysis.php(209): Phan\\\\Language\\\\Element\\\\Clazz->analyze(Object(Phan\\\\CodeBase))\\n#11 /usr/src/app/src/Phan/Phan.php(143): Phan\\\\Analysis::analyzeClasses(Object(Phan\\\\CodeBase))\\n#12 /usr/src/app/plugins/codeclimate/engine(120): Phan\\\\Phan::analyzeFileList(Object(Phan\\\\CodeBase), Array)\\n#13 {main}\\n\"}\r\n```"}}
{"actor":{"display_login":"TysonAndre"}}