Closed unights closed 2 years ago
It looks like there is something locking this file C:\Users\username\AppData\Roaming\sourcery\sourcery.log.1
.
See this stackoverflow answer on PermissionError [WinError 32].
You may be able to fix this just by restarting your computer, or finding out which program is locking that file and closing it.
I've added a recovery mechanism for this in the next release too
Did you use sourcery with PyCharm and VSCode at the same time? I figured out that they both use the same logs, so they block each other.
I think it would be nice if logs had different file names depending on the used IDE.
Resolved with new release.
Issue description or question
Every time I type "from XXX import", such as "from time import", I get an error report from pycharm. The following is a detailed error report. And is there any way to fix it?
Sourcery Version
Sourcery v0.12.3
Code editor or IDE name and version
Pycharm v2022.1.3 #PY-221.5921.27
OS name and version
Windows 10