You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that script (can't call it a module) sets up $global:options for it's own purposes and this breaks the usage in TabExpansion.ps1 on line 176 to the effect that when Import-Module RabbitMqTools I get a whole bunch of these errors:
Cannot index into a null array.
At C:\Program Files\WindowsPowerShell\Modules\RabbitMQTools\1.5\ScriptsToProcess\TabExpansions.ps1:178 char:1
+ $global:options['CustomArgumentCompleters']['Test1:Name'] = $testComp ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : NullArray
I've tried to workaround by adding more conditional checks in the assignment, but I'm unfamiliar with the PSConsoleReadlineOptions class and purpose, and I can't add a property to it like a normal hashtable.
Pete
The text was updated successfully, but these errors were encountered:
In my above, it seems that Solarized assigns PSConsoleReadLineOptions to global:options. I've changed your TabExpansion.ps1 with a search/replace of global:options with global:rabbitOptions and I think that is working (I hate global variables but I think in this case it's only use so as to pass extra options t to the tabexpansion2 re-write on line 277
pmcevoy
pushed a commit
to pmcevoy/RabbitMQTools
that referenced
this issue
Oct 31, 2018
I'm using the Solarized powershell prompt and have installed as per https://github.com/neilpa/cmd-colors-solarized
It seems that script (can't call it a module) sets up
$global:options
for it's own purposes and this breaks the usage in TabExpansion.ps1 on line 176 to the effect that when Import-Module RabbitMqTools I get a whole bunch of these errors:I've tried to workaround by adding more conditional checks in the assignment, but I'm unfamiliar with the PSConsoleReadlineOptions class and purpose, and I can't add a property to it like a normal hashtable.
Pete
The text was updated successfully, but these errors were encountered: