-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for msys2 bash #99
Comments
For now this is not supported, but i will add it to potential TODO list. The problem here might be another filesystem path mapping ( WSL I assume msys2 console cannot handle native windows path, right? |
Well, only when enclosed in double quotes '"'. # The three paths are all equivalent
henrik@superputte MINGW64 ~
$ ls "c:\this\path does\exist" \
> c:/this/path\ does/exist \
> /c/this/path\ does/exist
'/c/this/path does/exist':
'some file.txt'
'c:/this/path does/exist':
'some file.txt'
'c:\this\path does\exist':
'some file.txt'
I don't know how fragile this (heuristic?) system is but I always use the unix style |
Looking forward to this feature! Also the bash in git for windows please, which is identical to the msys2 bash. |
I took a look at this, it will not be that easy, for example:
I will check this fully once I have more time. |
I have narrowed it down to this problem:
mkfifo /tmp/testpipe ; exec 3<>/tmp/testpipe ; cat <&3
echo "test" >/tmp/testpipe ; echo "test2" >/tmp/testpipe ; This works ok when i run two WSL consoles (or in Linux), and seems to be a reason why i cannot get this working. Any help with solving this would be appreciated, since this is the way how bashdb sends/receives debuuger input/output (stdin and stdout are used for debugged script)... |
Thank you very much for your efforts! |
@rogalmic - Also big thanks from me. |
I tested cygwin, git-bash, mingw - they all seem to have problems with fifo support. Like you commented, this is probably because how those windows solutions are designed:
rogalmic@WW302902 /usr/bin
$ /usr/bin/mount
C:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin64 on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
rogalmic@WW302902 MINGW64 /bin
$ mount
C:/Program Files/Git on / type ntfs (binary,noacl,auto)
C:/Program Files/Git/usr/bin on /bin type ntfs (binary,noacl,auto)
C:/Users/rogalmic/AppData/Local/Temp on /tmp type ntfs (binary,noacl,posix=0,usertemp)
C: on /c type ntfs (binary,noacl,posix=0,user,noumount,auto) Underlying Maybe the best way would be to make fifo work in cygwin/mingw would be to have |
Hi, Pycharm has a plugin Bashsupport-pro which works fine with wsl, msys2, linux, macosx. Pycharm use bashdb too just like vscode-bash-debug keep the faith ;) Regards |
Now it works :) ! |
@endmarsfr Thanks. 👍 |
@henrik-jensen, I hope you could give us your feedback soon |
I'm also waiting for a msys2 fix 👍 |
@endmarsfr I'm so sorry for the promises I gave. A few days have turned into several month (over 8 month actually) and I haven't really tried to fix my system. Too afraid it might break something. I really wish I weren't so laissez-faire with my system setup in the past. I will slowly try to get back into bash/vscode extension mode of thinking and, at some point in time, hopefully sooner than later, maybe give you some kind of valuable feedback. |
Hi @henrik-jensen |
Executables
Version of bash-debug: 0.3.3
Debug output
Details
Is it possible to use msys2 bash as an alternative to wsl.exe? wsl (ubuntu 18.04) works fine but I would like to debug some scripts under msys2.
The text was updated successfully, but these errors were encountered: