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

[vcpkg search] output lists %-*s %s instead of port/features #26415

Closed
StarGate-One opened this issue Aug 19, 2022 · 5 comments · Fixed by microsoft/vcpkg-tool#664
Closed

[vcpkg search] output lists %-*s %s instead of port/features #26415

StarGate-One opened this issue Aug 19, 2022 · 5 comments · Fixed by microsoft/vcpkg-tool#664
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@StarGate-One
Copy link
Contributor

StarGate-One commented Aug 19, 2022

Describe the bug
A clear and concise description of what the bug is.

Environment

  • OS: [Windows 10.0.22000.856] Windows 11
  • Compiler:
    Visual Studio Community 2022 Version: [17.3.1] VS Tools Version: [14.33.31629]
    Microsoft (R) C/C++ Optimizing Compiler Version [19.33.31629] for x64

Fresh clones of vcpkg and vcpkg-tool repos.

NOTE 1 The vcpkg.exe being used is built, compiled and linked from the vcpkg-tool source with commit [ [localization][automated][ci skip] update locale file, although I suspect one of the following is the actual culprit causing the improperly formatted text in vcpkg search output:
https://github.com/microsoft/vcpkg-tool/pull/662
https://github.com/microsoft/vcpkg-tool/pull/646

The search was working properly after commit microsoft/vcpkg-tool#642 .

NOTE 2 The vcpkg.exe produces the correct output when running vcpkg list sdl2

NOTE 3 I ran bootstrap-vcpkg.bat to download, installed the latest microsoft created vcpkg and search does work correctly, so this would eliminated corruption of my vcpkg instance.

To Reproduce
Steps to reproduce the behavior:

  1. Clone, build, clone and link the latest vcpkg-tool code as of 08/18/2022 @ 22:30 EDT
  2. ./vcpkg search sdl2
  3. Sample output
    username@computer Microsoft Windows [Version 10.0.22000.856] 08/18/2022 22:15:36
    D:\vcpkg

->vcpkg search sdl2
%-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %-*s %s
%-*s %-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %s
%-*s %-*s %s
%-*s %-*s %s
%-*s %s
%-*s %-*s %s
%-*s %s
The result may be outdated. Run git pull to get the latest results.
If your port is not listed, please open an issue at and/or consider making a pull request. - >https://github.com/Microsoft/vcpkg/issues

Expected behavior
./vcpkg search sdl2 - should list all ports/features containing the term "sdl2"

Failure logs

  • No Failure logs

Additional context
Note: I use vcpkg in classic mode, no registries, no overlays, no binary caching, etc.

@LilyWangLL LilyWangLL added requires:repro The issue is not currently repro-able category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) and removed requires:repro The issue is not currently repro-able labels Aug 19, 2022
@LilyWangLL
Copy link
Contributor

LilyWangLL commented Aug 19, 2022

I can reproduce this issue locally. @BillyONeal Can you help take a look this issue?

@BillyONeal
Copy link
Member

image

🤣😬

Thanks for the report

BillyONeal added a commit to BillyONeal/vcpkg-tool that referenced this issue Aug 19, 2022
BillyONeal added a commit to microsoft/vcpkg-tool that referenced this issue Aug 19, 2022
* Fix fmt format strings. Resolves  microsoft/vcpkg#26415

This regressed in 107754f

* More!
@StarGate-One
Copy link
Contributor Author

Thank you very much @BillyONeal - works as advertised now :)
Have a super wonderful weekend.

@BillyONeal
Copy link
Member

You too!

@BillyONeal
Copy link
Member

https://www.reddit.com/r/ProgrammerHumor/comments/wqjgbn/lgtm/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants