-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Could not open terminal for stdout: Could not get termcap entry #4426
Comments
What did you do to fix this? It looks like Arch removed the termcap database as it's been replaced by terminfo. Gradle should probably use terminfo as well for native terminal support, as termcap is pretty ancient and unmaintained. |
I just screwed with the Konsole environment to change the TERM variable to something that's in the database, in this case xterm-color |
I had this issue last night as well (same build environment as OP) and discovered the same workaround. xterm-256color is a valid TERM setting though, so using a different setting as a workaround doesn't change the fact that there's a bug in Gradle. |
I checked my local database and couldn't find xterm-256color, so I assumed that's what was causing my problems |
At least for terminfo, xterm-256color exists and is currently recognized as my terminal type.
|
I uninstalled |
Actually yeah, now that I grep xterm-256color is in there. In that case this is definitely a bug with gradle |
I don't think this is a bug in Gradle; native-platform is just calling
ncurses `tgetent()`, which for me was messed up when `ncurses5-compat-libs`
was installed. Other ncurses programs calling this were failing as well or
falling back to dumb terminal modes.
…On Mon, Feb 19, 2018, 3:54 PM Redrield ***@***.***> wrote:
Reopened #4426 <#4426>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4426 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAH4fFQvunCVTKALrHYvhYu2D5jeVslJks5tWgmXgaJpZM4SJxcW>
.
|
I'll try to reproduce at home after uninstalling compat libs and see if I still get it |
I have ncurses5-compat-libs installed and the test program I wrote last night from the native-platform code worked fine for me:
|
Uninstalling ncurses5-compat-libs made Gradle work for me immediately, but Gradle then always acts as if TERM=dumb is set or If I install ncurses5-compat-libs again, Gradle has the same breaking behavior as before with |
This just started happening for me after the latest Arch update. A root cause would be good to know, but thanks for the |
Same for me (happening after the latest Arch update).
|
Hello ! The problem seems to come from the update to I've posted an updated PKGBUILD in the comments here hopefully it will be updated by the maintainer soon. With the cheers ! |
I was also having the same issue on archlinux after upgrade. I replaced the PKGBUILD for the ncurses5-compat-libs that fredszaq provided. That worked great. everything back to normal. Thanks fredszaq |
it's been just fixed, get the update from AUR |
@caspermadara what has been fixed? Did this turn out to be an issue with I'm running into the same problem on Gentoo with ncurses 6.1-r2. There is no |
I filed a related bug here: https://bugs.gentoo.org/651644 |
ncurses5-compat-libs is ncurses6 built with the old ncurses ABI (ABI 5). If I recall correctly, the package versions of ncurses and ncurses5-compat-libs not matching broke things. |
This seems to be fixed. Please re-open if it's discovered to be a Gradle bug. |
I'm still getting this issue on Manjaro Linux XFCE. @tadfisher's solution worked for me though. |
Yes, THis fix the issue, But the gradle can not output color anymore.... |
I think, gradle should either use a terminfo or return to the "old" ("plain") behaviour and drop that "marmalade" (like, say, progressbar) things away. |
workaround for me was to use |
@eriwen please re-open and review this bug. Our user just hit this bug with gradle 5.2.1 |
Another work-around is to "unset TERM". doesn't seem to have any adverse reaction (builds fine) |
I'm on a recent Arch Linux update
And tried to use the wrapper (./gradlew) supplied by the project author. It failed and a work-around was to use @ZeroChaos- suggestion of "unset TERM". Using gradlew seems to be the suggested way of using gradle, but any work arounds specific to Arch Linux don't work as I don't have gradle installed in the system. So as suggested multiple times, it seems gradle should be able to use terminfo in some manner. My 2 cents. |
Same issue here. Wrapper ./gradlew doesn't give any help. Gentoo linux with latest stable ncurses installed here:
term:
|
@cono fix for Gentoo that worked for me - you need to uninstall |
@Tapchicoma thanks, but I don't think I can:
|
it worked, thanks |
I think I have an explanation in: |
I solved it on my Gentoo system by upgrading |
Gradle has some problems with termcap: > FAILURE: Build failed with an exception. > > * What went wrong: > Could not open terminal for stdout: could not get termcap entry see gradle/gradle#4426 Unfortunately before the merge darwin broke again, so while this is now in a better state it is still broken: NixOS#99885 (comment)
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
ping, unstale |
Expected Behavior
Gradle should function as normal
Current Behavior
Build fails with the error in the title
Context
I'm trying to run a gradle build, along with some other tasks. When I run gradle, it fails with the error in the title. When I run gradle as so:
TERM=dumb gradle build
it functions. The current value of my TERM variable is xterm-256color. Gradle was working fine before today, but after rebooting and applying updates it fails to work.Steps to Reproduce (for bugs)
gradle build
withTERM=xterm-256color
Your Environment
Can't get a build scan without altering TERM value.
OS: Arch Linux
Kernel version: 4.15.3-2-ARCH
Gradle version: 4.5.1
The text was updated successfully, but these errors were encountered: