question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET 6 tab completion doesn't work when chaining commands with &&

See original GitHub issue

Type cd .. && dotnet msbui and press tab.

Expected behavior: cd .. && dotnet msbuild Actual behavior: cd .. && dotnet --diagnostics

Notice that this works as expected in .NET 5 SDK.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
DavidKarlascommented, Dec 28, 2020

I tried installing latest SDK… and searched a bit more about it and realized I don’t have dotnet-suggest installed and my $Profile contained:

# PowerShell parameter completion shim for the dotnet CLI
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock {
     param($commandName, $wordToComplete, $cursorPosition)
         dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object {
            [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
         }
 }

Which I assume is for .NET 5 style tab completion… Hence this is probably invalid bug…

0reactions
sfoslundcommented, Dec 28, 2020

Hmm okay I installed the lastest build (6.0.100-alpha.1.20628.5) and I’m still not able to repro. I tried it on windows command prompt and powershell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable tab completion - .NET CLI
This article teaches you how to enable tab completion for the .NET CLI for PowerShell, Bash, zsh, fish, and nushell.
Read more >
Using tab-completion in the shell - PowerShell
The MenuComplete function displays a list of matching completions below the command line. These keybindings can be changed using PSReadLine ...
Read more >
python console tab completion not working in windows
The builtin completion relies on the GNU readline library. You may be able to get completion working by installing the python version ...
Read more >
bash - Tab completion doesn't work for arguments when ...
One problem here, IIRC, is that some completion scripts are not loaded until first run, as in first: prog tab tab . As...
Read more >
Tab completion doesn't work for file arguments to certain ...
I get the impression that tab completion is snooping on my command and seeing the "fdisk" part and saying, "Oh, you can't fdisk...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found