Conversation
|
Findings
Missing tests / edge cases
If you want, I can sketch a minimal pytest for this. |
f561b53 to
c59f091
Compare
|
Interesting! Does this command not work on your setup? python -m webbrowser -t "https://www.python.org"A try/except wouldn't help. The error output is coming from an external program. But I think the issue can be fixed by the same invalidation trick as in #1632 . |
* open documentation index in web browser * emit output using prompt_toolkit methods such that the prompt is restored including pending input * include the docs URL in the output in case the browser did not open * include alternate F1 key sequence that prompt_toolkit doesn't handle * update TIPS and key_bindings.rst
c59f091 to
9003253
Compare
|
See if the pushed changes fix the spurious output for you by invalidating the display. |
I use WSL2 on Windows11 for most of my testing, so always a bit different. I am able to install packages to make it work to load the browser though, so verified that bit works. However the error output is the same after your most recent change. But it looks fine in general, and I couldn't find any good way to suppress the error without getting hacky. So should be good as-is. |
|
That's good to know. Maybe we could improve our Windows support, both in and out of WSL2. Maybe we could at least improve the documentation. |

Description
prompt_toolkitmethods such that the prompt is restored including pending inputprompt_toolkitdoesn't handleTIPSandkey_bindings.rstChecklist
changelog.mdfile.AUTHORSfile (or it's already there).