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

Exception thrown when browsing any sources apart from 'This PC' in Chocolatey GUI #3165

Closed
4 tasks done
pauby opened this issue May 24, 2023 · 1 comment
Closed
4 tasks done
Assignees
Labels
5 - Released Bug NO RELEASE NOTES Should not be included in the release notes - not enhancing or fixing end product.
Milestone

Comments

@pauby
Copy link
Member

pauby commented May 24, 2023

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.

What You Are Seeing?

When browsing any source besides 'This PC', Chocolatey GUI throws this error:

Failed To Load
Failed to load remote packages!
No runner was found that implements souce type 'normal' or, it does not support requested functionality.

image

It then goes on to throw an exception and close Chocolatey GUI:

image

What is Expected?

Chocolatey GUI should show the packages from the source.

How Did You Get This To Happen?

  1. Open Chocolatey GUI
  2. Select any source besides 'This PC'.

System Details

  • Operating System: Windows Server 2019
  • Windows PowerShell version: 5.1
  • Chocolatey CLI Version: 2.0.0
  • Chocolatey Licensed Extension version: 6.0.0
  • Chocolatey License type: Business
  • Terminal/Emulator: Windows PowerShell

Installed Packages

chocolatey 2.0.0
chocolatey.extension 6.0.0
chocolatey-agent 2.0.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolateygui 2.0.0
chocolateygui.extension 2.0.0
dotnetfx 4.8.0.20220524
KB2919355 1.0.20160915
KB2919442 1.0.20160915

Output Log

(We have confirmed this is a bug, so logs are not needed)

Additional Context

It has been confirmed that this is a bug in Chocolatey CLI.

@pauby pauby added the Bug label May 24, 2023
@pauby pauby added this to the 2.0.0 milestone May 24, 2023
@AdmiringWorm AdmiringWorm self-assigned this May 24, 2023
@AdmiringWorm AdmiringWorm added 2 - Working NO RELEASE NOTES Should not be included in the release notes - not enhancing or fixing end product. labels May 24, 2023
AdmiringWorm added a commit to AdmiringWorm/choco that referenced this issue May 24, 2023
This commit updates the Count method that is used to get
the amount of packages available on normal and alternative
sources to include support for the nuget service.

During a previous refactor we had removed the support of
acquiring packages on normal sources by a mistake, which
causes an issue with Chocolatey GUI to fail due to no available
source runner can be found when dealing with counting packages.
This was fixed by including an explicit call to the nuget service when
norrmal sources are being used.
corbob added a commit that referenced this issue May 24, 2023
(#3165) Update count method to support nuget service
@corbob corbob closed this as completed May 24, 2023
@choco-bot
Copy link

🎉 This issue has been resolved in version 2.0.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

gep13 added a commit that referenced this issue May 31, 2023
* master: (148 commits)
  (#948) Add user as sensitive argument
  (#158) Error on list -lo without -r
  (doc) Update description of page-size argument
  (#158) Restore -lo warning when not using -r
  (#158) Update tests
  (#158) Relegate the -lo warning to log-file-only
  (#3165) Update count method to support nuget service
  (maint) Update Chocolatey.NuGet.Client version
  (build) Update GRM Template to add full stop.
  (build) Update GRM config for BuildAutomation tag
  (#508) Ensure correct configuration object is used
  (tests) Use nuspec for version normalization tests
  (tests) Tag version normalization Pester tests
  (#158) Restore --source in tab completion for list
  (#158) Refactoring based on pairing session
  (#158) Restore --source for choco list
  (maint) Add vscode settings file
  (maint) Changes during pairing session
  (tests) Add non-normalized version Pester tests
  (maint) Update testing vagrant for granular runs
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Released Bug NO RELEASE NOTES Should not be included in the release notes - not enhancing or fixing end product.
Projects
None yet
Development

No branches or pull requests

5 participants