Skip to content
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

textual-autocomplete breaks textual-0.12+ #10

Closed
stragulus opened this issue Feb 28, 2023 · 2 comments · Fixed by #12
Closed

textual-autocomplete breaks textual-0.12+ #10

stragulus opened this issue Feb 28, 2023 · 2 comments · Fixed by #12

Comments

@stragulus
Copy link

Reproduce:

python3 -mvenv python
source python/bin/activate
pip install textual==0.12.1
python git/textual/examples/calculator.py # it works!
pip install textual-autocomplete
python git/textual/examples/calculator.py # sad face

Looks like it may have broken all widget with the new context manager feature?

@stragulus
Copy link
Author

Oh my. The issue is, if you manually pip install textual-autocomplete it will DOWNGRADE the existing installed textual package. Reading some more that is apparently a contentious issue with how pip is supposed to handle dependency management. Worked around it by strictly using a requirements.txt file but if this is supposed to work with 0.11+, maybe it should be instrumented to specify that as a minimum requirement so it won't attempt to downgrade existing installs?

@TomJGooding
Copy link

TomJGooding commented Mar 24, 2023

With the pace of new Textual releases, I totally understand the problem trying to keep this library compatible.

But this sentence in the README is a bit misleading given the caret requirements in pyproject.toml:

textual-autocomplete supports Textual version 0.11.0 and above.

@darrenburns Is there any chance of an auto-complete feature being added to Textual at some point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants