vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.34k stars 3.52k forks source link

New Ubuntu on Windows doesn't run properly like the legacy 'bash' tools #1994

Closed ow closed 7 years ago

ow commented 7 years ago

This doesn't work in Hyper, because you need the absolute URL. Before, I launched it using the method that's documented, but now it seems there's no reliable way to launch Bash on Windows. I did some hunting, and the Ubuntu executable lives in your appdata now, so for me, it's at C:\Users\hi\AppData\Local\Microsoft\WindowsApps\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\Ubuntu.exe but even using that with escaped \ doesn't work, with Hyper launching and immediately closing.

Has anyone else run into this? I realize it's on a preview version of Windows, but this is a few weeks out from shipping to the world and replaces the legacy bash method.

BTW — I can get in for now by opening Hyper with cmd, then typing Ubuntu.

ow commented 7 years ago

Could be that if you try jump in via another tool, like Gitbash, that you get a permission denied error

lucat1 commented 7 years ago

Try with cmd.exe /k bash

ow commented 7 years ago

@LucaT1 the point is that the bash command is no longer relevant (and that also doesn't work, even for legacy), sadly (I tested the above with the ubuntu command and get a File not found error :(

colbin8r commented 7 years ago

@ow What if you use cmd.exe /k ubuntu && bash or something like that? Also, is there an MSDN article or something that discusses this change in the Insider build? I haven't seen anything on https://msdn.microsoft.com/en-us/commandline/wsl/release_notes

bitcrazed commented 7 years ago

A few things here:

In order to support multiple distros, we needed to update the command-line tooling:

We're looking into making some improvements to our tooling to better support the scenario above: Bear with me.

ow commented 7 years ago

Awesome, @bitcrazed — great clarification and un-sticks me here! Seems like a good workaround in the meantime is setting a default via wslconfig which means lots of people can just use what's already documented, but maybe somehow we can make it clearer somewhere!