Skip to content

Package names are being truncated when searching with empty string #2603

Closed

Description

@fernandog

Brief description of your issue

Package name are being truncated (notice the "..." ) when you do a search with empty string: winget search " "

image

This issue doesn't happen when you search by part of the name
winget search visualstudio

image

Using Powershell x86 with maximized window on both commands

Steps to reproduce

search with empty string: winget search " "

Expected behavior

No truncated package names

Actual behavior

Package names are being truncated

Environment

PS C:\WINDOWS\system32> winget --version
v1.3.2691

Windows 11 22H2

Activity

  1. ghost added
    Needs-TriageIssue needs to be triaged
    on Oct 17, 2022
  2. added
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    and removed
    Needs-TriageIssue needs to be triaged
    on Oct 18, 2022
  3. denelon commented on Dec 1, 2022

    @denelon
    Collaborator

    The output is truncated to fit the terminal width in the CLI. We've got PowerShell modules and cmdlets coming out in the next release which don't truncate the output.

  4. dong-lufei commented on Jan 13, 2023

    @dong-lufei

    #2842

    I didn't search for empty characters or app names with spaces, the command I used was winget list (and viewed at full screen size).
    In the displayed list of downloaded and installed application results, some application names or IDs are truncated and cannot be viewed completely

  5. Frxhb commented on Jan 17, 2023

    @Frxhb

    The output is truncated to fit the terminal width in the CLI. We've got PowerShell modules and cmdlets coming out in the next release which don't truncate the output.

    is there a plan when this will be released? I joined the Windows Package Manager Insiders Program but It didnt change. Or wasnt it changed yet? Thanks alot.

  6. denelon commented on Jan 17, 2023

    @denelon
    Collaborator

    A preview version of the PowerShell cmdlets is available via the GitHub release.

  7. Frxhb commented on Jan 17, 2023

    @Frxhb

    A preview version of the PowerShell cmdlets is available via the GitHub release.

    Thanks, I have installed it. Can you tell me how to format the output of winget search """"now better?

  8. denelon commented on Jan 17, 2023

    @denelon
    Collaborator

    Once the module is available, you can just run Find-WinGetPackage and pull the output you need. The default display in the terminal will still show truncated values, but the object contains the names.

  9. modified the milestones: v1.5-Client, on Apr 18, 2023
  10. Trenly commented on Jun 16, 2023

    @Trenly
    Contributor

    [Policy] Area-Output

  11. RockstarSven commented on Aug 9, 2023

    @RockstarSven

    A workaround could be to output the results to file, and then review the file:

    The default is truncated:

    PS> winget list Microsoft.VisualStudio.2019
    Name                                Id                                    Version  Available Source
    ---------------------------------------------------------------------------------------------------
    Visual Studio Build Tools 2019      Microsoft.VisualStudio.2019.BuildToo… 16.11.28 16.11.29  winget
    

    I use:

    PS> winget list Microsoft.VisualStudio.2019 > foo.txt
    PS> cat .\foo.txt
    
    Name                                Id                                       Version  Available Source
    ------------------------------------------------------------------------------------------------------
    Visual Studio Build Tools 2019      Microsoft.VisualStudio.2019.BuildTools   16.11.28 16.11.29  winget
    
  12. schittli commented on Jul 27, 2024

    @schittli
  13. denelon commented on Aug 2, 2024

    @denelon
    Collaborator

    You can use the Microsoft.WinGet.Client PowerShell module and Find-WinGetPackage "" using PowerShell.

  14. removed this from the milestone on Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-OutputIssue related to CLI outputIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    Projects

    • Status
      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions