dolt icon indicating copy to clipboard operation
dolt copied to clipboard

`dolt sql` doesn't open a shell in Git Bash on Windows.

Open coffeegoddd opened this issue 2 years ago • 1 comments

Running dolt sql in Git Bash installed with Git 2.38.1.windows.1 just hangs. No SQL shell is opened.

Dolt version used wasv0.51.4.

coffeegoddd avatar Nov 21 '22 23:11 coffeegoddd

I dug into this a little and it's weird...

I think this is mostly a problem with git bash itself, the same thing also happens when trying to run the python interactive shell (at least on my machine). python doesn't work, but python -i does...

Additionally, it looks like there are multiple executables for git bash (paths are assuming default installation settings)

  • C:\Program Files\Git\git-bash.exe is the one that linked in the shortcut, and doesn't work with dolt shell
  • C:\Program Files\Git\bin\bash.exe is the one used in Goland's terminal window, and does work with dolt shell

Also, while it may look like it's hanging, certain sql queries actually print something, and others cause it to quit :) image

Sources:

  • https://stackoverflow.com/questions/32597209/python-not-working-in-the-command-line-of-git-bash
  • https://sourceforge.net/p/msys2/tickets/32/
  • owning a windows laptop

jycor avatar Nov 22 '22 23:11 jycor