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

Neovim is installed twice instead upgraded #4571

Closed
jfernandz opened this issue Jun 21, 2024 · 7 comments
Closed

Neovim is installed twice instead upgraded #4571

jfernandz opened this issue Jun 21, 2024 · 7 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Side-by-Side Issue related to side by side package installation
Milestone

Comments

@jfernandz
Copy link

Brief description of your issue

I've run winget upgrade --all and it has installed the new version of Neovim (0.10.0) in parallel to the older one (0.9.5). Now I cannot uninstall any version even using the -v argument for winget uninstall.

Also ... not sure why despite my system language is english ... winget still prints its outputs in spanish 🤔

Steps to reproduce

Just running winget upgrade --all

Expected behavior

normal upgrade

Actual behavior

Neovim 0.10.0 has been installed but not upgraded 0.9.5 version, now I cannot remove any one.

> winget list neovim
Nombre Id            Versión Disponible Origen
----------------------------------------------
Neovim Neovim.Neovim 0.9.5   0.10.0     winget
Neovim Neovim.Neovim 0.10.0             winget
> winget uninstall Neovim -v 0.9.5
Se encontraron varios paquetes instalados que coinciden con los criterios de entrada. Por favor, reajusta tu búsqueda.
Nombre Id
--------------------
Neovim Neovim.Neovim
Neovim Neovim.Neovim
> winget uninstall --id Neovim.Neovim -v 0.9.5
No se encontró ningún paquete que coincida con los criterios de entrada.

Environment

> winget --info
Administrador de paquetes de Windows v1.7.11261
Copyright (c) Microsoft Corporation. Todos los derechos reservados.

Windows: Windows.Desktop v10.0.22631.3593
Arquitectura del sistema: X64
Paquete: Microsoft.DesktopAppInstaller v1.22.11261.0

Directorios de WinGet
----------------------------------------------------------------------------------------------------------------------------------------
Registros                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Configuración de usuario                    %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Directorio de vínculos portátiles (usuario) %LOCALAPPDATA%\Microsoft\WinGet\Links
Directorio de vínculos portátiles (equipo)  C:\Program Files\WinGet\Links
Raíz de paquete portátil (usuario)          %LOCALAPPDATA%\Microsoft\WinGet\Packages
Raíz de paquete portátil                    C:\Program Files\WinGet\Packages
Raíz de paquete portátil (x86)              C:\Program Files (x86)\WinGet\Packages
Descargas del instalador                    %USERPROFILE%\Downloads

Vínculos
-----------------------------------------------------------------------------------
Declaración de privacidad   https://aka.ms/winget-privacy
Contrato de licencia        https://aka.ms/winget-license
Avisos de terceros          https://aka.ms/winget-3rdPartyNotice
Página principal            https://aka.ms/winget
Términos de Microsoft Store https://www.microsoft.com/en-us/storedocs/terms-of-sale

Configuración de administrador            Estado
-------------------------------------------------------
LocalManifestFiles                        Deshabilitado
BypassCertificatePinningForMicrosoftStore Deshabilitado
InstallerHashOverride                     Deshabilitado
LocalArchiveMalwareScanOverride           Deshabilitado
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jun 21, 2024
@stephengillie
Copy link

stephengillie commented Jun 21, 2024

To separate this Issue:

  • The language switching should stay in this repo.
  • The Neovim.Neovim issue should be moved to the winget-pkgs repo. 10.0 might need a different UpgradeBehavior.

I'm not sure of the best way to do this. Another Issue might be needed.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label Jun 21, 2024
@mdanish-kh
Copy link
Contributor

mdanish-kh commented Jun 21, 2024

I've run winget upgrade --all and it has installed the new version of Neovim (0.10.0) in parallel to the older one (0.9.5). Now I cannot uninstall any version even using the -v argument for winget uninstall.

@jfernandz Can you try out the 1.9-preview version of WinGet and enable the side-by-side experimental feature? The preview version has better support for side-by-side installations (The changes should be available in WinGet 1.8 stable soon). You would be able to do winget uninstall --id Neovim.Neovim --version 0.9.5 to unblock this scenario.

Otherwise, you'll have to manually uninstall the old version from appwiz.cpl / Apps&Features

@microsoft-github-policy-service microsoft-github-policy-service bot added Issue-Bug It either shouldn't be doing this or needs an investigation. Side-by-Side Issue related to side by side package installation Needs-Author-Feedback Issue needs attention from issue or PR author labels Jun 21, 2024
@jfernandz
Copy link
Author

well, the manual method (appwiz.cpl) was able to uninstall Neovim 0.9.5.

winget uninstall --id Neovim.Neovim --version 0.9.5 didn't work, but I've not tried the 1.9-preview version of WinGet 😢

maybe I should install it to check it the language issue persists; as Neovim issue is more appropriate for winget-pkgs

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Jun 24, 2024
@jfernandz
Copy link
Author

1.9-preview version doesn't solve the language issue, btw 😞

@denelon
Copy link
Contributor

denelon commented Jul 3, 2024

PS C:\Users\denelon> winget install Neovim.Neovim --version 0.9.5
Found Neovim [Neovim.Neovim] Version 0.9.5
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Microsoft.VCRedist.2015+.x64
(1/1) Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VCRedist.2015+.x64] Version 14.40.33810.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe
  ██████████████████████████████  24.2 MB / 24.2 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Downloading https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-win64.msi
  ██████████████████████████████  40.4 MB / 40.4 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\Users\denelon> winget upgrade Neovim.Neovim
Found Neovim [Neovim.Neovim] Version 0.10.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Microsoft.VCRedist.2015+.x64
Downloading https://github.com/neovim/neovim/releases/download/v0.10.0/nvim-win64.msi
  ██████████████████████████████  12.3 MB / 12.3 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\Users\denelon> winget list Neovim.Neovim
Name   Id            Version Source
------------------------------------
Neovim Neovim.Neovim 0.10.0  winget
Neovim Neovim.Neovim 0.9.5   winget
PS C:\Users\denelon> winget uninstall Neovim.Neovim --version 0.9.5
Found Neovim [Neovim.Neovim]
Starting package uninstall...
Successfully uninstalled
PS C:\Users\denelon> winget list Neovim.Neovim
Name   Id            Version Source
------------------------------------
Neovim Neovim.Neovim 0.10.0  winget
PS C:\Users\denelon>

@denelon
Copy link
Contributor

denelon commented Jul 3, 2024

What do you have in your Preferred languages?

image

@denelon denelon added this to the 1.9 Client milestone Jul 3, 2024
@denelon
Copy link
Contributor

denelon commented Jul 3, 2024

I'm going to close this issue since side-by-side is resolved, but if you're still having trouble with the locale, please file a new issue. Feel free to @ mention me in that issue.

@denelon denelon closed this as completed Jul 3, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Attention Issue needs attention from Microsoft label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Side-by-Side Issue related to side by side package installation
Projects
None yet
Development

No branches or pull requests

4 participants