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
[Bug] completions of git
broken with colored-stats
#208
Comments
Please show the value of the It sounds like there is a syntax error in its value. |
Can you please share your |
It seems I am failing to make it clear. It is literally a completely fresh profile. I have only added an .inputrc. I haven't changed any settings Here's the contents of
|
Are you unable to reproduce this? |
I am unable to reproduce this. I am using a perfectly fresh profile, with an .inputrc file containing only The I think your git*.exe files must all be symlinks. I am unable to reproduce what you are experiencing. I believe that you're experiencing the issue. But there is something more going on than just "fresh profile", and it will be necessary to find what is missing before I'll be able to make any progress. |
Aha. I found the place in the code that must be getting reached. I don't know how to make it get reached. There is something about your setup that is different from mine with respect to the installation of git for windows. The issue here is a pre-existing bug in Readline. I can fix the bug, though I still don't know how it's being reached. There is some kind of context missing in the report -- by which I mean there is something neither of us realizes is important, and so neither of us knows to check it. |
Found it: You have a bunch of broken symlinks. All those "git*.exe" symlinks point to files that do not exist. Readline fails to correctly show colors for broken symlinks when "target" color mode is used but no E.g. bash will have the same problem when configured the same ( |
You are right that they are symlinks. I totally forgot about it coz I had it set up a while ago 🤦. But they are not broken. The targets are valid and run correctly. However, their targets are not defined as absolute paths but as relative ones. Maybe that was the issue? |
Can confirm that setting |
Aha, there was a second bug: This was a nice couple of bugs -- one in Readline and one in Clink! Thanks for reporting this and helping me wrap my head around what was happening! |
`os.globfiles()` wasn't looking up symlinks correctly, and ended up thinking all symlinks were orphaned.
When setting
colored-stats on
in the inputrc, completions of the phrasegit
seems to be brokenSteps to reproduce:
.inputrc
file containing justset colored-stats on
git
, then press Alt + = (possible-completions
)I get this output:
All matches are getting prefixed with
argetm
. Weirdly enough, I could only reproduce this when the completion starts withgit
. Other completions likecmd
work correctlyPS: In case it matters, I am using clink 1.2.46 portable on Windows 10 and can reproduce this issue with both Windows terminal and the normal cmd
Let me know if any additional details are needed
The text was updated successfully, but these errors were encountered: