-
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
Writing failed: [Errno 2] No such file or directory: '/home/user/.cache/black/21.11b1/tmpb3yqz52h' #2681
Comments
|
@michaelaye Hm I believe I think this is resolved with the mentioned commit. |
Well #2702 was closed with the comment that the issue would not be picked up for a while, so it’s not resolved, it seems. |
Ah you are right, I misread it, seems like PR is not resolved :-( During the installation of sudo chown $(logname) -R $HOME/.cache/black
black_version=$(pip freeze | grep black | sed 's|black==||g')
if [ "$black_version" != "" ]; then
rm -rf $HOME/.cache/black/*
mkdir -p $HOME/.cache/black/$black_version
fi |
When I update
black
, or have a clean install I keep seeing following message:I always have to do:
mkdir /home/user/.cache/black/21.11b1
, where could it be done automatically by theblack
?How can I prevent this error from showing up? Would it be possible to for black to force create
/home/user/.cache/black/21.*
folders after each upgrade?The text was updated successfully, but these errors were encountered: