winget-pkgs icon indicating copy to clipboard operation
winget-pkgs copied to clipboard

[Package Issue]: GNU.Nano

Open Sculas opened this issue 3 years ago • 10 comments

Please confirm these before moving forward

  • [X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • [X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

Winget downloads the nano executable to a folder and then adds the directory to the PATH, but it doesn't rename the executable it just downloaded. I had no idea why nano wasn't found until I realized it has the name nano-git-0d9a7347243.exe.

Steps to reproduce

  1. Run winget install -e --id GNU.Nano -v 2.7.5
  2. Restart Terminal
  3. Run nano, and observe the "command not found" error
  4. Find where the executable is located, I found it by looking at $PATH
  5. Observe that the nano executable is named nano-git-0d9a7347243.exe

Actual behavior

The nano executable is named nano-git-0d9a7347243.exe

Expected behavior

The nano executable should be named nano.exe

Environment

Windows Package Manager (Preview) v1.5.101-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1194
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.101.0

Screenshots and Logs

No response

Sculas avatar Jan 31 '23 16:01 Sculas

I'm not able to reproduce this on my end, and I do see that the manifest has nano as the command which should rename the executable. Are you able to post the log file from when you installed Nano?

Trenly avatar Jan 31 '23 16:01 Trenly

I uninstalled Nano, then followed the steps to reproduce and I'm getting the same issue. Here's the log file: WinGet-2023-01-31-17-59-21.483.log

Sculas avatar Jan 31 '23 17:01 Sculas

On a side note, 2.7.5 is an extremely ancient version, and has not received an update in years.

An up to date Windows port (7.2-10) is available at https://github.com/okibcn/nano-for-windows

rasa avatar Feb 12 '23 18:02 rasa

There also appears to be an official 6.2.2 (nano-v6.2-2-g93400ec8a19a.exe) here . 2.7.5 is very old, and missing many features and bug fixes. I am not sure why this version is the only version being made available.

rasa avatar Feb 14 '23 20:02 rasa

The version already available in WinGet is this standalone exe file nano-git-0d9a7347243.exe from the official source https://nano-editor.org/dist/win32-support/. The other executable you mentioned nano-v6.2-2-g93400ec8a19a.exe does not work for me in PowerShell (has a dependency on another terminal emulator?)

 ~ .\nano-v6.2-2-g93400ec8a19a.exe
Error opening terminal: vt220.

The unofficial alternative you suggested happens to use .7z extension which is not currently supported by WinGet.

mdanish-kh avatar Feb 14 '23 21:02 mdanish-kh

The unofficial alternative you suggested happens to use .7z extension which is not currently supported by WinGet.

From now on it will be delivered also in zip format. The current version is 7.2-13.

okibcn avatar Feb 17 '23 06:02 okibcn

There is now an updated nano v7.2-13.2 for the three Windows architectures in Internet:

  • Windows 32 bits
  • Windows 64 bits
  • Windows on Arm

The exe downloaded by the nano manifest in Winget has several problems:

  • it is more than 6 years old, and a lot of functionality was added after that ancient version.
  • it lacks any documentation
  • it is not an installer, but the raw exe file.

okibcn avatar Feb 28 '23 21:02 okibcn

Still the same issue.

AsciiWolf avatar Jul 29 '23 00:07 AsciiWolf

Also this is what I get in winget list when I install GNU.Nano

Name                                                        Id                    Version Available Source
----------------------------------------------------------------------------------------------------------
GNU Nano                                                    GNU.Emacs             2.7.5   29.1      winget 

bfcns avatar Dec 27 '23 14:12 bfcns

The version already available in WinGet is this standalone exe file nano-git-0d9a7347243.exe from the official source https://nano-editor.org/dist/win32-support/. The other executable you mentioned nano-v6.2-2-g93400ec8a19a.exe does not work for me in PowerShell (has a dependency on another terminal emulator?)

 ~ .\nano-v6.2-2-g93400ec8a19a.exe
Error opening terminal: vt220.

Still happening for me on the latest version. I cannot find any documentation about these builds to troubleshoot. It seems like we need unofficial ports unless they are patched.

The URL is also currently bugged: https://github.com/ChrisTitusTech/winutil/issues/1490

jesjess243 avatar Jan 30 '24 20:01 jesjess243