Prerequisites
Steps to reproduce
I develop an UI app with dotnet sdk 8.0.100-preview.5.23303.2
I am using the workaround for this SDK because there is a problem with MMI :
<RuntimeHostConfigurationOption Include="System.Runtime.Loader.UseRidGraph" Value="true" />
But when I migrate from PowerShell 7.4.0-preview.3 to 7.4.0-preview.4, I am experiencing a NullReference exception with the API System.Management.Automation.CommandCompletion.CompleteInput
var completion = CommandCompletion.CompleteInput(text, caretOffset, new Hashtable());
Expected behavior
Actual behavior
Error details
System.NullReferenceException: 'Object reference not set to an instance of an object.'
at System.Management.Automation.CommandCompletion.CompleteInputImpl(Ast ast, Token[] tokens, IScriptPosition positionOfCursor, Hashtable options)
at System.Management.Automation.CommandCompletion.CompleteInput(String input, Int32 cursorIndex, Hashtable options)
Environment data
Name Value
---- -----
PSVersion 7.4.0-preview.4
PSEdition Core
GitCommitId 7.4.0-preview.4
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Prerequisites
Steps to reproduce
I develop an UI app with dotnet sdk 8.0.100-preview.5.23303.2
I am using the workaround for this SDK because there is a problem with MMI :
But when I migrate from PowerShell 7.4.0-preview.3 to 7.4.0-preview.4, I am experiencing a NullReference exception with the API System.Management.Automation.CommandCompletion.CompleteInput
Expected behavior
It works.Actual behavior
It failed.Error details
Environment data
Visuals
No response