Open x10an14 opened 4 years ago
I'm having the same problem. It started to appear when we switched from .NET Core 2.2 to .NET Core 3.1 in my project.
Workaround to this is to call reset
command once terminal stops displaying entered letters.
I'm still getting this issue in .NET 5, specifically CoreCLR and CoreFX versions 5.0.321.7203 with the .NET 5.0.103 SDK.
Any status on what caused this regression and any possibility for a fix? @agocke
Steps to reproduce
git clone git@github.com:x10an14/RazorLight.git
cd RazorLight
git checkout f7ada2f3ab166893248af42aca81f0e865bca621
dotnet test
1: It does react (for me at least) under the hood, but it never shows anything.
Excerpt of me running the command twice, but second time without seeing it appear when entered into terminal session.
```bash [2019-11-28 22:43:10] 0 x10an14@x10-desktop:~/github/razorlight (permit_relative_paths $=) -> $ dotnet test TagHelpers/DefaultTagHelperFactory.cs(16,71): warning CS0649: Field 'DefaultTagHelperFactory._getPropertiesToActivate' is never assigned to, and will always have its default value null [/home/x10an14/Documents/github/razorlight/src/RazorLight/RazorLight.csproj] PrecompileRunCommand.cs(22,41): warning CS0169: The field 'PrecompileRunCommand.factoryProvider' is never used [/home/x10an14/Documents/github/razorlight/src/RazorLight.Precompile/RazorLight.Precompile.csproj] PrecompileRunCommand.cs(23,42): warning CS0649: Field 'PrecompileRunCommand.compiler' is never assigned to, and will always have its default value null [/home/x10an14/Documents/github/razorlight/src/RazorLight.Precompile/RazorLight.Precompile.csproj] Generation/RazorSourceGeneratorTest.cs(17,17): warning CS0618: 'RazorEngine.Create()' is obsolete: 'This method is obsolete and will be removed in a future version.' [/home/x10an14/Documents/github/razorlight/tests/RazorLight.Tests/RazorLight.Tests.csproj] Generation/RazorSourceGeneratorTest.cs(44,17): warning CS0618: 'RazorEngine.Create()' is obsolete: 'This method is obsolete and will be removed in a future version.' [/home/x10an14/Documents/github/razorlight/tests/RazorLight.Tests/RazorLight.Tests.csproj] Generation/RazorSourceGeneratorTest.cs(55,16): warning CS0618: 'RazorEngine.Create()' is obsolete: 'This method is obsolete and will be removed in a future version.' [/home/x10an14/Documents/github/razorlight/tests/RazorLight.Tests/RazorLight.Tests.csproj] Generation/RazorSourceGeneratorTest.cs(78,54): warning CS0618: 'RazorEngine.Create()' is obsolete: 'This method is obsolete and will be removed in a future version.' [/home/x10an14/Documents/github/razorlight/tests/RazorLight.Tests/RazorLight.Tests.csproj] Generation/RazorSourceGeneratorTest.cs(96,54): warning CS0618: 'RazorEngine.Create()' is obsolete: 'This method is obsolete and will be removed in a future version.' [/home/x10an14/Documents/github/razorlight/tests/RazorLight.Tests/RazorLight.Tests.csproj] Generation/RazorSourceGeneratorTest.cs(111,54): warning CS0618: 'RazorEngine.Create()' is obsolete: 'This method is obsolete and will be removed in a future version.' [/home/x10an14/Documents/github/razorlight/tests/RazorLight.Tests/RazorLight.Tests.csproj] Test run for /home/x10an14/Documents/github/razorlight/tests/RazorLight.Tests/bin/Debug/netcoreapp2.0/RazorLight.Tests.dll(.NETCoreApp,Version=v2.0) Microsoft (R) Test Execution Command Line Tool Version 16.3.0 Copyright (c) Microsoft Corporation. All rights reserved. Starting test execution, please wait... A total of 1 test files matched the specified pattern. True [xUnit.net 00:00:00.9739004] RazorLight.Tests.Integrational.RaceConditionTests.Multiple_Simuntaneous_Compilations_RaceCondition_Test [FAIL] X RazorLight.Tests.Integrational.RaceConditionTests.Multiple_Simuntaneous_Compilations_RaceCondition_Test [69ms] Error Message: RazorLight.TemplateNotFoundException : Project can not find template with key /home//x10an14/Documents/github/razorlight/tests/RazorLight.Tests/bin/Debug/netcoreapp2.0/template1.cshtml Stack Trace: at RazorLight.Compilation.RazorTemplateCompiler.CreateRuntimeCompilationWorkItem(String templateKey) in /home/x10an14/Documents/github/razorlight/src/RazorLight/Compilation/RazorTemplateCompiler.cs:line 189 at RazorLight.Compilation.RazorTemplateCompiler.OnCacheMissAsync(String templateKey) in /home/x10an14/Documents/github/razorlight/src/RazorLight/Compilation/RazorTemplateCompiler.cs:line 114 at RazorLight.Compilation.RazorTemplateCompiler.CompileAsync(String templateKey) in /home/x10an14/Documents/github/razorlight/src/RazorLight/Compilation/RazorTemplateCompiler.cs:line 84 at RazorLight.EngineHandler.CompileTemplateAsync(String key) in /home/x10an14/Documents/github/razorlight/src/RazorLight/EngineHandler.cs:line 51 at RazorLight.EngineHandler.CompileRenderAsync[T](String key, T model, ExpandoObject viewBag) in /home/x10an14/Documents/github/razorlight/src/RazorLight/EngineHandler.cs:line 131 at RazorLight.Tests.Integrational.RaceConditionTests.<>c__DisplayClass0_0.<Expected behavior
To see what I type into the prompt as soon as the execution terminates and my
$PS1
is printed anew.Actual behavior
My
$PS1
is printed after execution termination, but I can't see what I type, ref. the latter half of above code-snippet.Environment data
dotnet --info
output:Additional terminal info
```bash [2019-11-28 22:51:57] 0 x10an14@x10-desktop:~/github/razorlight (permit_relative_paths $=) -> $ bash --version GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later