Page MenuHomePhabricator

Arcanist in Windows: ERROR 8: Undefined offset
Closed, DuplicatePublic

Description

Invoking arc feature in Windows yields the following error:

$ arc feature --trace
 ARGV  "C:/Users/myuser/Desktop/arcanist/bin/../scripts/arcanist.php" "feature" "--trace"
 LOAD  Loaded "phutil" from "C:\Users\myuser\Desktop\libphutil\src".
 LOAD  Loaded "arcanist" from "C:\Users\myuser\Desktop\arcanist\src".
Config: Reading user configuration file "C:\Users\myuser\AppData\Roaming/.arcrc"...
Config: Did not find system configuration at "C:\ProgramData\Phabricator/Arcanist/config".
Working Copy: Reading .arcconfig from "C:\Users\myuser\Desktop\myproject\myproject/.arcconfig".
Working Copy: Path "C:\Users\myuser\Desktop\myproject\myproject" is part of `git` working copy "C:\Users\myuser\Desktop\myproject\myproject".
Working Copy: Project root is at "C:\Users\myuser\Desktop\myproject\myproject".
Config: Did not find local configuration at "C:\Users\myuser\Desktop\myproject\myproject\.git\arc/config".
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> https://phab.mycompany.com/api/user.whoami
<<< [1] <http> 616,333 us
<<< [0] <conduit> 628,098 us
>>> [2] <exec> $ git for-each-ref --format=" (refname) 01 (objectname) 01 (committerdate:raw) 01 (tree) 01 (subject) 01 (subject) 0a 0a (body) 01 02" -- refs/heads
<<< [2] <exec> 45,928 us
>>> [3] <exec> $ git symbolic-ref --quiet HEAD
<<< [3] <exec> 45,024 us
[2017-07-11 22:42:33] ERROR 8: Undefined offset: 1 at [C:\Users\myuser\Desktop\arcanist\src\repository\api\ArcanistGitAPI.php:1015]
arcanist(head=master, ref.master=165df12046e5), phutil(head=master, ref.master=0a4487d37cd7)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:89]
  #1 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
[2017-07-11 22:42:33] ERROR 8: Undefined offset: 2 at [C:\Users\myuser\Desktop\arcanist\src\repository\api\ArcanistGitAPI.php:1015]
arcanist(head=master, ref.master=165df12046e5), phutil(head=master, ref.master=0a4487d37cd7)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:89]
  #1 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
[2017-07-11 22:42:33] ERROR 8: Undefined offset: 3 at [C:\Users\myuser\Desktop\arcanist\src\repository\api\ArcanistGitAPI.php:1015]
arcanist(head=master, ref.master=165df12046e5), phutil(head=master, ref.master=0a4487d37cd7)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:89]
  #1 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
[2017-07-11 22:42:33] ERROR 8: Undefined offset: 4 at [C:\Users\myuser\Desktop\arcanist\src\repository\api\ArcanistGitAPI.php:1015]
arcanist(head=master, ref.master=165df12046e5), phutil(head=master, ref.master=0a4487d37cd7)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:89]
  #1 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
[2017-07-11 22:42:33] ERROR 8: Undefined offset: 5 at [C:\Users\myuser\Desktop\arcanist\src\repository\api\ArcanistGitAPI.php:1015]
arcanist(head=master, ref.master=165df12046e5), phutil(head=master, ref.master=0a4487d37cd7)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:89]
  #1 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
Usage Exception: No branches in this working copy.

[2017-07-11 22:42:33] EXCEPTION: (ArcanistUsageException) No branches in this working copy. at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:91]
arcanist(head=master, ref.master=165df12046e5), phutil(head=master, ref.master=0a4487d37cd7)
  #0 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]

I just git pulled the latest version of arcanist and libphutil and still got the same error.

To reproduce execute the command I show above: arc feature.

I cannot provide the version of arc because while doing it, I hit this other bug: T12913

Related Objects