-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix(python): Add a missing ' ' to the end of the python prompt #2248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this @offbyone, I have left a suggestion, can you also update the tests and the documentation (you only need to update the English version the rest will be done automatically).
src/configs/python.rs
Outdated
@@ -21,7 +21,7 @@ impl<'a> RootModuleConfig<'a> for PythonConfig<'a> { | |||
pyenv_prefix: "pyenv ", | |||
python_binary: VecOr(vec!["python", "python3", "python2"]), | |||
scan_for_pyfiles: true, | |||
format: "via [${symbol}${pyenv_prefix}(${version} )(\\($virtualenv\\))]($style)", | |||
format: "via [${symbol}${pyenv_prefix}(${version} )(\\($virtualenv\\))]($style) ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be
format: "via [${symbol}${pyenv_prefix}(${version} )(\\($virtualenv\\))]($style) ", | |
format: "via [${symbol}${pyenv_prefix}(${version} )(\\($virtualenv\\) )]($style)", |
Otherwise there would be too many spaces if the virtualenv is not activated but there is a python file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do!
0c0393e
to
da8fdcb
Compare
The test that fails passed in the last run, which differs only in its commit message. I'm pretty sure that this was a nondeterministic test run. |
Yeah, we've been fighting issues with that on-and-off for the last year. The only environments the race conditions have appeared in are GitHub Action and an s390x, which has on the order of 300 threads of actual parallelism. I've restarted a test run for you. |
@offbyone, do you plan to update your PR? I'm more than happy to help rebasing the changes and also updating the docs accordingly. |
Yeah, I plan to rebase it, sorry -- Real Life™ has interfered. |
da8fdcb
to
b590303
Compare
@ericbn I have rebased it; is this mergeable now? |
b590303
to
ff47295
Compare
ff47295
to
c8161e8
Compare
There we go: docs updated too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Would someone with permissions care to merge this? |
Description
After upgrading from 0.47 to 0.49 I noticed that there was a missing ' ' between
the python format section and the one that comes after that.
Motivation and Context
Fixes #2342
Screenshots (if appropriate):
How Has This Been Tested?
Checklist: