Page MenuHomePhabricator

Arcanist: PHP Fatal error: Call to undefined method PhutilTranslator::setLocale() when trying to opening a revision
Closed, InvalidPublic

Description

I am just trying to open a new revision for my current branch, but am getting:

[ptv]thiblahute@~/devel/pitivi/1.0-uninstalled/gst-editing-services (timeline_element_children_properties|…) $ arc diff --create
PHP Fatal error:  Call to undefined method PhutilTranslator::setLocale() in /home/thiblahute/devel/arcanist/scripts/__init_script__.php on line 57

Fatal error: Call to undefined method PhutilTranslator::setLocale() in /home/thiblahute/devel/arcanist/scripts/__init_script__.php on line 57

Openning revisions like that worked several times but is failling right now.

I got arcanist from

commit 8f8fe44b05a464410ce2e2a797c96ec1f7d96c81
Author: epriestley <git@epriestley.com>
Date:   Wed Feb 11 13:02:11 2015 -0800
``

Event Timeline

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

How could it possibly be due to the server as I have not even communicated with the server to me?

And with the **exact* same combination of phabricator/arcanist it worked this morning?

@chad's instructions aren't quite correct: you need to update libphutil/ on your local machine.

This method was introduced in rPHU4252753e, committed Wed Feb 11 13:01:20 (about a minute before the version of arcanist/ you are running).

It looks like you may have run git pull in arcanist without also running it in libphutil.

You can use arc upgrade to pull both libraries at once.

Yeah sorry, I forget that client is sometimes separate for people (I develop Phabricator so my client is always up to date with that process).

I updated the serverm abd got latest libphutil

commit e2cdf9f89c88721e7d0b578c30d05d97ea3d8b24
Author: epriestley <git@epriestley.com>
Date:   Tue Feb 17 14:20:43 2015 -0800

    Make parsing of daemon PIDs more robust
    
    Summary:
    In production on the cluster, we get output like this:

and still having the same issu

(arc upgrade leads to the same exception)

It sounds like at some point your arcanist got ahead of libphutil. You may need to pull libphutil down individually to resolve the issue.

I did update libphutil locally, does not seem to have changed anything

I'd then nuke arcanist and libphutil and install from scratch. Something didn't get pulled properly.

In T7330#97524, @chad wrote:

I'd then nuke arcanist and libphutil and install from scratch. Something didn't get pulled properly.

OK did that and that issue disapeared.