-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 logging error font-patcher #1287
Conversation
Thanks for finding and fixing this! There are two more affected calls in the code. To prevent that I added an additional commit that simplifies the whole logger business and allows the programmer to use
Yes. That is often skipped due to laziness. P.S. I guess you should use |
[why] Usually the variable `logger` holds the logger object and all logging calls got through that. But because we use the font filename as loggername that logger object can only be set up after the arguments have been parsed. If some messages are to be logged before the call needs to go to the root logger called as `logging` class. This means one needs to take `logger` or `logging` based on the time when someting is to be logged. That can be confusing and is easily wrong, especially if code is shifted. [how] Always use the `logger` variable and just let that point to the root logger until we set up a concrete logger. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
Add skip-ci, force push |
I use Debian sid, here is the script file I use if it helps. |
How did you obtain the https://github.com/ryanoasis/nerd-fonts#font-patcher Edit:
|
I believe you dont. Just try to run the patcher, it should tell you missing dependencies. |
After installing |
Same error, meaning FontnameParser missing? How did you obtain the font-patcher? |
I figured out what was wrong, I didn't need |
As written in the readme, reccommended is using the FontPatcher.zip or the docker image, and not a (sparse) checked out repo. But now it does not matter anymore ;) 👍 |
It's not very well documented.
The options
Option Option |
Thanks for the detailed explanation, I ended up going with option |
Description
Python complains about error on line 1881 in font-patcher.
Maybe you guys should take the time to check if the function
global logger
is doing exactly the right thing.Requirements / Checklist
What does this Pull Request (PR) do?
Fix typo in font-patcher.
How should this be manually tested?
I'm not sure, maybe this feature isn't finished yet?
Any background context you can provide?
Python complains about error when I manually patch fonts.
The shell script I use is:
When I do not set the parameter
--makegroups 0
, it reports an error.