Page MenuHomePhabricator

Fatal error running XHPast (arc lint)
Closed, ResolvedPublic

Description

We're writing some Lint extensions for arcanist (see https://github.com/metno/arcanist-support), and where thinking it would be best to apply most of the same linters to it as are used on the core libphutil/arcanist project. Unfortunately, we're running into a problem with XHPast.

When I run arc lint (with xhpast enabled), I get the following error:
PHP Fatal error: Call to undefined method XHPASTNode::getChildrenOfType() in /usr/share/arcanist/src/lint/linter/ArcanistXHPASTLinter.php on line 2912

Any idea what might be going wrong? When I build xhpast (5.5.8/1e) with the build_xhpast.sh script, its tests fine.

P.S.
Btw, speaking of code style, any Eclipse users at Phacility? Wondering if any of you might have a code style format for Eclipse PHP that you could share?

Event Timeline

michaeloa raised the priority of this task from to Needs Triage.
michaeloa updated the task description. (Show Details)
michaeloa added a project: XHPAST.
michaeloa added a subscriber: michaeloa.

Update libphutil, it seems that you are not using the latest version.

michaeloa claimed this task.

Thanks - seems that had failed to upgrade for a while now. Problem solved.