Skip to content

Warning that --trace is being used when it's not being used #3622

Closed
@AdmiringWorm

Description

@AdmiringWorm

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • 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.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

When attempting to run Chocolatey CLI in a non-elevated mode, a warning is outputted to the user about the --trace option not being available, despite the argument not being used.

What is Expected?

When the argument is not used, it was not expected that this warning would be outputted.

How Did You Get This To Happen?

  1. From a non-elevated session, without Background Service enabled, run choco search chocolatey.
  2. Notice a warning about the trace option is outputted.

System Details

  • Operating System: Windows 11
  • Windows PowerShell version: 5.1.26100.2161
  • Chocolatey CLI Version: 2.4.2
  • Chocolatey Licensed Extension version: 6.3.1
  • Chocolatey License type: Business
  • Terminal/Emulator: Tabby

Installed Packages

1password 8.10.58
1password8 8.10.58
7zip.install 24.9.0
baretail 3.50.0.20120226
bitwarden 2025.1.3
bruno 1.36.1
burnttoast-psmodule 0.8.5
cakerecipe-vscode 0.5.0
chef-workstation 24.12.1073
choco-ccm-onboard 1.1.0
choco-cloudflared-tunnel-config 1.1.0
choco-falcon-security 6.49.16303
chocolatey 2.4.2
chocolatey.extension 6.3.1
chocolatey-agent 2.2.2
chocolatey-community-validation.extension 0.2.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-font-helpers.extension 0.0.4
chocolateygui 2.1.1
chocolateygui.extension 2.0.0
chocolatey-license 2024.9.25
chocolatey-misc-helpers.extension 0.0.4
chocolatey-visualstudio.extension 1.11.1
chocolatey-vscode 0.7.2
chocolatey-vscode.extension 1.1.0
chocolatey-windowsupdate.extension 1.0.5
choco-rapid7-insight-agent 2023.7.23
choco-toast-notifications.hook 1.1.0
ci-cd-assets-vscode 0.5.0
cleanup-desktop-shortcuts.hook 0.1.0-alpha-20221103
cloudflared 2024.12.2
credentialmanager.powershell 3.0.2
discord 1.0.9180
discord.install 1.0.9180
DotNet4.6.1 4.6.1055.20170308
dotnet4.7 4.7.2053.20190226
dotnet-6.0-desktopruntime 6.0.36
dotnet-9.0-desktopruntime 9.0.1
dotnet-desktopruntime 9.0.1
dotnetfx 4.8.0.20220524
Firefox 134.0.2
gh 2.66.1
git 2.47.1.20250115
git.install 2.47.1.20250115
glab 1.52.0
glab.portable 1.52.0
gpg4win 4.4.0
gsudo 2.5.1
hwmonitor 1.55.0.20240927
ilspy 9.0.0
irfanview 4.70.0
irfanviewplugins 4.70.0
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
KB3118401 1.0.5
keybase 6.4.0
k-litecodecpackfull 18.7.5
languagetool 6.5.0
libreoffice-still 24.8.4
librewolf 133.0.3.1
lockhunter 3.4.3.20220526
meld 3.22.0
microsoft-ui-xaml-2-7 2.7.3
microsoft-vclibs-140-00 14.0.33321
nerd-fonts-FiraCode 3.3.0
notepadplusplus.install 8.7.6
nssm 2.24.101.20180116
nuget.commandline 6.12.2
obsidian 1.8.4
oh-my-posh 24.18.0
onedarkpro-vscode 3.18.0
op 2.30.3
paint.net 5.1.2
pcloud 4.1.10
poshgit 0.7.3.1
PowerShell 5.1.14409.20180811
powershell-core 7.4.6.20241029
powertoys 0.88.0
protonvpn 3.4.3
psexec 2.43.0
pwsh 7.4.6.20241029
slack 4.42.115
spotify 1.2.56.502
tabby 1.0.216
thunderbird 128.6.0
vagrant 2.4.3
vcredist140 14.42.34433
vcredist2015 14.0.24215.20170201
ventoy 1.1.0
virtualbox 7.1.4
visualstudio2022professional 117.12.2
visualstudio-installer 2.0.3
vlc.install 3.0.21
vmwareworkstation 17.6.1.24319023
vscode 1.96.4
vscode.install 1.96.4
vscode-chrome-debug 4.13.0
vscode-csharp 1.26.0
vscode-editorconfig 1.0.0.20181011
vscode-firefox-debug 2.14.0
vscode-gitattributes 0.4.1.20190310
vscode-gitignore 0.9.0
vscode-gitlens 1.0.0.20181011
vscode-icons 1.0.0.20190314
vscode-intellicode 1.3.2
vscode-markdown-all-in-one 3.4.0
vscode-markdownlint 1.0.0.20181011
vscode-powershell 2025.0.0
vscode-prettier 11.0.0
vscode-vsliveshare 1.0.5948
vswhere 3.1.7
winget-cli 1.9.25200
winmerge 2.16.46
zoom 6.3.6.56144
120 packages installed.

Output Log

https://gist.github.com/AdmiringWorm/09ef24c3d0241abc712dc8e5cf73398a

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions