-
Notifications
You must be signed in to change notification settings - Fork 381
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
Issues with dotnet-suggest #2451
Comments
In .NET SDK 8, |
Thank you for your comment @KalleOlaviNiemitalo. I was able to make it work the following way:
But does this also mean that it is not possible to make |
dotnet-suggest 1.1.327201 targets .NET 6.0; you could still install that version if you don't want to use .NET 8.0. That version was built from commit 209b724, which has tag 2.0.0-beta4.22272.1 in this repository. |
I tried running the same steps as I was using for dotnet8 with dotnet6, but I believe that since I am not able to use the latest It behaves the same as I describen in the original issue. |
I was trying to follow this tutorial to see if I was able to create a CLI tool with tab completion, but I had a few issues along the way.
1. dotnet-suggest might not be compatible with dotnet8
I am using
Ubuntu 22.04
withDocker version 27.0.3, build 7d4bcd8
.Downloaded dotnet8 docker image from here.
Created the container and made sure dotnet8 was installed:
Installed the latest dotnet-suggest, which is including dotnet7, but should be compatible with dotnet8.
However, running
dotnet-suggest
results in:It might be just me having insufficient understanding on how nuget compatibility works.
2. dotnet-suggest-shim.bash wrong line ending
I was doing the same as before, only with dotnet6.
root@f0e2498d9c85:/# dotnet --info .NET SDK (reflecting any global.json): Version: 6.0.423 Commit: c5c9e53229 Runtime Environment: OS Name: debian OS Version: 11 OS Platform: Linux RID: debian.11-x64 Base Path: /usr/share/dotnet/sdk/6.0.423/ global.json file: Not found Host: Version: 6.0.31 Architecture: x64 Commit: e2ca2f8a1c .NET SDKs installed: 6.0.423 [/usr/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.31 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.31 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Download .NET: https://aka.ms/dotnet-download Learn about .NET Runtimes and SDKs: https://aka.ms/dotnet/runtimes-sdk-info
Installed the second most recent dotnet-suggest as it is compatible with dotnet6.
The package installs fine, but when I add script to bashrc, it looks like that the line endings are not following the unix standard:
Just copying the content of the file into
~/.dotnet-suggest-shim.bash'
seems to fix the issue.3. No suggestion for app created with System.CommandLine
I recreated the example solution shown here.
I tried to get inspired from this, this and this issue, but could not make it work.
It looks like autocomplete does work with
dotnet-suggest
itself:But not with
scl
:Also does not return anything.
I did not do any in-depth debugging with the method descripted here, but I can give it a try if needed.
I appreciate any help! :)
The text was updated successfully, but these errors were encountered: