Exception thrown when Open With PowerShell ISE option is selected via right-click

Issue #21 resolved
Mike McIntyre created an issue

VS Ent 2017 - 15.8.9 PoshTools - 4.0.19 PSVersionTable Name Value
---- -----
PSVersion 5.1.17763.1
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.1
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1


Recently installed/re-installed latest version of PoshTools Pro. No longer able to right-click and open in PS ISE. I get the following from VS: 2018-11-06_12-25-35.jpg

Opening the ActivityLog.xml, I see the following exception: <entry> <record>1058</record> <time>2018/11/06 18:25:19.865</time> <type>Error</type> <source>Editor or Editor Extension</source> <description>System.ArgumentException: Item has already been added. Key in dictionary: 'ScriptAnalyzerQuickFixer' Key being added: 'ScriptAnalyzerQuickFixer' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at System.Collections.Specialized.HybridDictionary.Add(Object key, Object value) at Microsoft.VisualStudio.Utilities.PropertyCollection.AddProperty(Object key, Object property) at PowerShellTools.QuickFix.ScriptAnalysisSuggestedActionsSourceProvider.CreateSuggestedActionsSource(ITextView textView, ITextBuffer textBuffer) at Microsoft.VisualStudio.Language.Intellisense.Implementation.LightBulbBroker.<>c__DisplayClass50_0.<CreateSourcesForBuffer>b__0(ISuggestedActionsSourceProvider provider) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InvokeMatchingFactoriesTExtensionInstance,TExtensionFactory,TMetadataView --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description> </entry>

Comments (1)

  1. Log in to comment