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.

Tab completion fails with a specific sequence

See original GitHub issue

I have reported this issue on PSReadline, however it turns out it’s vanilla PS at fault. I have also created a GIF with keystrokes to show what the actual problem is.

It seems that certain sequences (ty to be precise) don’t complete as intended. They do so on the Linux 6.2.3 release, but they don’t on the Windows 7.0.0-Preview.5

Steps to reproduce

tabcomplete

Expected behavior

Tab complete the unambigous filename even when between t and y.

Actual behavior

Completion only happening on Linux.

Environment data

Linux

Name                           Value
----                           -----
PSVersion                      6.2.3
PSEdition                      Core
GitCommitId                    6.2.3
OS                             Linux 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Windows

Name                           Value
----                           -----
PSVersion                      7.0.0-Preview.5
PSEdition                      Core
GitCommitId                    7.0.0-Preview.5
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
daxian-dbwcommented, Jan 31, 2020

Hmm, I cannot reproduce the issue on my windows machine. @MathiasMagnus Please follow instructions here to build PowerShell on windows. Let us know if you run into issues.

1reaction
iSazonovcommented, Jan 31, 2020

How can I attach a debugger to walk through the code that triggers on tab completion?

We have all needed configs in the repo for VS Code. See our docs how to build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Force Bash normal tab completion if intelligent ...
The following should turn on normal bash completion after all 'intelligent' completions have failed for the programs tar, vim and emacs:
Read more >
Bash auto completion not working after certain command
I am using graphViz under bash / Cygwin, but somehow when calling it, bash tab autocomplete does not do anything. Example files: myGraph....
Read more >
Tab completion problem using start in Powershell
PowerShell's tab-completion logic is currently hard-wired to: default to escaped completion,; except if the target parameter name (if known) ...
Read more >
How to get bash to stop escaping $ during tab completion?
I've found that bash versions >= 4.2.29 have a new direxpand shopt setting. (See man docs/bash.1 if you check out a new bash,...
Read more >
Appendix J. An Introduction to Programmable Completion
The programmable completion feature in Bash permits typing a partial command, then pressing the [Tab] key to auto-complete the command sequence.
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