Crash in small terminal window
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the crash in a small Windows terminal while running the NewLocaleCommand, then trace the stack through PromptHelper.PromptValue and Sharprompt's DefaultConsoleDriver.ClearLine. Compare the behavior with shibayan/Sharprompt#283; done means the prompt no longer throws an ArgumentOutOfRangeException when the terminal is small.
Written by the indexing model from the issue text.
Description
Brief description of your issue
Steps to reproduce
shibayan/Sharprompt#283
Expected behavior
N/A
Actual behavior
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension. (Parameter 'top')
Actual value was 41.
at System.ConsolePal.SetCursorPosition(Int32 left, Int32 top)
at Sharprompt.Drivers.DefaultConsoleDriver.SetCursorPosition(Int32 left, Int32 top)
at Sharprompt.Drivers.DefaultConsoleDriver.ClearLine(Int32 top)
at Sharprompt.Internal.OffscreenBuffer.ClearConsole(Int32 cursorBottom, Int32 writtenLineCount)
at Sharprompt.Internal.RenderScope.Dispose()
at Sharprompt.Forms.FormRenderer.Render[TModel](Action`2 template, TModel result)
at Sharprompt.Forms.FormRenderer.Render[TModel](Action`2 template, TModel result)
at Sharprompt.Forms.FormBase`1.Start()
at Sharprompt.Prompt.Input[T](InputOptions`1 options)
at Sharprompt.Prompt.Input[T](Action`1 configure)
at Sharprompt.Prompt.Input[T](String message, Object defaultValue, String placeholder, IList`1 validators)
at Microsoft.WingetCreateCLI.PromptHelper.PromptValue[T](String message, Object model, String memberName, T instance)
at InvokeStub_PromptHelper.PromptValue(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Microsoft.WingetCreateCLI.PromptHelper.PromptPropertyAndSetValue[T](Object model, String memberName, T instance, Int32 minimum, Object validationModel, String validationName)
at Microsoft.WingetCreateCLI.Commands.BaseCommand.PromptOptionalProperties[T](T manifest, List`1 optionalPropertiesNames)
at Microsoft.WingetCreateCLI.Commands.NewLocaleCommand.GenerateLocaleManifest(Manifests originalManifests, LocaleManifest referenceLocaleManifest)
at Microsoft.WingetCreateCLI.Commands.NewLocaleCommand.Execute()
at Microsoft.WingetCreateCLI.Program.Main(String[] args)
Environment
wingetcreate.exe info
PS C:\Users\tbyta\GitHub\winget-pkgs\manifests\m\Microsoft\Sysinternals\Whois\1.21> wingetcreate.exe info
Windows 程序包管理器清单创建程序 v1.12.13.0
Copyright (c) Microsoft Corporation. All rights reserved.
操作系统: Microsoft Windows NT 10.0.26200.0
系统体系结构: Arm64
Winget-Create 目录 路径
---------------------------------------------------------------------------------------------------------------------------------
日志 %LOCALAPPDATA%\Packages\Microsoft.WindowsPackageManagerManifestCreator_8wekyb3d8bbwe\LocalState\DiagOutputDir
用户设置 %LOCALAPPDATA%\Packages\Microsoft.WindowsPackageManagerManifestCreator_8wekyb3d8bbwe\LocalState\settings.json
安装程序缓存 %TEMP%\wingetcreate
链接
----------------------------------------------------
隐私声明 https://aka.ms/winget-create-privacy
许可协议 https://aka.ms/winget-create-license
第三方声明 https://aka.ms/winget-create-3rdPartyNotice
主页 https://aka.ms/winget-create
- Dominant language
- C#
- Stars
- 651
- Forks
- 114
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 2
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/winget-create
-
Issue-Docs Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
microsoft/winget-create#705 ·
-
Issue-Feature Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/winget-create#680 ·
-
Duplicate Surfacing workflow fails on every run with "Blocked compile-agentic version: v0.83.4"OpenNeeds-Triage
Difficulty 3/5 1-2 days Newbie friendliness 68/100
microsoft/winget-create#706 ·
-
Issue-Feature Needs-Triage
Difficulty 4/5 3-5 days Newbie friendliness 52/100
microsoft/winget-create#701 ·
-
Issue-Feature Needs-Triage
Difficulty 3/5 1-2 days Newbie friendliness 68/100
microsoft/winget-create#700 ·
All issues in microsoft/winget-create
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
lay295/TwitchDownloader#1675 ·
-
copilot documentation
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
space-wizards/RobustToolbox#7119 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
dotnet/Scaffolding#3881 ·
Maintainers usually reply within 2 days
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 4 days