Phabricator/FAQ: Difference between revisions

New FAQ category for arc
(Highlight)
(New FAQ category for arc)
Line 26: Line 26:


No.  Each commit is associated with a single revision.
No.  Each commit is associated with a single revision.
=== How do I get “arc diff” to stop listing and asking about all my untracked build artifacts? ===
Use the “--allow-untracked” option to arc diff.


=== Why do I get the following error during patch submission: "Error parsing field "Reviewers": The objects you have listed include objects which do not exist (name)."? ===
=== Why do I get the following error during patch submission: "Error parsing field "Reviewers": The objects you have listed include objects which do not exist (name)."? ===
Line 62: Line 58:


'''TIP''': Like most actions there's a keyboard shortcut for this - "Shift + A".  Pro tip: pressing "?" will show all the keyboard shortcuts.
'''TIP''': Like most actions there's a keyboard shortcut for this - "Shift + A".  Pro tip: pressing "?" will show all the keyboard shortcuts.
=== "arc diff" fails on Windows: Failed to passthru proc_open(): proc_open(): CreateProcess failed, error code - 2 ===
  arc diff --trace
  ...
  EXCEPTION: (Exception) Failed to passthru proc_open(): proc_open(): CreateProcess failed, error code - 2 at [<phutil>\src\future\exec\PhutilExecPassthru.php:103]
  arcanist(head=master, ref.master=875d01836037), phutil(head=master, ref.master=1613e68f4740)
    #0 PhutilExecPassthru::execute() called at [<phutil>\src\future\exec\execx.php:50]
    #1 phutil_passthru(string, PhutilCommandString) called at [<phutil>\src\console\PhutilInteractiveEditor.php:122]
    #2 PhutilInteractiveEditor::invokeEditor(string, string, integer) called at [<phutil>\src\console\PhutilInteractiveEditor.php:77]
    #3 PhutilInteractiveEditor::editInteractively() called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:1889]
    #4 ArcanistDiffWorkflow::getUpdateMessage(array, string) called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:773]
    #5 ArcanistDiffWorkflow::buildRevisionFromCommitMessage(ArcanistDifferentialCommitMessage) called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:478]
    #6 ArcanistDiffWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
arc needs to be configured with the full path to your editor (it doesn't check your PATH).
See [https://secure.phabricator.com/book/phabricator/article/arcanist_windows/ Arcanist User Guide: Windows] for instructions on how to set this correctly.


=== Why don't we mirror 'r?' and other review states to Bugzilla, why just 'r+'? ===
=== Why don't we mirror 'r?' and other review states to Bugzilla, why just 'r+'? ===
Line 96: Line 74:


Note this means there may be a short delay after submission before the revision is visible to other users.
Note this means there may be a short delay after submission before the revision is visible to other users.
=== Can I block review requests in Phabricator like I can in BMO? ===
Unfortunately, BMO's system to block review requests isn't suitable for Phabricator because communication with BMO after a revision is created is asynchronous to make the system faster and more robust.  We are, however, currently looking into ways we can implement this functionality within Phabricator itself.
== Arcanist, the 'arc' command-line tool ==
=== How do I get “arc diff” to stop listing and asking about all my untracked build artifacts? ===
Use the “--allow-untracked” option to arc diff.


=== The official docs on installing Arcanist on Windows are ... not great. Are there better ones somewhere? ===
=== The official docs on installing Arcanist on Windows are ... not great. Are there better ones somewhere? ===
Line 101: Line 89:
Yes!  We recently published our own step-by-step guide that should be clearer than the official ones: https://moz-conduit.readthedocs.io/en/latest/arcanist-windows.html
Yes!  We recently published our own step-by-step guide that should be clearer than the official ones: https://moz-conduit.readthedocs.io/en/latest/arcanist-windows.html


=== Can I block review requests in Phabricator like I can in BMO? ===
=== "arc diff" fails on Windows: Failed to passthru proc_open(): proc_open(): CreateProcess failed, error code - 2 ===
 
  arc diff --trace
  ...
  EXCEPTION: (Exception) Failed to passthru proc_open(): proc_open(): CreateProcess failed, error code - 2 at [<phutil>\src\future\exec\PhutilExecPassthru.php:103]
  arcanist(head=master, ref.master=875d01836037), phutil(head=master, ref.master=1613e68f4740)
    #0 PhutilExecPassthru::execute() called at [<phutil>\src\future\exec\execx.php:50]
    #1 phutil_passthru(string, PhutilCommandString) called at [<phutil>\src\console\PhutilInteractiveEditor.php:122]
    #2 PhutilInteractiveEditor::invokeEditor(string, string, integer) called at [<phutil>\src\console\PhutilInteractiveEditor.php:77]
    #3 PhutilInteractiveEditor::editInteractively() called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:1889]
    #4 ArcanistDiffWorkflow::getUpdateMessage(array, string) called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:773]
    #5 ArcanistDiffWorkflow::buildRevisionFromCommitMessage(ArcanistDifferentialCommitMessage) called at [<arcanist>\src\workflow\ArcanistDiffWorkflow.php:478]
    #6 ArcanistDiffWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
 
arc needs to be configured with the full path to your editor (it doesn't check your PATH).
 
See [https://secure.phabricator.com/book/phabricator/article/arcanist_windows/ Arcanist User Guide: Windows] for instructions on how to set this correctly.


Unfortunately, BMO's system to block review requests isn't suitable for Phabricator because communication with BMO after a revision is created is asynchronous to make the system faster and more robust.  We are, however, currently looking into ways we can implement this functionality within Phabricator itself.


== Lando ==
== Lando ==
75

edits