Page MenuHomePhabricator

Re-enable reentrant code
Closed, WontfixPublic

Description

In D12999, the reenter_if_this_is_arcanist_or_libphutil function was removed. Now, as a result, I constantly hit the following exception:

Usage Exception: You are trying to run one copy of Arcanist on another copy of Arcanist. This operation is not supported. To execute Arcanist operations against this working copy, run `./bin/arc` (from the current working copy) not some other copy of 'arc' (you ran one from '/home/joshua/dotfiles/modules/phabricator/arcanist').

It would be nice to bring back the reentrant logic if it can be done without arcanist projects.

Related Objects

Event Timeline

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

Can you just... not run different copies of arc in other different copies of arc? Crazy workaround, I know.

That would mean always running ./bin/arc (from rARC) or ../arcanist/bin/arc (from rPHU), which I thought would be manageable but it turns out to be annoying.

Maybe put "../arcanist/bin" as the first component of your PATH? That should work from arcanist/ or libphutil/.