Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.25k stars 3.85k forks source link

Azure.Tools.Predictor breaks with 7.2.0-preview.6 and PSReadLine-2.2.0-beta3 #15171

Closed matsest closed 3 years ago

matsest commented 3 years ago

Description

On Import-module Az.Tools.Predictor I get:

Import-Module: Could not load type 'System.Management.Automation.Subsystem.ICommandPredictor' from assembly 'System.Management.Automation, Version=7.2.0.6, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Steps to reproduce

On pwsh 7.2.0-preview.6 with PSReadLine-2.2.0-beta3

Import-Module Az.Tools.Predictor

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.0-preview.6
PSEdition                      Core
GitCommitId                    7.2.0-preview.6
OS                             Linux 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

Debug output

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     5.8.0                 Az                                  Core,Desk
Script     2.3.0                 Az.Accounts                         Core,Desk {Disable-AzDataCollection, Disable-AzCo…
Script     1.1.1                 Az.Advisor                          Core,Desk {Get-AzAdvisorRecommendation, Enable-Az…
Script     2.1.0                 Az.Aks                              Core,Desk {Get-AzAksCluster, New-AzAksCluster, Re…
Script     1.1.4                 Az.AnalysisServices                 Core,Desk {Resume-AzAnalysisServicesServer, Suspe…
Script     2.2.0                 Az.ApiManagement                    Core,Desk {Add-AzApiManagementApiToGateway, Add-A…
Script     1.0.0                 Az.AppConfiguration                 Core,Desk {Get-AzAppConfigurationStore, Get-AzApp…
Script     1.1.0                 Az.ApplicationInsights              Core,Desk {Get-AzApplicationInsights, New-AzAppli…
Script     1.7.0                 Az.Automation                       Core,Desk {Get-AzAutomationHybridWorkerGroup, Rem…
Script     3.1.0                 Az.Batch                            Core,Desk {Remove-AzBatchAccount, Get-AzBatchAcco…
Script     2.0.0                 Az.Billing                          Core,Desk {Get-AzBillingInvoice, Get-AzBillingPer…
Script     0.3.0                 Az.Blueprint                        Core,Desk {Get-AzBlueprint, Get-AzBlueprintAssign…
Script     1.7.0                 Az.Cdn                              Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoU…
Script     1.8.0                 Az.CognitiveServices                Core,Desk {Get-AzCognitiveServicesAccount, Get-Az…
Script     4.13.0                Az.Compute                          Core,Desk {Remove-AzAvailabilitySet, Get-AzAvaila…
Script     2.0.0                 Az.ContainerInstance                Core,Desk {Add-AzContainerInstanceOutput, Get-AzC…
Script     2.2.3                 Az.ContainerRegistry                Core,Desk {New-AzContainerRegistry, Get-AzContain…
Script     1.2.0                 Az.CosmosDB                         Core,Desk {Get-AzCosmosDBSqlContainer, Get-AzCosm…
Script     1.1.0                 Az.DataBoxEdge                      Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdg…
Script     1.1.0                 Az.Databricks                       Core,Desk {Get-AzDatabricksVNetPeering, Get-AzDat…
Script     1.12.0                Az.DataFactory                      Core,Desk {Set-AzDataFactoryV2, Update-AzDataFact…
Script     1.0.2                 Az.DataLakeAnalytics                Core,Desk {Get-AzDataLakeAnalyticsDataSource, New…
Script     1.3.0                 Az.DataLakeStore                    Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, …
Script     1.0.0                 Az.DataShare                        Core,Desk {New-AzDataShareAccount, Get-AzDataShar…
Script     1.1.0                 Az.DeploymentManager                Core,Desk {Get-AzDeploymentManagerArtifactSource,…
Script     3.0.0                 Az.DesktopVirtualization            Core,Desk {Disconnect-AzWvdUserSession, Expand-Az…
Script     1.0.2                 Az.DevTestLabs                      Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzD…
Script     1.1.2                 Az.Dns                              Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordCon…
Script     1.3.0                 Az.EventGrid                        Core,Desk {New-AzEventGridTopic, Get-AzEventGridT…
Script     1.7.2                 Az.EventHub                         Core,Desk {New-AzEventHubNamespace, Get-AzEventHu…
Script     1.8.0                 Az.FrontDoor                        Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-…
Script     3.0.0                 Az.Functions                        Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAv…
Script     4.2.1                 Az.HDInsight                        Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqo…
Script     1.3.1                 Az.HealthcareApis                   Core,Desk {New-AzHealthcareApisService, Remove-Az…
Script     2.7.3                 Az.IotHub                           Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubC…
Script     3.4.4                 Az.KeyVault                         Core,Desk {Add-AzKeyVaultCertificate, Update-AzKe…
Script     2.0.0                 Az.Kusto                            Core,Desk {Add-AzKustoClusterLanguageExtension, A…
Script     1.5.0                 Az.LogicApp                         Core,Desk {Get-AzIntegrationAccountAgreement, Get…
Script     1.1.3                 Az.MachineLearning                  Core,Desk {Move-AzMlCommitmentAssociation, Get-Az…
Script     1.1.1                 Az.Maintenance                      Core,Desk {Get-AzApplyUpdate, Get-AzConfiguration…
Script     2.0.0                 Az.ManagedServices                  Core,Desk {Get-AzManagedServicesAssignment, New-A…
Script     1.0.2                 Az.MarketplaceOrdering              Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketpl…
Script     1.1.1                 Az.Media                            Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzM…
Script     1.0.2                 Az.Migrate                          Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzM…
Script     2.5.0                 Az.Monitor                          Core,Desk {Get-AzMetricDefinition, Get-AzMetric, …
Script     4.8.0                 Az.Network                          Core,Desk {Add-AzApplicationGatewayAuthentication…
Script     1.1.1                 Az.NotificationHubs                 Core,Desk {Get-AzNotificationHub, Get-AzNotificat…
Script     2.3.0                 Az.OperationalInsights              Core,Desk {New-AzOperationalInsightsAzureActivity…
Script     1.4.1                 Az.PolicyInsights                   Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, …
Script     1.1.2                 Az.PowerBIEmbedded                  Core,Desk {Remove-AzPowerBIWorkspaceCollection, G…
Script     1.0.3                 Az.PrivateDns                       Core,Desk {Get-AzPrivateDnsZone, Remove-AzPrivate…
Script     4.1.0                 Az.RecoveryServices                 Core,Desk {Get-AzRecoveryServicesBackupProperty, …
Script     1.4.0                 Az.RedisCache                       Core,Desk {Remove-AzRedisCachePatchSchedule, New-…
Script     1.0.0                 Az.RedisEnterpriseCache             Core,Desk {Export-AzRedisEnterpriseCache, Get-AzR…
Script     1.0.3                 Az.Relay                            Core,Desk {New-AzRelayNamespace, Get-AzRelayNames…
Script     0.10.0                Az.ResourceGraph                    Core,Desk {Search-AzGraph, Get-AzResourceGraphQue…
Script     4.1.1                 Az.Resources                        Core,Desk {Get-AzProviderOperation, Remove-AzRole…
Script     0.11.0                Az.Security                         Core,Desk {Get-AzSecurityAlert, Set-AzSecurityAle…
Script     1.5.0                 Az.ServiceBus                       Core,Desk {New-AzServiceBusNamespace, Get-AzServi…
Script     3.0.0                 Az.ServiceFabric                    Core,Desk {Add-AzServiceFabricClientCertificate, …
Script     1.2.0                 Az.SignalR                          Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSi…
Script     3.1.0                 Az.Sql                              Core,Desk {Get-AzSqlDatabaseTransparentDataEncryp…
Script     1.1.0                 Az.SqlVirtualMachine                Core,Desk {New-AzSqlVM, Get-AzSqlVM, Update-AzSql…
Script     3.7.0                 Az.Storage                          Core,Desk {Get-AzStorageAccount, Get-AzStorageAcc…
Script     1.5.0                 Az.StorageSync                      Core,Desk {Invoke-AzStorageSyncCompatibilityCheck…
Script     2.0.0                 Az.StreamAnalytics                  Core,Desk {Get-AzStreamAnalyticsCluster, Get-AzSt…
Script     1.0.0                 Az.Support                          Core,Desk {Get-AzSupportService, Get-AzSupportPro…
Manifest   0.3.0                 Az.Tools.Predictor                  Core      {Enable-AzPredictor, Disable-AzPredicto…
Script     1.0.4                 Az.TrafficManager                   Core,Desk {Add-AzTrafficManagerCustomHeaderToEndp…
Script     2.6.0                 Az.Websites                         Core,Desk {Get-AzAppServicePlan, Set-AzAppService…
Script     0.3.0                 AzBuilder                           Desk      {Build-AzBuilderTemplate, Invoke-AzBuil…
Script     1.4.7                 Bicep                               Core      {Build-Bicep, ConvertTo-Bicep, Get-Bice…
Script     3.1.3                 GuestConfiguration                  Desk      {New-GuestConfigurationPackage, Test-Gu…
Binary     1.0.0                 Microsoft.PowerShell.SecretManagem… Core      {Register-SecretVault, Unregister-Secre…
Binary     1.0.0                 Microsoft.PowerShell.SecretStore    Core      {Unlock-SecretStore, Set-SecretStorePas…
Script     3.137.2               oh-my-posh                          Desk      {Get-PoshThemes, Set-PoshPrompt, Get-Po…
Script     3.106.1               oh-my-posh                          Desk      {Get-PoshThemes, Set-PoshPrompt, Export…
Script     5.1.1                 Pester                              Desk      {Invoke-Pester, Describe, Context, It…}
Script     0.14.1                platyPS                             Desk      {New-MarkdownHelp, Get-MarkdownMetadata…
Script     0.4.2                 powershell-yaml                     Desk      {ConvertTo-Yaml, ConvertFrom-Yaml, cfy,…
Script     4.9.0                 psake                               Desk      {Invoke-psake, Invoke-Task, Get-PSakeSc…
Binary     0.1.0      alpha1     PSArm                               Core,Desk {ConvertTo-PSArm, ConvertFrom-ArmTempla…
Script     0.8.0                 PSDocs                              Core,Desk {Document, Invoke-PSDocument, Get-PSDoc…
Script     1.6.195               PSFramework                         Desk      {ConvertTo-PSFHashtable, Invoke-PSFCall…
Script     2.1.38.27             PSGraph                             Desk      {Edge, Entity, Export-PSGraph, Graph…}
Script     2.2.0      beta3      PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLi…
Script     1.2.0                 PSRule                              Core,Desk {Rule, Invoke-PSRule, Test-PSRuleTarget…
Script     1.1.0                 PSRule                              Core,Desk {Rule, Invoke-PSRule, Test-PSRuleTarget…
Script     1.2.1                 PSRule.Rules.Azure                  Core,Desk {Export-AzRuleData, Export-AzRuleTempla…
Script     1.2.0                 PSRule.Rules.Azure                  Core,Desk {Export-AzRuleData, Export-AzRuleTempla…
Script     1.19.1                PSScriptAnalyzer                    Desk      {Get-ScriptAnalyzerRule, Invoke-ScriptA…

    Directory: /opt/microsoft/powershell/7-preview/Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   1.2.5                 Microsoft.PowerShell.Archive        Desk      {Compress-Archive, Expand-Archive}
Manifest   7.0.0.0               Microsoft.PowerShell.Host           Core      {Start-Transcript, Stop-Transcript}
Manifest   7.0.0.0               Microsoft.PowerShell.Management     Core      {Add-Content, Clear-Content, Clear-Item…
Manifest   7.0.0.0               Microsoft.PowerShell.Security       Core      {Get-Credential, Get-ExecutionPolicy, S…
Manifest   7.0.0.0               Microsoft.PowerShell.Utility        Core      {Export-Alias, Get-Alias, Import-Alias,…
Script     1.4.7                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-Package…
Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-M…
Script     2.0.5                 PSDesiredStateConfiguration         Core      {Configuration, New-DscChecksum, Get-Ds…
Script     2.1.0                 PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLi…
Binary     2.0.3                 ThreadJob                           Desk      Start-ThreadJob

Error output

  HistoryId: 15

Message        : Could not load type 'System.Management.Automation.Subsystem.ICommandPredictor' from assembly
                 'System.Management.Automation, Version=7.2.0.6, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
StackTrace     :    at Microsoft.Azure.PowerShell.Tools.AzPredictor.PredictorInitializer.OnImport()
                    at System.Management.Automation.Runspaces.PSSnapInHelpers.ExecuteModuleInitializer(Assembly
                 assembly, IEnumerable`1 assemblyTypes) in
                 /PowerShell/src/System.Management.Automation/engine/InitialSessionState.cs:line 5474
                    at
                 System.Management.Automation.Runspaces.PSSnapInHelpers.AnalyzeModuleAssemblyWithReflection(Assembly
                 assembly, String name, PSSnapInInfo psSnapInInfo, PSModuleInfo moduleInfo, String helpFile,
                 Dictionary`2& cmdlets, Dictionary`2& aliases, Dictionary`2& providers) in
                 /PowerShell/src/System.Management.Automation/engine/InitialSessionState.cs:line 5251
                    at System.Management.Automation.Runspaces.PSSnapInHelpers.AnalyzePSSnapInAssembly(Assembly
                 assembly, String name, PSSnapInInfo psSnapInInfo, PSModuleInfo moduleInfo, Dictionary`2& cmdlets,
                 Dictionary`2& aliases, Dictionary`2& providers, String& helpFile) in
                 /PowerShell/src/System.Management.Automation/engine/InitialSessionState.cs:line 5196
                    at System.Management.Automation.Runspaces.InitialSessionState.ImportCmdletsFromAssembly(Assembly
                 assembly, PSModuleInfo module) in
                 /PowerShell/src/System.Management.Automation/engine/InitialSessionState.cs:line 4081
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadBinaryModule(PSModuleInfo parentModule,
                 Boolean trySnapInName, String moduleName, String fileName, Assembly assemblyToLoad, String
                 moduleBase, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags
                 manifestProcessingFlags, String prefix, Boolean loadTypes, Boolean loadFormats, Boolean& found,
                 String shortModuleName, Boolean disableFormatUpdates) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 6769
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadBinaryModule(Boolean trySnapInName, String
                 moduleName, String fileName, Assembly assemblyToLoad, String moduleBase, SessionState ss,
                 ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags, String prefix, Boolean
                 loadTypes, Boolean loadFormats, Boolean& found) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 6558
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModule(PSModuleInfo parentModule, String
                 fileName, String moduleBase, String prefix, SessionState ss, Object privateData, ImportModuleOptions&
                 options, ManifestProcessingFlags manifestProcessingFlags, Boolean& found, Boolean& moduleFileFound)
                 in /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 5894
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleNamedInManifest(PSModuleInfo
                 parentModule, ModuleSpecification moduleSpecification, String moduleBase, Boolean searchModulePath,
                 String prefix, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags
                 manifestProcessingFlags, Boolean loadTypes, Boolean loadFormats, Object privateData, Boolean& found,
                 String shortModuleName, Nullable`1 manifestLanguageMode) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 752
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleManifest(String moduleManifestPath,
                 ExternalScriptInfo manifestScriptInfo, Hashtable data, Hashtable localizedData,
                 ManifestProcessingFlags manifestProcessingFlags, Version minimumVersion, Version maximumVersion,
                 Version requiredVersion, Nullable`1 requiredModuleGuid, ImportModuleOptions& options, Boolean&
                 containedErrors) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 2940
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleManifest(ExternalScriptInfo
                 scriptInfo, ManifestProcessingFlags manifestProcessingFlags, Version minimumVersion, Version
                 maximumVersion, Version requiredVersion, Nullable`1 requiredModuleGuid, ImportModuleOptions& options)
                 in /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 1378
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModule(PSModuleInfo parentModule, String
                 fileName, String moduleBase, String prefix, SessionState ss, Object privateData, ImportModuleOptions&
                 options, ManifestProcessingFlags manifestProcessingFlags, Boolean& found, Boolean& moduleFileFound)
                 in /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 5861
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingExtensions(PSModuleInfo parentModule,
                 String moduleName, String fileBaseName, String extension, String moduleBase, String prefix,
                 SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags,
                 Boolean& found, Boolean& moduleFileFound) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 5446
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingExtensions(PSModuleInfo parentModule,
                 String moduleName, String fileBaseName, String extension, String moduleBase, String prefix,
                 SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags,
                 Boolean& found) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 5337
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingMultiVersionModuleBase(String
                 moduleBase, ManifestProcessingFlags manifestProcessingFlags, ImportModuleOptions importModuleOptions,
                 Boolean& found) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 416
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule,
                 Boolean found, IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options,
                 ManifestProcessingFlags manifestProcessingFlags, PSModuleInfo& module) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 342
                    at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(Boolean found, IEnumerable`1
                 modulePath, String name, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags
                 manifestProcessingFlags, PSModuleInfo& module) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs:line 313
                    at
                 Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions
                 importModuleOptions, String name) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs:line 811
                    at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName_WithTelemetry(Impo
                 rtModuleOptions importModuleOptions, String name) in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs:line 619
                    at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord() in
                 /PowerShell/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs:line 1884
                    at System.Management.Automation.Cmdlet.DoProcessRecord() in
                 /PowerShell/src/System.Management.Automation/engine/cmdlet.cs:line 173
                    at System.Management.Automation.CommandProcessor.ProcessRecord() in
                 /PowerShell/src/System.Management.Automation/engine/CommandProcessor.cs:line 387
Exception      : System.TypeLoadException
InvocationInfo : {Import-Module}
Line           : import-module az.tools.predictor
Position       : At line:1 char:1
                 + import-module az.tools.predictor
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 15

Message        : Cannot bind argument to parameter 'Path' because it is null.
StackTrace     :    at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext
                 funcContext, Exception exception) in
                 /PowerShell/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs:line 1654
                    at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame) in
                 /PowerShell/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs:line 504
                    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
                 frame) in
                 /PowerShell/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs:line 392
                    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
                 frame) in
                 /PowerShell/src/System.Management.Automation/engine/interpreter/ControlFlowInstructions.cs:line 358
Exception      : System.Management.Automation.ParameterBindingValidationException
InvocationInfo : {Join-Path}
Line           :     $interceptFilePath = Join-Path -Path (Join-Path -Path $env:USERPROFILE -ChildPath ".Azure")
                 -ChildPath "InterceptSurvey.json"

Position       : At /home/matsest/.local/share/powershell/Modules/Az.Tools.Predictor/0.3.0/InterceptSurvey.ps1:164
                 char:59
                 + … tFilePath = Join-Path -Path (Join-Path -Path $env:USERPROFILE -ChildP …
                 +                                                ~~~~~~~~~~~~~~~~
HistoryId      : 15

PS: If I manually set the $env:USERPROFILE to my home directory I get the same error message as above.

kceiw commented 3 years ago

Thanks for reporting this issue. There is a breaking api change. That's why Az.Tools.Predictor isn't loaded successfully. This should be fixed in the next Az.Tools.Predictor release.

brwilkinson commented 3 years ago

adding comment to follow issue.

kceiw commented 3 years ago

Please update your Az.Tools.Predictor to version 0.4.0. https://www.powershellgallery.com/packages/Az.Tools.Predictor/0.4.0

That should fix the issue. Don't hesitate to tell us any issues and suggestions. Thank you.

brwilkinson commented 3 years ago

@kceiw

Fixed, thank you.

dcaro commented 3 years ago

This issue has been fixed with Az.Tools.Predictor preview 0.4.0. Please make sure that you use at least PowerShell 7.2-preview.6 and PSReadLine 2.2.0-beta3.