command-line-api
command-line-api copied to clipboard
dotnet-suggest tool broken in 2.0.0-rc.2 - `dotnet-suggest get` returns nothing
> dotnet tool install --global dotnet-suggest --version 2.0.0-rc.2.25502.107
> dotnet-suggest --version
2.0.0-rc.2.25502.107+89c8f6a112d37d2ea8b77821e56d170a1bccdc5a
# "dotnet-suggest get" returns nothing. Though it should.
# with "--debug": nothing
> dotnet-suggest get --debug --executable dotnet-suggest
> $LASTEXITCODE
0
# without "--debug": nothing
> dotnet-suggest get --executable dotnet-suggest
# with partial command: nothing
> dotnet-suggest get --executable dotnet-suggest -- l
# meanwhile: [suggest] works
> dotnet-suggest [suggest]
--help
--version
-?
-h
/?
/h
get
list
register
script
@juwens I've encountered the same problem, but the latest "main" version does seem to have fixed this.
Could you try to test that version?
# Clone
git clone https://github.com/dotnet/command-line-api.git
# Build
dotnet pack -c release command-line-api/src/System.CommandLine.Suggest/dotnet-suggest.csproj
# Install
dotnet tool install -g --source command-line-api/artifacts/packages/release/Shipping --prerelease dotnet-suggest
# Test
dotnet-suggest re[ENTER]
dotnet-suggest register
@flyingpie thx for the instructions. Sadly i struggle to compile the project
> dotnet pack -c release src/System.CommandLine.Suggest/dotnet-suggest.csproj
C:\github\dotnet__command-line-api\Directory.Build.props(3,3): error :
Could not resolve SDK "Microsoft.DotNet.Arcade.Sdk". Exactly one of the probing messages below indicates why we could
not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" returned null.
Unable to resolve 'Microsoft.DotNet.Arcade.Sdk (= 9.0.0-beta.25475.3)' for '.NETStandard,Version=v0.0'. PackageSourc
eMapping is enabled, the following source(s) were not considered: dotnet-eng, dotnet-libraries, dotnet-public, dotnet-
tools.
C:\github\dotnet__command-line-api\Directory.Build.props(3,31): error MSB4236: The SDK 'Microsoft.DotNet.Arcade.Sdk' specified could not be found.
Restore failed with 2 error(s) in 0,4s
> dotnet --list-sdks
8.0.408 [C:\Program Files\dotnet\sdk]
9.0.306 [C:\Program Files\dotnet\sdk]
10.0.100-preview.7.25380.108 [C:\Program Files\dotnet\sdk]
> git branch
* main
> git log
commit bde5be7716dbdd182a498650123363007a63bc5b (HEAD -> main, origin/main, origin/HEAD)
Author: Eric StJohn <[email protected]>
Date: Thu Oct 30 21:39:31 2025 -0700
Update global.json to include SDK settings (#2714)
The `tools` section is proprietary and only used by arcade.
The `sdk` section is used by dotnet to ensure this SDK version is used, and also what the publicly available AzDo build tasks use when installing dotnet.
@juwens With release 2.0, the issue has been fixed for me. Can you check that?
Tab completion works fine now.
Any permutation of "dotnet-suggest get ..." still returns nothing though. AFAIK it should.
i tried
dotnet-suggest get --executable dotnet-suggest
dotnet-suggest get --executable dotnet-suggest -p 1
dotnet-suggest get --executable dotnet-suggest re
dotnet-suggest get --executable dotnet-suggest -- re
dotnet-suggest get --executable dotnet-suggest -p 2 -- re
> dotnet-suggest --version
2.0.0+b0f34d51fccc69fd334253924abd8d6853fad7aa