Skip to content
This repository was archived by the owner on May 26, 2026. It is now read-only.
This repository was archived by the owner on May 26, 2026. It is now read-only.

Issues with ncurses 6.1 on linux #9

Description

@benalbrecht

I'm getting this exception when trying to use any command that shows more then a help message:

$ ./gitlab config

Unhandled Exception: System.InvalidOperationException: The terminfo database is invalid.
   at System.TermInfo.Database..ctor(String term, Byte[] data)
   at System.TermInfo.Database.ReadDatabase(String term, String directoryPath)
   at System.TermInfo.Database.ReadDatabase(String term)
   at System.TermInfo.Database.ReadActiveDatabase()
   at System.ConsolePal.TerminalFormatStrings.<>c.<.cctor>b__27_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Lazy`1.CreateValue()
   at System.ConsolePal.WriteResetColorString()
   at System.ConsolePal.RefreshColors(ConsoleColor& toChange, ConsoleColor value)
   at GitLabCLI.Console.Output.ConsoleColoredWriter.WriteColoredLine(String line) in C:\projects\gitlabcli\src\GitlabCLI.Console\Output\ConsoleColoredWriter.cs:line 18
   at GitLabCLI.Console.Output.ConsoleColoredWriter.Write(String text) in C:\projects\gitlabcli\src\GitlabCLI.Console\Output\ConsoleColoredWriter.cs:line 11
   at GitLabCLI.Console.Output.OutputPresenter.ShowError(String header, String error) in C:\projects\gitlabcli\src\GitlabCLI.Console\Output\OutputPresenter.cs:line 36
   at GitLabCLI.Console.LaunchHandler.<Launch>d__4.MoveNext() in C:\projects\gitlabcli\src\GitlabCLI.Console\LaunchHandler.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GitLabCLI.Console.Program.<Main>d__0.MoveNext() in C:\projects\gitlabcli\src\GitlabCLI.Console\Program.cs:line 8
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GitLabCLI.Console.Program.<Main>(String[] args)
Aborted

This seems to be related to by the following .NET Core issue: https://github.com/dotnet/corefx/issues/26966

The Workaround in that issue (setting TERM to xterm) seems to help:

TERM=xterm ./gitlab config
-------------------------
Current configuration

Name                    Value
______________________  _____
host_url                     
username                     
password                     
access_token                 
default_project              
default_issues_project       
default_merges_project       
default_issues_label         

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions