Page MenuHomePhabricator
Feed Advanced Search

Dec 12 2015

avivey added a comment to T9956: Arcanist failed patch lint on windows (because "cp" does not exist).

phutil_is_windows()

Dec 12 2015, 5:09 AM · Windows, Bug Report

Dec 11 2015

tycho.tatitscheff updated the task description for T9956: Arcanist failed patch lint on windows (because "cp" does not exist).
Dec 11 2015, 10:04 AM · Windows, Bug Report
tycho.tatitscheff added a comment to T9956: Arcanist failed patch lint on windows (because "cp" does not exist).

Side question, so I can submit a patch, is it a libphutil way to :

if (workflow_os == "Windows") {
  exec(window_feature);
} else {
  exec(unix_feature);
};
Dec 11 2015, 10:03 AM · Windows, Bug Report
tycho.tatitscheff updated the task description for T9956: Arcanist failed patch lint on windows (because "cp" does not exist).
Dec 11 2015, 10:00 AM · Windows, Bug Report
tycho.tatitscheff created T9956: Arcanist failed patch lint on windows (because "cp" does not exist).
Dec 11 2015, 9:58 AM · Windows, Bug Report

Dec 10 2015

epriestley moved T8075: arc patch fails on Windows with SVN (because it uses "cd", not "setCWD") from Backlog to arc patch on the Arcanist board.
Dec 10 2015, 3:06 PM · Windows, Arcanist

Dec 3 2015

chad added a comment to T9441: Cygwin PHP segfaults with arcanist.

+1 for cygwin/babun support.

Dec 3 2015, 10:43 PM · Windows, Arcanist
franshamk added a comment to T9441: Cygwin PHP segfaults with arcanist.

+1 for cygwin/babun support.

Dec 3 2015, 10:33 PM · Windows, Arcanist

Nov 23 2015

epriestley updated subscribers of T8298: Fix Windows Escaping.
Nov 23 2015, 4:15 PM · Windows
epriestley merged task T6966: Windows quoting conventions still bad into T8298: Fix Windows Escaping.
Nov 23 2015, 4:15 PM · Windows, Arcanist

Oct 8 2015

BYK added a comment to T8298: Fix Windows Escaping.

I'm fairly certain since it seems to be using the CreateProcess API as others do. I'm also using xonsh (the project using that Python code) for quite some time now and it works without any issues.

Oct 8 2015, 9:49 PM · Windows
epriestley added a comment to T8298: Fix Windows Escaping.

That seems tentatively fine, although it may only solve some of the problems here and may create new problems.

Oct 8 2015, 9:44 PM · Windows
BYK added a comment to T8298: Fix Windows Escaping.

@epriestley - okay, may be the name mislead me. Anyways, I'm basically proposing making bypass_shell on by default in execx and implementing a mechanism that automatically finds the full path of the executable on Windows by implementing that Python function I referred to. Does this make sense?

Oct 8 2015, 9:33 PM · Windows
epriestley added a comment to T8298: Fix Windows Escaping.

I'm pretty sure that if execx() an editor like vim or nano, whether you use bypass_shell or not, it just executes it uselessly in the background and hangs forever. That is, the behavior of these two programs is very different on Linux, and I believe it will be very different on Windows no matter what bypass_shell is set to:

Oct 8 2015, 9:17 PM · Windows
BYK added a comment to T8298: Fix Windows Escaping.

How does that obsolete PhutilExecPassthru?

Oct 8 2015, 8:37 PM · Windows
epriestley added a comment to T8298: Fix Windows Escaping.

How does that obsolete PhutilExecPassthru?

Oct 8 2015, 8:20 PM · Windows
BYK added a comment to T8298: Fix Windows Escaping.

Okay, proposal: how about we implement the equivalent of this: https://github.com/scopatz/xonsh/blob/fa356d728b2852274f8aa0260dc7da3b7b0f08ab/xonsh/built_ins.py#L268

Oct 8 2015, 8:15 PM · Windows
BYK added a comment to T8298: Fix Windows Escaping.

Oh god, and I thought Python's subprocess module was pretty bad.

Oct 8 2015, 7:49 PM · Windows
epriestley added a comment to T8298: Fix Windows Escaping.

D1938 is the actual origin, I think.

Oct 8 2015, 7:41 PM · Windows
epriestley added a comment to T8298: Fix Windows Escaping.

Oh, that diff just moved it, so it's actually older than that.

Oct 8 2015, 7:40 PM · Windows
epriestley added a comment to T8298: Fix Windows Escaping.

Possibly. We've used it in PhutilExecPassthru since D6774.

Oct 8 2015, 7:40 PM · Windows
epriestley added a comment to T8298: Fix Windows Escaping.

D14246 / D11396 / T6966 are about a specific Windows issue where the command name is treated differently from other arguments. That is, these commands mean different things:

Oct 8 2015, 7:36 PM · Windows
BYK added a comment to T8298: Fix Windows Escaping.

bypass_shell (windows only): bypass cmd.exe shell when set to TRUE
5.2.1 Added the bypass_shell option to the other_options parameter.

Oct 8 2015, 7:35 PM · Windows
avivey added a project to T2465: Context not available for revisions created on Windows : Windows.
Oct 8 2015, 5:30 AM · Windows, Subversion, Arcanist

Sep 30 2015

hach-que added a comment to T9441: Cygwin PHP segfaults with arcanist.

Yes, it does.

Sep 30 2015, 12:13 PM · Windows, Arcanist

Sep 29 2015

cspeckmim added a comment to T9441: Cygwin PHP segfaults with arcanist.

Does vanilla cygwin include its own PHP?

Sep 29 2015, 10:32 PM · Windows, Arcanist
epkugelmass added a comment to T9441: Cygwin PHP segfaults with arcanist.

Experiencing the same problem in 'vanilla' cygwin

Sep 29 2015, 10:24 PM · Windows, Arcanist
RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

I forgot about that. The Windows

mode

command will return the words such as "Columns" per the locale of Windows. So looking for literally "Columns" will only work for the English Windows locales.

Sep 29 2015, 6:40 PM · Windows, libphutil

Sep 28 2015

theunreplicated added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

As for the regex note that I am not the author of it,as stated in my comment above(maybe it has been overlooked because i didn't say that clearly),i have just taken it from stackoverflow(if that's ok) to provide a solution for this task as it seemed to be straightforward.As you said this regex looks really weird,I for myself would't even be able to form such an regex,but I am able to explain roughly in detail.
So mode contains in my case 2 blocks,one with sth others and the other with the headline containng CON,this regex looks for the first appearance of CON followed by an arbitary number of any characters following a : .As you have pointed it's better to use the con directly via mode con,i have added a patch that does it.The : is follwed by a sequence marked by ( ),this sequence is detected when a line break(\n occurs) followed by an arbitary number of characters without |,so every time a line break occurs it will trigger that sequence.THe 3 in the { specifies how many times this sequence should match in the text before the regex engine proceeds with the next statement(I bet you're aware of this),which is (?<cols>\d+).
I guess ?<cols> is to copy the matched contents of this sequence in to the key with cols in $matches,so it's redundant as basically every sequence marked with( is accessible by a number as key.The \d stands for digits,so as soon as the regex engine encounters a non-digit,it will abort.

Sep 28 2015, 10:17 PM · Windows, libphutil
RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

"I see" said the blind man as he tripped over his code.

Sep 28 2015, 6:17 PM · Windows, libphutil
cspeckmim added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

My suggestion was regarding the

`mode`

changing to

`mode con`

Which will limit the output of the mode command to only include the keyboard/console device, rather than running a blanket mode that returns status for all devices, then relying on the regex to locate the CON. I suggested this as a way that might reduce the complexity of the regex.

Sep 28 2015, 3:08 AM · Windows, libphutil
RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

+1 vote from me to comment the use of regular expressions (how can anything that looks like this "'/CON.*:(\n[^|]+?){3}(?<cols>\d+)/" be called regular?)

Sep 28 2015, 3:05 AM · Windows, libphutil

Sep 27 2015

epriestley added a comment to T8298: Fix Windows Escaping.

I think the way forward here is likely:

Sep 27 2015, 12:57 PM · Windows
cspeckmim added a comment to T8298: Fix Windows Escaping.

Possibly a bug with PHP's implementation of escapeshellarg for Windows?

Sep 27 2015, 8:28 AM · Windows

Sep 26 2015

cspeckmim added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

If you submit this as a differential revision it will give a better interface for others to review and discuss the suggested change.

Sep 26 2015, 10:19 PM · Windows, libphutil
theunreplicated added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

I think my suggested code from stackoverflow for Windows behaves like its unix counterpart,as it outputs the same numberm,namely 80, and does not rely on the actual size of the terminal window.However,note,that I have not tested the following code in conjunction with phutil,only tested the code stated in my comment above.

Sep 26 2015, 9:17 PM · Windows, libphutil
chad closed Q144: Process Configuration For Code Reviews as resolved.
Sep 26 2015, 8:05 PM · Windows, Arcanist

Sep 23 2015

chad closed Q145: After update I can't run arc because of "Failed to load class or interface 'PhutilClassMapQuery'" as resolved.
Sep 23 2015, 2:05 PM · Windows, Arcanist
cspeckmim added a comment to T9459: arc upgrade on Windows doesn't understand it's a git repo.

I think this is a dup of T8298, T8291, etc.

Sep 23 2015, 1:15 AM · Arcanist, Windows

Sep 22 2015

mrkanaly added a comment to T9459: arc upgrade on Windows doesn't understand it's a git repo.

More information:

Sep 22 2015, 9:01 PM · Arcanist, Windows
avivey updated the task description for T9459: arc upgrade on Windows doesn't understand it's a git repo.
Sep 22 2015, 8:51 PM · Arcanist, Windows
avivey created T9459: arc upgrade on Windows doesn't understand it's a git repo.
Sep 22 2015, 8:49 PM · Arcanist, Windows
chad added projects to Q145: After update I can't run arc because of "Failed to load class or interface 'PhutilClassMapQuery'": Arcanist, Windows.
Sep 22 2015, 7:06 PM · Windows, Arcanist

Sep 21 2015

chad added projects to Q144: Process Configuration For Code Reviews: Arcanist, Windows.
Sep 21 2015, 4:06 PM · Windows, Arcanist
• zhouxinhu1 added a member for Windows: • zhouxinhu1.
Sep 21 2015, 10:05 AM
RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

Here is the code snippet for Unix/Linux:

Sep 21 2015, 2:40 AM · Windows, libphutil
RyanNerd added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.

In the code the unix Command tput cols is used. All this really does is look at the $TERM environment variable and infers the column count from that. On my Mint 17.2 this is 'xterm' and the tput cols command always returns 80 (which is the default column width for xterm).

Sep 21 2015, 2:31 AM · Windows, libphutil

Sep 20 2015

theunreplicated added a comment to T9444: The function phutil_console_get_terminal_width needs to work with Windows.
preg_match('/CON.*:(\n[^|]+?){3}(?<cols>\d+)/', `mode`, $matches);
$cols = $matches['cols'];

This outputs the number of columns of the terminal window according to http://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window (it's a weird trick),so I assume the width can be concluded in some way from the number of columns. Tested it ,but however when resizing the window by mouse the number of columns stays the same,don't know whether this behaves exactly as the non-Windows implementation.

Sep 20 2015, 7:49 PM · Windows, libphutil
hach-que added a comment to T9441: Cygwin PHP segfaults with arcanist.

The recommended way of running Arcanist under Windows is from either the command prompt or msysgit, which can be installed from https://git-for-windows.github.io/, with the official PHP for Windows binaries installed in some directory and added to your PATH. Guidance on how to set up Arcanist on Windows can be found at https://secure.phabricator.com/book/phabricator/article/arcanist_windows/.

Sep 20 2015, 10:42 AM · Windows, Arcanist

Sep 19 2015

joshuaspence renamed T9444: The function phutil_console_get_terminal_width needs to work with Windows from The function phutil_console_get_terminal_width() needs to work with Windows to The function phutil_console_get_terminal_width needs to work with Windows.
Sep 19 2015, 3:56 AM · Windows, libphutil
RyanNerd added a project to T9444: The function phutil_console_get_terminal_width needs to work with Windows: Windows.
Sep 19 2015, 2:10 AM · Windows, libphutil

Sep 18 2015

chad added a project to T9441: Cygwin PHP segfaults with arcanist: Windows.
Sep 18 2015, 3:41 PM · Windows, Arcanist

Sep 14 2015

epriestley removed a project from T8855: Add Powershell support to Arcanist documentation: Installing & Upgrading.
Sep 14 2015, 2:04 PM · Windows, Arcanist

Sep 12 2015

• abrahams updated the task description for T8855: Add Powershell support to Arcanist documentation.
Sep 12 2015, 10:25 PM · Windows, Arcanist
• abrahams added a comment to T8855: Add Powershell support to Arcanist documentation.

It's nicer not to add things to the path variable unless necessary. Also, manually uninstalling or changing the installation directory by changing your path is more arduous than altering a line in your PS profile. Arc runs perfectly well without adding anything except PHP to the path, therefore a function is a cleaner solution for powershell-specific installation instructions.

Sep 12 2015, 10:25 PM · Windows, Arcanist

Sep 8 2015

avivey added a project to T8855: Add Powershell support to Arcanist documentation: Windows.
Sep 8 2015, 4:41 AM · Windows, Arcanist

Aug 5 2015

chad added a comment to T9047: arc lint can not find php and phpcs.

Will leave it open for now if anyone passing by has additional thoughts. If you can list the exact steps to reproduce, that would be helpful too (like which shells specifically have been tested).

Aug 5 2015, 2:17 AM · Windows, Lint, Arcanist
chad closed T5723: Unclear installation instruction for arc on Windows as Resolved.

I can't reproduce this.

Aug 5 2015, 2:13 AM · Windows, Arcanist, Documentation
chad added a project to T9047: arc lint can not find php and phpcs: Windows.
Aug 5 2015, 2:11 AM · Windows, Lint, Arcanist

Aug 3 2015

avivey added a comment to T9049: Setting editor fails when following instructions.

You can also try arc set-config --trace editor .... to see the string arc is actually getting.

Aug 3 2015, 12:45 PM · Windows, Arcanist
avivey added a comment to T9049: Setting editor fails when following instructions.

Windows shell behaviour is a big icky mess, and it doesn't help that there are so many variants of it. T6966, T8821 and T8298 are some of the tickets that describe this.

Aug 3 2015, 12:44 PM · Windows, Arcanist
• JamesRamm added a comment to T9049: Setting editor fails when following instructions.

A work around is to add the notepad++ directory to the system PATH so you can then do:

Aug 3 2015, 12:27 PM · Windows, Arcanist
avivey added a project to T9049: Setting editor fails when following instructions: Windows.
Aug 3 2015, 12:15 PM · Windows, Arcanist

Jul 12 2015

• quinyx_martin added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

Of course, I understand that the solution needs to be done properly in order to not break for others. I like the implementation in the diff you mentioned - it is not pretty but at least we contain the "hacks" in one place for the different environments. And who knows - maybe Windows 10 will give us a proper bash to use so that these problems will be long gone.

Jul 12 2015, 2:54 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

The problem is that escaping commands on Windows is thoroughly broken; there is no one solution that will work universally for everyone. Fixing this issue by changing the escaping so that it works under Command Prompt may well break it under msysGit, and it's important to understand in what situations the error occurs so that we don't cause regressions for anyone else.

Jul 12 2015, 1:39 PM · Windows, libphutil, Arcanist
• quinyx_martin added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

Can you try running Arcanist commands under msysGit?

Jul 12 2015, 1:31 PM · Windows, libphutil, Arcanist
• quinyx_martin updated the task description for T8821: arc commands (diff, version) fails on Windows - terrible fix inside.
Jul 12 2015, 1:28 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

Can you try running Arcanist commands under msysGit?

Jul 12 2015, 1:25 PM · Windows, libphutil, Arcanist
• quinyx_martin added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

We used the above script to install Arcanist this Friday (2 days ago). If you are running a version near that date or before it, then it's definitely an environment issue as the script works fine.

The only real issue with this approach is that there is a limit to the PATH environment string so what I had to do was to shorten all my entries by converting everything to DOS paths.

This is somewhat concerning; I have no idea what effect this will have.

I do not run msysGit Bash

You'll need Git installed for even the most basic of Arcanist commands to work (how did you clone Arcanist / libphutil without having Git installed?)

Jul 12 2015, 1:24 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

We used the above script to install Arcanist this Friday (2 days ago). If you are running a version near that date or before it, then it's definitely an environment issue as the script works fine.

Jul 12 2015, 1:08 PM · Windows, libphutil, Arcanist
• quinyx_martin added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

I don't understand where these issues are coming from; we have several developers that use the latest version of Arcanist and libphutil on Windows without issue.

I think what needs to be established:

  • How did you install PHP?
  • What version of PHP are you using?
  • Does Arcanist work fine under msysGit Bash?
  • Does Arcanist work fine under Windows Command Prompt?
  • Does Arcanist work fine under Windows PowerShell?
  • What value do you have for system-wide PATH?
  • Is both arc.bat and php.exe in your system-wide PATH?
Jul 12 2015, 1:05 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

For reference, this is the Powershell script we use to install Arcanist on developer machines (replace the URL https://code.redpointsoftware.com.au/ with your own instance). On a fresh install of Windows (or an install of Windows that does not have PHP or Arcanist installed), run this under an Administrator Powershell prompt and restart the computer.

Jul 12 2015, 12:15 PM · Windows, libphutil, Arcanist
hach-que added a comment to T8821: arc commands (diff, version) fails on Windows - terrible fix inside.

I don't understand where these issues are coming from; we have several developers that use the latest version of Arcanist and libphutil on Windows without issue.

Jul 12 2015, 12:11 PM · Windows, libphutil, Arcanist

Jul 10 2015

avivey added a project to T8821: arc commands (diff, version) fails on Windows - terrible fix inside: Windows.
Jul 10 2015, 8:08 PM · Windows, libphutil, Arcanist

Jul 5 2015

staticshock added a member for Windows: staticshock.
Jul 5 2015, 8:45 PM

Jun 29 2015

cspeckmim added a comment to T5724: ANSI color escape sequences seem broken for arc in git bash on windows.

Seeing this issue on the following machine:

Jun 29 2015, 7:05 PM · Windows, Arcanist

May 22 2015

epriestley added a project to T8291: arc version fails on Windows: Windows.
May 22 2015, 3:55 PM · Windows, Arcanist
epriestley added a subtask for T6966: Windows quoting conventions still bad: T8298: Fix Windows Escaping.
May 22 2015, 3:55 PM · Windows, Arcanist
epriestley added a parent task for T8298: Fix Windows Escaping: T6966: Windows quoting conventions still bad.
May 22 2015, 3:55 PM · Windows
epriestley added a parent task for T8298: Fix Windows Escaping: T8291: arc version fails on Windows.
May 22 2015, 3:53 PM · Windows
epriestley created T8298: Fix Windows Escaping.
May 22 2015, 3:53 PM · Windows

May 14 2015

epriestley closed T7109: Mousewheel scrolling is sluggish in Firefox/Win as Resolved.
May 14 2015, 11:07 PM · Firefox, Windows, PHUI

May 7 2015

epriestley triaged T8075: arc patch fails on Windows with SVN (because it uses "cd", not "setCWD") as Low priority.
May 7 2015, 1:45 PM · Windows, Arcanist

May 5 2015

oujesky updated the task description for T8075: arc patch fails on Windows with SVN (because it uses "cd", not "setCWD").
May 5 2015, 2:57 PM · Windows, Arcanist
oujesky created T8075: arc patch fails on Windows with SVN (because it uses "cd", not "setCWD").
May 5 2015, 2:56 PM · Windows, Arcanist

May 1 2015

CodeMouse92 closed T7853: All files uploaded via `arc diff` empty (Windows) as Invalid.
May 1 2015, 12:25 AM · Windows, Differential, Arcanist
CodeMouse92 updated subscribers of T7853: All files uploaded via `arc diff` empty (Windows).

It was a case of operator error in this situation in following workaround T2465: Context not available for revisions created on Windows by @raman.rathod. (The path has to be in double-quotes, and spaces were omitted in "Program Files (x86). Simple case of everybody knows, so nobody knows.

May 1 2015, 12:25 AM · Windows, Differential, Arcanist

Apr 24 2015

thomas-barthelemy added a comment to T5724: ANSI color escape sequences seem broken for arc in git bash on windows.

I ran into the same issue with the default install of git-bash on Windows (8.1 x64), I ended up adding a function to my bash profile as per @michas2 idea:

Apr 24 2015, 5:15 AM · Windows, Arcanist

Apr 21 2015

staticshock added a project to T7853: All files uploaded via `arc diff` empty (Windows): Windows.
Apr 21 2015, 1:00 AM · Windows, Differential, Arcanist

Mar 30 2015

BYK added a comment to T7109: Mousewheel scrolling is sluggish in Firefox/Win.

This has been driving me and one of my colleagues crazy for a while now and he came with the following Stylish rule to get rid of it:

Mar 30 2015, 8:13 AM · Firefox, Windows, PHUI

Mar 12 2015

staticshock added a project to T7527: `arc lint` doesn't show lint warnings in powershell, cmd.exe, and git bash: Windows.
Mar 12 2015, 6:41 PM · Windows, Lint

Mar 4 2015

chad added a project to T7109: Mousewheel scrolling is sluggish in Firefox/Win: Firefox.
Mar 4 2015, 4:40 AM · Firefox, Windows, PHUI

Feb 25 2015

chad moved T7109: Mousewheel scrolling is sluggish in Firefox/Win from Backlog to Scrollbar on the PHUI board.
Feb 25 2015, 11:31 PM · Firefox, Windows, PHUI
btrahan placed T7109: Mousewheel scrolling is sluggish in Firefox/Win up for grabs.
Feb 25 2015, 11:26 PM · Firefox, Windows, PHUI
btrahan claimed T7109: Mousewheel scrolling is sluggish in Firefox/Win.
Feb 25 2015, 11:25 PM · Firefox, Windows, PHUI

Feb 2 2015

chad added a project to T7109: Mousewheel scrolling is sluggish in Firefox/Win: Windows.
Feb 2 2015, 10:33 PM · Firefox, Windows, PHUI

Jan 28 2015

staticshock updated subscribers of T6966: Windows quoting conventions still bad.

Summary of a conversation I had about this with @epriestley on IRC:

Jan 28 2015, 6:29 PM · Windows, Arcanist

Jan 18 2015

ctuwuzida moved T6966: Windows quoting conventions still bad from Completed to Backlog on the Arcanist board.
Jan 18 2015, 9:51 AM · Windows, Arcanist
ctuwuzida moved T6966: Windows quoting conventions still bad from Backlog to Completed on the Arcanist board.
Jan 18 2015, 9:50 AM · Windows, Arcanist
ctuwuzida moved T6966: Windows quoting conventions still bad from In Progress to Backlog on the Arcanist board.
Jan 18 2015, 9:50 AM · Windows, Arcanist