-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
No Emojis on PowerShell #3156
Comments
I might be wrong but I believe this is a pre-commit issue. |
@jack1142 But then why do other packages work with |
@jack1142 The |
Just a warning/heads-up; nothing more. |
We could also consider blaming |
@JelleZijlstra Who will submit the issue with |
@JelleZijlstra Can you provide an update? |
I don't have any insights to share. |
Did you open an issue with |
@ichard26 Can you provide insights? |
Sadly no. |
Are there any |
This is a volunteer project and you can't expect anyone to pick this up spontaneously. Personally I am unlikely to do anything more here because I can't reproduce the problem (I don't even have Windows) and I don't think I will enjoy digging into it. |
@JelleZijlstra This issue has been open since July. I just mean is someone in charge of assigning tasks to contributors for the Not expecting anything, just asking. If no one can tackle this, I'll close with "won't fix". Is that alright? |
Closing as a "won't fix". |
This is a fairly hard problem to solve and is shows up when black (or any python program) is captured/redirected in anyway; This snippet from sys.stdout doc says what's happening:
For anyone else hitting this problem, the only possible fix I have found is to set Is it worth adding this as a note in the docs somewhere perhaps? |
@ashb Thank you for looking at this and taking an interest. I appreciate you contributing your time. In regards to the above, I have some remarks:
import os
if os.name == 'nt':
os.environ['PYTHONUTF8'] = 1 I mentioned If you are able and would like to, would you consider looking at packages like
If are able to identify that other packages set |
@ashb I would also be willing to help you with a PR, should you need assistance. Please let me know if this is something you would like me to do. |
Great to see progress being made here! I'm happy to review a PR if that's the outcome. |
Sure I'll take a look at pycln and see what it does differently |
Here is how pycln fixes it: Setting In #3374 I've done a similar fix to what pycln did. PTAL @JelleZijlstra |
@adam-grant-hendry That is an unhelpful comment. I understand your frustration, but leaving the comment serves no purpose but to annoy others. |
@adam-grant-hendry, man, don't be like that. Don't treat maintainers of an open-source project like they owe you anything. The license is pretty explicit about the reality of the situation. I don't like waving it in front of anybody's nose but it feels like you misunderstand your role. The issue has been filed (thank you), and it's open until somebody with Windows will handle it. Maybe you? You can reproduce it and you clearly care about it. So go and contribute. There's an open PR already. Check it out and confirm if it solves your problem. But definitely don't go and demand action, nor -- worse yet! -- second-guess integrity of the maintainers. That's no way to build long-term collaboration. |
@ashb @ambv You are right: my comment was rude and unhelpful. @JelleZijlstra I'm sorry for what I said. I deleted my last comment and hope you will accept my apology. Thank you for maintaining |
Describe the bug
I've read Issue #1031, but my terminal supports emojis, yet
black
is not printing them for some reason:To Reproduce
Simply run
pre-commit run --all
with the following configuration settings:pyproject.toml
Configuration.pre-commit-config.yaml
Expected behavior
Emoji's print
Environment
22.6.0
2.19.0
2.0.1
Windows 10 x64-bit
7.2.5
1.68.1
The text was updated successfully, but these errors were encountered: