hyper: Hyper breaks laravel valet share
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: macOS 10.13.6
- Hyper.app version: Hyper 3.0.2
- Link of a Gist with the contents of your .hyper.js: https://gist.github.com/kms-rscholz/b89fd0c43f55b99d619bfa2829daa424
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
- The issue is reproducible in vanilla Hyper.app: Is Vanilla
Issue
When trying to use Laravel’s valet share command in Hyper it throws the following error:
ERROR: Tunnel 'command_line' specifies an invalid or malformed address 'XXXXX:80': strange hostname
The command works fine in the native macOS Terminal and other terminal apps. More info about the issue/error can be found here: https://github.com/laravel/valet/issues/790#issuecomment-522358081
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 17 (1 by maintainers)
@LabhanshAgrawal
cdinto the php projectvalet shareinto hyper to reproduce the error.Doing the same with the nativ MacOS Terminal will create the desired result.
Fixed in valet
v2.13.19(release)Might be related to
TERM? It’s probably an issue of differing environments between Terminal and Hyper.@kms-rscholz thanks for the guide I’m able to reproduce this The error seems to be because of ansi color codes see cpriego/valet-linux#221 In Hyper
In Terminal

I tried again after replacing
$TLDwithtestin~/.composer/vendor/laravel/valet/valetand it started working.I’m not sure why it’s returning normal output in terminal and colored in hyper.
I’ve also compared environment variables to see if we’re setting something which is causing this.
It gives normal output in Terminus and VS Code terminal.
This behavior also seems to sort of propagate down, if I run it in xterm.js demo started from hyper it gives colored output, and if started from terminal it gives normal output
@Tyriar can you please help us out a bit here, if we might be doing something wrong while using
node-ptyto start the shell or something else.I don’t have any other clue to push ahead. (Should’ve studied a bit on unix :sigh: 😛)