FS#57260 - [dotnet-sdk] MSBUILD : error MSB1025
Attached to Project:
Community Packages
Opened by Dominik Opyd (inder) - Sunday, 28 January 2018, 18:45 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 26 April 2018, 08:13 GMT
Opened by Dominik Opyd (inder) - Sunday, 28 January 2018, 18:45 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 26 April 2018, 08:13 GMT
|
Details
Description:
Attempting to run dotnet restore ends with an error. Regardless of what project it is. On the example of neo-cli: MSBUILD : error MSB1025: An internal failure occurred while running MSBuild. 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) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at System.ConsolePal.EnsureInitializedCore() at System.ConsolePal.ControlCHandlerRegistrar.Register() at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A\_work\17\s\src\MSBuild\XMake.cs:line 526 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) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at System.ConsolePal.EnsureInitializedCore() at System.ConsolePal.ControlCHandlerRegistrar.Register() at System.Console.add_CancelKeyPress(ConsoleCancelEventHandler value) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine) in E:\A\_work\17\s\src\MSBuild\XMake.cs:line 748 at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args) in E:\A\_work\17\s\src\MSBuild\XMake.cs:line 215 Steps to reproduce: git clone https://github.com/neo-project/neo-cli cd neo-cli dotnet restore |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Thursday, 26 April 2018, 08:13 GMT
Reason for closing: Fixed
Additional comments about closing: 2.1.105
Thursday, 26 April 2018, 08:13 GMT
Reason for closing: Fixed
Additional comments about closing: 2.1.105
Restoring packages for /home/alucryd/neo-cli/neo-cli/neo-cli.csproj...
Installing Neo.VM 2.0.5.
Installing Neo 2.7.0.
Generating MSBuild file /home/alucryd/neo-cli/neo-cli/obj/neo-cli.csproj.nuget.g.props.
Generating MSBuild file /home/alucryd/neo-cli/neo-cli/obj/neo-cli.csproj.nuget.g.targets.
Restore completed in 10.76 sec for /home/alucryd/neo-cli/neo-cli/neo-cli.csproj.
Can you take it to Microsoft? No idea where the issue could come from.
FS#57300?Downgrade the ncurses to < 6.1 and hold it.
The issue in upstream. The dotnet binary seems not to be compatible with ncurses >= 6.1. The logic used to determine if a terminal is "valid" breaks for ncurses 6.1-1 and 6.1-3 according to my testing. (ncurses 6.0-4 works, which is what I am using). As far as I know, this issue does not affect the tty, just terminal emulators.
Arch does not support partial upgrades or downgrades, so downgrading ncurses can cause serious issues with other packages linked to ncurses. However, certainly downgrading all packages on your system to a date that is before the 6.1 upgrade, would continue to work.
Another workaround is: TERM=xterm dotnet [operation]
https://github.com/dotnet/corefx/issues/26966