<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>258704</bug_id>
          
          <creation_ts>2023-06-29 17:21:13 -0700</creation_ts>
          <short_desc>[Win] &quot;git-webkit pr&quot; reports &quot;FileNotFoundError: [WinError 2] The system cannot find the file specified&quot;</short_desc>
          <delta_ts>2023-10-16 13:24:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=239730</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1964369</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-06-29 17:21:13 -0700</bug_when>
    <thetext>[Win] &quot;git-webkit pr&quot; reports &quot;FileNotFoundError: [WinError 2] The system cannot find the file specified&quot;

PS C:\home\webkit\ga&gt; python .\Tools\Scripts\git-webkit pr
Traceback (most recent call last):
  File &quot;C:\home\webkit\ga\Tools\Scripts\git-webkit&quot;, line 82, in &lt;module&gt;
    sys.exit(program.main(
             ^^^^^^^^^^^^^
  File &quot;C:\home\webkit\ga\Tools\Scripts\libraries\webkitscmpy\webkitscmpy\program\__init__.py&quot;, line 183, in main
    return parsed.main(
           ^^^^^^^^^^^^
  File &quot;C:\home\webkit\ga\Tools\Scripts\libraries\webkitscmpy\webkitscmpy\program\pull_request.py&quot;, line 721, in main
    return cls.create_pull_request(repository, args, branch_point)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;C:\home\webkit\ga\Tools\Scripts\libraries\webkitscmpy\webkitscmpy\program\pull_request.py&quot;, line 388, in create_pull_request
    if args.checks and not cls.pre_pr_checks(repository):
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;C:\home\webkit\ga\Tools\Scripts\libraries\webkitscmpy\webkitscmpy\program\pull_request.py&quot;, line 319, in pre_pr_checks
    command = run(path.split(&apos; &apos;), cwd=repository.root_path)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;C:\home\webkit\ga\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\subprocess_utils.py&quot;, line 52, in run
    return subprocess.run(*popenargs, timeout=timeout, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;C:\Program Files\Python311\Lib\subprocess.py&quot;, line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;C:\Program Files\Python311\Lib\subprocess.py&quot;, line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File &quot;C:\Program Files\Python311\Lib\subprocess.py&quot;, line 1509, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964370</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-06-29 17:22:39 -0700</bug_when>
    <thetext>&quot;python3&quot; is hard-coded. But, no python3.exe on Windows.
https://github.com/WebKit/WebKit/blob/73b58272b44dbb9c6edfec221839210a04d7f92c/metadata/git_config_extension#L21</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1964371</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-06-29 17:24:12 -0700</bug_when>
    <thetext>There are two ways to work around.

Adding git config:

&gt; git config --add webkitscmpy.pre-pr.style-checker &quot;python Tools/Scripts/check-webkit-style&quot;

Creating a symlink in the directory of python.exe:

&gt; mklink python3.exe python.exe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1965466</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-07-06 17:22:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/111878804&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985268</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-10-15 21:47:03 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/19102</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1985400</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-10-16 13:24:10 -0700</bug_when>
    <thetext>Committed 269375@main (3e52075ba71d): &lt;https://commits.webkit.org/269375@main&gt;

Reviewed commits have been landed. Closing PR #19102 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>