Page MenuHomePhabricator

`Command failed with error #255` at `set HGPLAIN=1 & hg diff` line
Closed, InvalidPublic

Asked by efkan on Jan 15 2016, 2:03 PM.

Details

Hello,

Unfortunately I cannot use the Phabricator. What should I do to overcome the issue below?

I've cloned the repository by using command of hg clone ssh://vcs-user@phab..,
then added .arcconfig file,
then run hg add command,
then tried the command of arc diff . However the process throws an exception;

[2016-01-15 13:53:20] EXCEPTION: (CommandException) Command failed with error #255!
COMMAND
set HGPLAIN=1 & hg diff --git -U32767 --rev "" -- ""

The exception has been thrown by ExecFuture.php .

Environments;

Dev OS...............: Windows 10
Dev HG version.......: 3.6.3
Dev PHP version......: 7.0.2
Dev Arc version......: 2016-01-16
Dev Phutil version...: 2016-01-16
Repo accessing method: SSH
Phab Server OS.......: Ubuntu 14.04.2
Phab Web Server......: Apache2

Also, I've tried creating a new repository and then I tried again several times.

Whole trace messages;

D:\Work Space\Projects\test-tt>arc diff --trace
 ARGV  "D:\Work Space\Development Tools\phabricator\arcanist\bin\..\scripts\arcanist.php" "diff" "--trace"
 LOAD  Loaded "phutil" from "D:\Work Space\Development Tools\phabricator\libphutil\src".
 LOAD  Loaded "arcanist" from "D:\Work Space\Development Tools\phabricator\arcanist\src".
Config: Reading user configuration file "C:\Users\Efkan\AppData\Roaming/.arcrc"...
Config: Did not find system configuration at "C:\ProgramData\Phabricator/Arcanist/config".
Working Copy: Reading .arcconfig from "D:\Work Space\Projects\test-tt/.arcconfig".
Working Copy: Path "D:\Work Space\Projects\test-tt" is part of `hg` working copy "D:\Work Space\Projects\test-tt".
Working Copy: Project root is at "D:\Work Space\Projects\test-tt".
Config: Did not find local configuration at "D:\Work Space\Projects\test-tt\.hg\arc/config".
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> https://phabricator.mydom.com/api/user.whoami
<<< [1] <http> 670,646 us
<<< [0] <conduit> 673,433 us
>>> [2] <exec> $ set HGPLAIN=1 & hg status
<<< [2] <exec> 124,639 us
>>> [3] <event> diff.didCollectChanges <listeners = 0>
<<< [3] <event> 1,581 us
>>> [4] <exec> $ set HGPLAIN=1 & hg help phase
<<< [4] <exec> 145,654 us
>>> [5] <exec> $ set HGPLAIN=1 & hg branch
<<< [5] <exec> 145,771 us
>>> [6] <exec> $ set HGPLAIN=1 & hg log --branch "default" -r "draft()" --style default
<<< [6] <exec> 165,894 us
>>> [7] <exec> $ set HGPLAIN=1 & hg parents --style default --rev "."
<<< [7] <exec> 155,354 us
>>> [8] <exec> $ set HGPLAIN=1 & hg log --template "{node}☺{desc}☻" --rev "('null'::. - 'null')" --branch "default" --
<<< [8] <exec> 162,662 us
>>> [9] <exec> $ set HGPLAIN=1 & hg log --template "{node}☺{rev}☺{author}☺{date|rfc822date}☺{branch}☺{tag}☺{parents}☺{desc}☻" --rev "('
null'::. - 'null')" --branch "default" --
<<< [9] <exec> 163,487 us
>>> [10] <exec> $ set HGPLAIN=1 & hg parents --template "{node}\n" --rev "da8fa79fece91cbbf5f45aa73b59db55b551ad43"
<<< [10] <exec> 149,823 us
>>> [11] <conduit> differential.query() <bytes = 308>
>>> [12] <http> https://phabricator.mydom.com/api/differential.query
<<< [12] <http> 121,021 us
<<< [11] <conduit> 123,778 us
You have a saved revision message in '.hg\arc\create-message'.
Message begins:

       add .arcconfig file

You can use this message, or discard it.

    Do you want to use this message? [Y/n] y

>>> [13] <conduit> differential.parsecommitmessage() <bytes = 183>
>>> [14] <http> https://phabricator.mydom.com/api/differential.parsecommitmessage
<<< [14] <http> 151,852 us
<<< [13] <conduit> 154,702 us
>>> [15] <event> diff.willBuildMessage <listeners = 0>
<<< [15] <event> 3,154 us
>>> [16] <exec> $ "C:\Program Files (x86)\Git\share\vim\vim74\vim.exe"  "C:\Users\Efkan\AppData\Local\Temp\edit.ezegmxb11vcw4400\new-co
mmit"
<<< [16] <exec> 4,127,212 us
>>> [17] <conduit> differential.parsecommitmessage() <bytes = 303>
>>> [18] <http> https://phabricator.mydom.com/api/differential.parsecommitmessage
<<< [18] <http> 125,074 us
<<< [17] <conduit> 128,008 us
>>> [19] <conduit> user.query() <bytes = 176>
>>> [20] <http> https://phabricator.mydom.com/api/user.query
<<< [20] <http> 127,798 us
<<< [19] <conduit> 130,883 us
>>> [21] <event> diff.didBuildMessage <listeners = 0>
<<< [21] <event> 1,930 us
Linting...
No lint engine configured for this project.
Running unit tests...
>>> [22] <exec> $ set HGPLAIN=1 & hg log -l 1 --template "{node}" -r "ancestor('null',.)" --
<<< [22] <exec> 140,395 us
>>> [23] <exec> $ set HGPLAIN=1 & hg diff --git -U32767 --rev "" -- ""
<<< [23] <exec> 130,645 us

[2016-01-15 13:53:20] EXCEPTION: (CommandException) Command failed with error #255!
COMMAND
set HGPLAIN=1 & hg diff --git -U32767 --rev "" -- ""

STDOUT
(empty)

STDERR
hg: parse error: empty query
 at [<phutil>\src\future\exec\ExecFuture.php:416]
arcanist(head=master, ref.master=05c12eb9d9cb), phutil(head=master, ref.master=0fa7efbf09d7)
  #0 ExecFuture::resolvex() called at [<arcanist>\src\repository\api\ArcanistRepositoryAPI.php:406]
  #1 ArcanistRepositoryAPI::execxLocal(string, string, string, string) called at [<arcanist>\src\repository\api\ArcanistMercurialAPI.php:438]
  #2 ArcanistMercurialAPI::getRawDiffText(string) called at [<arcanist>\src\repository\api\ArcanistMercurialAPI.php:449]
  #3 ArcanistMercurialAPI::getFullMercurialDiff() called at [<arcanist>\src\repository\api\ArcanistMercurialAPI.php:379]
  #4 ArcanistMercurialAPI::buildCommitRangeStatus() called at [<arcanist>\src\repository\api\ArcanistRepositoryAPI.php:230]
  #5 ArcanistRepositoryAPI::getCommitRangeStatus() called at [<arcanist>\src\repository\api\ArcanistRepositoryAPI.php:249]
  #6 ArcanistRepositoryAPI::getWorkingCopyStatus() called at [<arcanist>\src\workflow\ArcanistWorkflow.php:1446]
  #7 ArcanistWorkflow::selectPathsForWorkflow(array, string) called at [<arcanist>\src\workflow\ArcanistUnitWorkflow.php:145]
  #8 ArcanistUnitWorkflow::run() called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:1331]
  #9 ArcanistDiffWorkflow::runUnit() called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:1219]
  #10 ArcanistDiffWorkflow::runLintUnit() called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:474]
  #11 ArcanistDiffWorkflow::run() called at [<arcanist>\scripts\arcanist.php:392]

Answer Summary

Answers

efkan
Updated 3,561 Days Ago

To know how to use Phabricator, its own documentation should be used instead of obsolete google and youtube tutorials.

From the Phabricator documentation;

NOTE: You should commit your .arcconfig file! It contains project configuration, not user configuration.

New Answer

Answer

This question has been marked as closed, but you can still leave a new answer.