-
Notifications
You must be signed in to change notification settings - Fork 306
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
How to improve tab-completion for userland classes? #435
Comments
I'm unable to reproduce this, with almost identical configuration. I can't think of a reason why it would inconsistently autocomplete, except for code that's auto-loaded. For example, I wouldn't expect it to autocomplete a class name that hasn't loaded yet... but methods on existing objects? There should be no problem here. |
Thank You for replying. So as I understand it should work consistently for all instantiated classes?
Example run:
I'm puzzled. The strange thing is that it works sometimes, and I can't predict when will it. It's not just that I have to call anything on the object first (could live with that), but very well it can work once and then again do nothing. |
I'd be curious to know whether 1f9bc08 fixes this for you. |
Thanks for notifying, sadly it seems not to.
There is still this weird inconsistency (does / does not complete) depending on previous line. I'm thinking of creating a docker env to test it for my sanity :) |
My experience is the same, sometimes tab expansion fails and there doesn't seem to be any pattern to when, and it is usually not repeatable. |
Closing as the title is not very "accurate". The (apparently rare) tab-completion issue is discussed in #561 |
Hi, I'm having strange issue with tabcompletion. It only works "the second time" - see:
I don't think it's supposed to work like this.
I currently use psysh under luxifer/symfony-repl, but it was the same case with bare psysh or psysh-bundle. I've tried googling around, read existing Issues, checked my config etc. No one seems to have the same problem as I do.
Some time ago I used artisan:tinker for a Laravel project and tabcompletion worked flawlessly for any class I needed - and I understand it uses psysh underneath. This is exactly what I'd like to achieve.
More info:
If i press [tab] in empty prompt, I get:
Display all 3544 possibilities? (y or n)
I care about this because I use psysh daily for rapid prototyping - it's a great tool.
If this is a wrong place to ask - apologies in advance :)
The text was updated successfully, but these errors were encountered: