git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GFW fails with ST3 on Windows 11

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Oct 27, 2023, 11:24 UTC
Message-ID
<ZTud8HxDxK1UgLCR@tapette.crustytoothpaste.net>
In-Reply-To
<e1de1948-8604-4c8f-961b-d214efa4ed84@app.fastmail.com>
On 2023-10-27 at 09:59:47, John wrote:
Show 41 quoted lines
> Brian,
> 
> Thanks very much for your suggestions. Unfortunately, after each command, I continue to get the same error messages noted in my original email.
> 
> Any Windows 11 experts out there--please help.
> 
> John
> 
> On Fri, 27 Oct 2023, at 16:25, brian m. carlson wrote:
> > On 2023-10-27 at 07:31:32, John wrote:
> >> I have been using Sublime Text 3 as the editor on Git for Windows for years, on Windows 10. I recently purchased a Windows 11 machine. On that machine, when I give GFW the following command, I get the response shown:
> >> 
> >> $ git commit -a
> >> […]
> >> hint: Waiting for your editor to close the file… C:\Program Files\Sublime Text 3\sublime_text.exe: C:Program: command not found
> >> error: There was a problem with the editor ‘C:\Program Files\Sublime Text 3\sublime_text.exe’.
> >> Please supply the message using either -m or -F option.
> >
> > I think the "command not found" indicates that you may have specified
> > your editor incorrectly.  In Git Bash, can you try the following
> > commands, one at a time, and then commit between each one to see if one
> > of them works?
> >
> >   git config --global core.editor '"C:/Program Files/Sublime Text 
> > 3/sublime_text.exe"'
> >   git config --global core.editor '"C:\Program Files\Sublime Text 
> > 3\sublime_text.exe"'
> >
> > I believe that both should work here.
> >
> > My guess is that this is the situation hinted at in the FAQ[0], where,
> > because the editor is passed to the shell (bash), you need to use double
> > quotes to prevent it from thinking that you have a program named
> > "C:\Program" with arguments "Files\Sublime", "Text", and
> > "3\sublime_text.exe".
> >
> > Hopefully this works; if not, please let us know, and hopefully someone
> > on the list who uses Windows can provide some help.  I'm afraid that, as
> > a Linux user, I'm not able to provide more than a guess here.
> >
> > [0] https://git-scm.com/docs/gitfaq#configure-editor

It looks like this was sent to just me and not the list, so forwarding it back for additional assistance.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Konstantin Khomoutov
Message 5 of 5 in “GFW fails with ST3 on Windows 11”
  1. JohnOct 27, 2023
  2. brian m. carlsonOct 27, 2023
  3. Konstantin KhomoutovOct 27, 2023
  4. Konstantin KhomoutovOct 27, 2023
  5. brian m. carlsonOct 27, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.