Hyper: Unable to use with "Windows Store" Unbuntu

Created on 27 Jul 2017  路  6Comments  路  Source: vercel/hyper

  • [ x] I am on the latest Hyper.app version
  • [ x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Windows 10
  • Hyper.app version: 1.3.3
  • Link of a Gist with the contents of your .hyper.js: https://gist.github.com/cfjedimaster/7494afcd1b04a98a103cfa7c191fb933
  • Relevant information from devtools _(CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere)_: None as it crashes immediately.
  • The issue is reproducible in vanilla Hyper.app: Um, ok, honestly didn't test. I think it will make sense in a bit. ;)

Issue

I was using WSL (WIndows Subsystem for Linux) and today upgraded to the "Windows Store" release of Ubuntu. Doing so adds a new .exe to your system, ubuntu.exe. I have confirmed that Visual Studio Code can correctly use this as the integrated shell. When used in Hyper, it loads and then immediately crashes.

Windows

Most helpful comment

Ok, thanks to Scott Hanselman of Microsoft, here is the fix.

For shell, use cmd.exe
For args, use: /c ubuntu

And then it works.

All 6 comments

Ok, thanks to Scott Hanselman of Microsoft, here is the fix.

For shell, use cmd.exe
For args, use: /c ubuntu

And then it works.

This used to work - it's now broken with W10 build 16281.rs3. I'm using Hyper.js 1.4.3 and those shell and args strings. Hyper.js quits immediately on launch with no error popup when I use those settings.

_Workaround:_ I'm having to use shell: 'cmd.exe', and shellArgs: '/c bash'. which will give me a bash terminal, a bit of a pain since I'm using zsh.

@hikurangi can't you just type "zsh" to get to zsh when you're in bash? 馃 and then if that works just add it to the args like shellArgs: '/c bash -c "zsh"'?

@albinekb thanks for the workaround.

1) Typing "zsh" does launch zsh successfully when I'm in bash.
However...
2) following that, I've tried using the shellArgs you mentioned, and Hyper quits immediately on launch as it did in my original reply.

So I can get it to work in a somewhat painful way 1), but I think the important takeaway here is that (for me) Hyper 1.4.3 doesn't want to open the Windows Store Ubuntu using the shellArgs supplied by @cfjedimaster on 16281.rs3.

fwiw cmd.exe and /c ubuntu work on 16288.1

I'm on the Fall Creator's Update and was able to get it working. I have it working using either 'bash.exe' (which works by making sure you have a default "linux" set with wslconfig) or 'ubuntu.exe'. The trick was setting the shell args to [], not [''].

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sarneeh picture sarneeh  路  3Comments

daenuprobst picture daenuprobst  路  3Comments

juicygoose picture juicygoose  路  3Comments

cilice picture cilice  路  3Comments

yvan-sraka picture yvan-sraka  路  3Comments