Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notepad3 update error #3857

Closed
mark05e opened this issue Apr 14, 2020 · 3 comments
Closed

Notepad3 update error #3857

mark05e opened this issue Apr 14, 2020 · 3 comments

Comments

@mark05e
Copy link
Contributor

mark05e commented Apr 14, 2020

when I try to update notepad3 I get this error

scoop update notepad3

Updating 'notepad3' (5.19.815.2595 -> 5.20.411.2)
Downloading new version
Notepad3_5.20.411.2.zip (5.3 MB) [==============================================================================] 100%
Checking hash of Notepad3_5.20.411.2.zip ... ok.
replace-windows-notepad.reg (164 B) [==============================================================================] 100%
Checking hash of replace-windows-notepad.reg ... ok.

restore-windows-notepad.reg (85 B) [>                                                                                      ]   0%
OperationStopped: C:\Users\mark\scoop\apps\scoop\current\lib\**install.ps1:130**
Line |
 130 |          throw $e
     |          ~~~~~~~~
     | The value must be greater than or equal to zero and less than the console's buffer size in that dimension. (Parameter 'top')
     | Actual value was 32.
@mark05e
Copy link
Contributor Author

mark05e commented Apr 15, 2020

Tried to update again after commit 8685659 and seems to be having the same issue.

Downloading new version
Notepad3_5.20.414.1.zip (5.3 MB) [========================================================================================================] 100%
Checking hash of Notepad3_5.20.414.1.zip ... ok.
replace-windows-notepad.reg (164 B) [=====================================================================================================] 100%
Checking hash of replace-windows-notepad.reg ... ok.

restore-windows-notepad.reg (85 B) [>                                                                                                     ]   0%
OperationStopped: C:\Users\mark\scoop\apps\scoop\current\lib\install.ps1:130
Line |
 130 |          throw $e
     |          ~~~~~~~~
     | The value must be greater than or equal to zero and less than the console's buffer size in that dimension. (Parameter 'top')
     | Actual value was 32.

when trying to uninstall/install

PS C:\Users\mark\Desktop> scoop uninstall notepad3
Uninstalling 'notepad3' (5.20.414.1).
'notepad3' was uninstalled.
PS C:\Users\mark\Desktop> scoop install notepad3
Installing 'notepad3' (5.20.414.1) [64bit]
Loading Notepad3_5.20.414.1.zip from cache
Checking hash of Notepad3_5.20.414.1.zip ... ok.
Loading replace-windows-notepad.reg from cache
Checking hash of replace-windows-notepad.reg ... ok.

restore-windows-notepad.reg (85 B) [>                                                                                                     ]   0%
The value must be greater than or equal to zero and less than the console's buffer size in that dimension. (Parameter 'top')
Actual value was 32.
URL https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/notepad3/restore-windows-notepad.reg is not valid

seems to be something to do with the file restore-windows-notepad.reg

@mark05e
Copy link
Contributor Author

mark05e commented Apr 15, 2020

Fixed by running below commands and restarting the terminal. I think it has nothing to do with scoop.

Install-Module -Name PowerShellGet -Force
Install-Module -Name PSReadLine -Force

For reference:
My powershell version:

PS C:\Users\mark> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Powershell module versions after update:

PS C:\Users\mark> Get-Module -ListAvailable | Where-Object {($_.Name -like '*PSReadline*') -Or ($_.Name -like '*PowerShellGet*')}


    Directory: C:\Users\mark\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     2.2.3                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.0.0.1               PowerShellGet                       Desk      {Install-Module, Find-Module, Save-Module, Update-Module…}
Script     2.0.1                 PSReadline                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption…}
Script     2.0.0      beta2      PSReadline                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption…}

Solution References:
PowerShell/PSReadLine#1006
PowerShell/PSReadLine#979

@mark05e
Copy link
Contributor Author

mark05e commented Apr 24, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant