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

Command Not Found won't work #36442

Open
ak1dd opened this issue Dec 19, 2024 · 2 comments
Open

Command Not Found won't work #36442

ak1dd opened this issue Dec 19, 2024 · 2 comments
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-CommandNotFound Refers to Command Not Found PowerToy

Comments

@ak1dd
Copy link

ak1dd commented Dec 19, 2024

Microsoft PowerToys version

0.87.0

Installation method

WinGet

Running as admin

Yes

Area(s) with issue?

Command not found

Steps to reproduce

Simply install Powertoys and enable Command-Not-Found

✔️ Expected Behavior

something to happen

❌ Actual Behavior

It used to work with my current/unchanged Profile settings. I install every PT update so I'm not sure when it stopped working.

I open the dashboard, select Advanced, Command Not Found - Installed. All following components detected.

Open a new Powershell in terminal. Type vim (or anything not installed) - "vim: The term 'vim' is not recognized as a name of a cmdlet"

Restart computer. Try again. No change.

Uninstall Powershell 7.4.6 x64. Restart system. Reinstall (tried both Winget and msi). Uninstall CNF. Uninstall Powertoys. Restart computer.

Reinstall Powershell. Reinstall Powertoys. Reinstall CNF. Verify $PROFILE has had CNF Import-Module. Tried this whole uninstall/reinstall as both admin and not.

$PROFILE

oh-my-posh init pwsh --config 'C:\Users\XXXX\AppData\Local\Programs\oh-my-posh\themes\mineallmine.mytheme.omp.json' | Invoke-Expression
Import-Module -Name Terminal-Icons

if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}

Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode Windows

#f45873b3-b655-43a6-b217-97c00aa0db58 PowerToys CommandNotFound module

Import-Module -Name Microsoft.WinGet.CommandNotFound
#f45873b3-b655-43a6-b217-97c00aa0db58

Get-ExperimentalFeature

Name Enabled Source Description


PSCommandNotFoundSuggestion True PSEngine Recommend potential commands based on …
PSCommandWithArgs False PSEngine Enable -CommandWithArgs parameter fo…
PSFeedbackProvider True PSEngine Replace the hard-coded suggestion fram…
PSLoadAssemblyFromNativeCode False PSEngine Expose an API to allow assembly loadin…
PSModuleAutoLoadSkipOfflineFiles False PSEngine Module discovery will skip over files …
PSSubsystemPluginModel False PSEngine A plugin model for registering and un-…

Verify Dashboard says CNF installed. Powertoys works. No change CNF doesn't do anything.

I am using oh-my-posh 24.15.1 (latest).

I see other closed reports (i.e. #35666, #31250, etc) with exactly the same symptoms described and none have a resolution beyond - it eventually fixed itself or abandoned resolution attempts

log_2024-12-19.zip

Installation log_2024-12-19.zip

Other Software

No response

@ak1dd ak1dd added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 19, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@ak1dd
Copy link
Author

ak1dd commented Dec 19, 2024

FWIW, I just tried another computer that is also Windows 11, fully updated as of today. Never had Powertoys on it. Installed PT, Went to CNF settings, the winget Client Powershell module was not installed. I installed it. Everything says installed/Detected.

Does nothing. Reboot. Nothing.

I'm at a loss as to what to try next. I'm not doing anything but an install and turning it on.

@TheJoeFin TheJoeFin added the Product-CommandNotFound Refers to Command Not Found PowerToy label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-CommandNotFound Refers to Command Not Found PowerToy
Projects
None yet
Development

No branches or pull requests

2 participants