Skip to content
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

Issues with ncurses 6.1 on linux #9

Open
benalbrecht opened this issue Sep 20, 2018 · 0 comments
Open

Issues with ncurses 6.1 on linux #9

benalbrecht opened this issue Sep 20, 2018 · 0 comments

Comments

@benalbrecht
Copy link

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         
@benalbrecht benalbrecht changed the title Issues ncurses 6.1 Issues with ncurses 6.1 Sep 20, 2018
@benalbrecht benalbrecht changed the title Issues with ncurses 6.1 Issues with ncurses 6.1 on linux Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant