Hyper: Gradle build output is messed up

Created on 25 Oct 2017  路  7Comments  路  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

Issue

When issuing a build with gradle, it seems to try and detect what colors to show. Whatever it decides upon, the terminal can't handle it properly. Here's a sample screenshot:
Sample

As you can see, other colors work in the console, but whatever Gradle is trying to do, it doesn't work. I'm not sure if this is a Gradle issue, but this DOES NOT happen in the native terminal that comes with git bash. Comparison:

Bash

Windows

Most helpful comment

I fixed this myself after some annoying debugging. Hyper sets the TERM environment to xterm-256 (I think this is Hyper's doing), which changes the way Gradle does the output. To fix this, I set it manually in my config:

env: {
   TERM: 'cygwin'
}

I'm not sure who's end this problem originates on. Feel free to close if you think it's a Gradle issue.

All 7 comments

@albinekb Any more info I can provide for this?

Don't think so, I can take a look soon if I can reproduce 馃憤

@albinekb Any luck? Happy to try and help if I can!

I fixed this myself after some annoying debugging. Hyper sets the TERM environment to xterm-256 (I think this is Hyper's doing), which changes the way Gradle does the output. To fix this, I set it manually in my config:

env: {
   TERM: 'cygwin'
}

I'm not sure who's end this problem originates on. Feel free to close if you think it's a Gradle issue.

@NomNuggetNom It works, thank you.

@albinekb Is there a plan for a long-term solution? Changing the config file just to fix hyper for gradle doesn't seem like a good long term solution to me.

I still experience this issue when running a gradlew bootRun command.
V2.1.0-canary.2. Tried to set the env to cygwin. No difference for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juicygoose picture juicygoose  路  3Comments

laur1s picture laur1s  路  3Comments

leo picture leo  路  3Comments

rauchg picture rauchg  路  3Comments

aem picture aem  路  3Comments