Prerequisites
Steps to reproduce
If I run a debug build and type in Get-WinEvent -<Ctrl+Space> the process dies with this output:
PS C:\Users\Martin\source\repos\PowerShell\src\powershell-win-core\bin\Debug\net11.0\win7-x64\publish> Get-WinEvent -Process terminated.
Assertion failed.
Lookup failure: baseName GetEventResources resourceId ListLogParamHelp
at System.Management.Automation.Diagnostics.Assert(Boolean condition, String whyThisShouldNeverHappen, String detailMessage) in C:\Users\Martin\source\repos\PowerShell\src\System.Management.Automation\utils\assert.cs:line 193
at System.Management.Automation.Diagnostics.Assert(Boolean condition, String whyThisShouldNeverHappen) in C:\Users\Martin\source\repos\PowerShell\src\System.Management.Automation\utils\assert.cs:line 128
at System.Management.Automation.ResourceManagerCache.GetResourceString(Assembly assembly, String baseName, String resourceId) in C:\Users\Martin\source\repos\PowerShell\src\System.Management.Automation\utils\ResourceManagerCache.cs:line 204
at System.Management.Automation.CompletionCompleters.TryGetParameterHelpMessage(ParameterAttribute attr, Assembly assembly, String& message) in C:\Users\Martin\source\repos\PowerShell\src\System.Management.Automation\engine\CommandCompletion\CompletionCompleters.cs:line 865
at System.Management.Automation.CompletionCompleters.GetParameterCompletionResults(String parameterName, UInt32 validParameterSetFlags, IEnumerable`1 parameters, Boolean withColon, Assembly commandAssembly) in C:\Users\Martin\source\repos\PowerShell\src\System.Management.Automation\engine\CommandCompletion\CompletionCompleters.cs:line 930
...
I don't think we expect every command parameter to have a help message, so I suppose we have to bypass the assertion somehow when doing completions.
The ListLogParamHelp resource appears to be missing and should be added to avoid this missed assertion.
Expected behavior
No errors when trying to tab complete in debug build.
Actual behavior
The process dies when tab completing as described above.
Error details
Environment data
Name Value
---- -----
PSVersion 7.6.0-preview.3
PSEdition Core
GitCommitId 7.6.0-preview.3-531-gb9bd8cbc59762f4e4d4dc81a08e6b7417efd2937
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Prerequisites
Steps to reproduce
If I run a debug build and type in
Get-WinEvent -<Ctrl+Space>the process dies with this output:I don't think we expect every command parameter to have a help message, so I suppose we have to bypass the assertion somehow when doing completions.The
ListLogParamHelpresource appears to be missing and should be added to avoid this missed assertion.Expected behavior
No errors when trying to tab complete in debug build.Actual behavior
The process dies when tab completing as described above.Error details
Environment data
Visuals
No response