Scoop: error scoop alias list

Created on 22 Jun 2019  Â·  2Comments  Â·  Source: lukesampson/scoop

C:\WINDOWS\system32>scoop alias list
Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-IsReadOnly.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\lib\commands.ps1: 22 Carácter: 19
+         $line = ((Get-Content $shim_path) | Where-Object { $_.startsw ...
+                   ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...-IsReadOnly.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-IsReadOnly.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 91 Carácter: 20
+         $content = Get-Content (command_path $_.Name)
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...-IsReadOnly.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 92 Carácter: 9
+         $command = ($content | Select-Object -Skip 1).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 93 Carácter: 9
+         $summary = (summary $content).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-IsFixedSize.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\lib\commands.ps1: 22 Carácter: 19
+         $line = ((Get-Content $shim_path) | Where-Object { $_.startsw ...
+                   ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...IsFixedSize.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-IsFixedSize.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 91 Carácter: 20
+         $content = Get-Content (command_path $_.Name)
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...IsFixedSize.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 92 Carácter: 9
+         $command = ($content | Select-Object -Skip 1).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 93 Carácter: 9
+         $summary = (summary $content).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-IsSynchronized.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\lib\commands.ps1: 22 Carácter: 19
+         $line = ((Get-Content $shim_path) | Where-Object { $_.startsw ...
+                   ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...ynchronized.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-IsSynchronized.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 91 Carácter: 20
+         $content = Get-Content (command_path $_.Name)
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...ynchronized.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 92 Carácter: 9
+         $command = ($content | Select-Object -Skip 1).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 93 Carácter: 9
+         $summary = (summary $content).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-Keys.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\lib\commands.ps1: 22 Carácter: 19
+         $line = ((Get-Content $shim_path) | Where-Object { $_.startsw ...
+                   ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...\scoop-Keys.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-Keys.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 91 Carácter: 20
+         $content = Get-Content (command_path $_.Name)
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...\scoop-Keys.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 92 Carácter: 9
+         $command = ($content | Select-Object -Skip 1).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 93 Carácter: 9
+         $summary = (summary $content).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-Values.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\lib\commands.ps1: 22 Carácter: 19
+         $line = ((Get-Content $shim_path) | Where-Object { $_.startsw ...
+                   ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...coop-Values.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-Values.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 91 Carácter: 20
+         $content = Get-Content (command_path $_.Name)
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...coop-Values.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 92 Carácter: 9
+         $command = ($content | Select-Object -Skip 1).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 93 Carácter: 9
+         $summary = (summary $content).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-SyncRoot.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\lib\commands.ps1: 22 Carácter: 19
+         $line = ((Get-Content $shim_path) | Where-Object { $_.startsw ...
+                   ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...op-SyncRoot.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-SyncRoot.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 91 Carácter: 20
+         $content = Get-Content (command_path $_.Name)
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...op-SyncRoot.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 92 Carácter: 9
+         $command = ($content | Select-Object -Skip 1).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 93 Carácter: 9
+         $summary = (summary $content).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-Count.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\lib\commands.ps1: 22 Carácter: 19
+         $line = ((Get-Content $shim_path) | Where-Object { $_.startsw ...
+                   ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...scoop-Count.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Get-Content : No se encuentra la ruta de acceso 'C:\Users\zatuz\scoop\shims\scoop-Count.ps1' porque no existe.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 91 Carácter: 20
+         $content = Get-Content (command_path $_.Name)
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\zatuz\...scoop-Count.ps1:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 92 Carácter: 9
+         $command = ($content | Select-Object -Skip 1).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\zatuz\scoop\apps\scoop\current\libexec\scoop-alias.ps1: 93 Carácter: 9
+         $summary = (summary $content).Trim()
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Count
IsFixedSize
IsReadOnly
IsSynchronized
Keys
SyncRoot
Values

Most helpful comment

The same thing was happening to me. The workaround was to add an empty alias config like this:

scoop config alias @{}

I don't why the original config.json was missing this key.

Hope it helps!

All 2 comments

The same thing was happening to me. The workaround was to add an empty alias config like this:

scoop config alias @{}

I don't why the original config.json was missing this key.

Hope it helps!

The same thing was happening to me. The workaround was to add an empty alias config like this:

scoop config alias @{}

I don't why the original config.json was missing this key.

Hope it helps!

Thank you for this!

I have to do this workaround every time scoop is installed or the config is wiped. This was especially apparent in the latest release of scoop-completion which tries to get the aliases during [tab] completion.

See https://github.com/Moeologist/scoop-completion/issues/13

Was this page helpful?
0 / 5 - 0 ratings

Related issues

roysubs picture roysubs  Â·  3Comments

ShivanshuKantPrasad picture ShivanshuKantPrasad  Â·  3Comments

vpratfr picture vpratfr  Â·  3Comments

thorstenkampe picture thorstenkampe  Â·  3Comments

brunovieira97 picture brunovieira97  Â·  3Comments