Skip to content
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

Unable to create cache directory #4964

Closed
GergelyKalmar opened this issue Sep 4, 2021 · 1 comment
Closed

Unable to create cache directory #4964

GergelyKalmar opened this issue Sep 4, 2021 · 1 comment
Labels
Bug 🪲 Duplicate 🐫 Duplicate of an already existing issue
Milestone

Comments

@GergelyKalmar
Copy link
Contributor

GergelyKalmar commented Sep 4, 2021

Bug description

I have a test that runs a pytest session using Pytester and executes pylint through the pytest-pylint plugin. Under these circumstances I'm getting the following error:

tests/pytest_project/test_core.py::test_run_errors Unable to create directory /tmp/pytest-of-user/pytest-1/test_run_errors0/.cache/pylint
Unable to create file /tmp/pytest-of-user/pytest-1/test_run_errors0/.cache/pylint/test_run_errors1.stats: [Errno 2] No such file or directory: '/tmp/pytest-of-user/pytest-1/test_run_errors0/.cache/pylint/test_run_errors1.stats'

If I create the .cache folder manually it succeeds. However, it would be great if pylint could create the necessary parent folders are well when trying to create the pylint folder inside XDG_CACHE_HOME.

Command used

Pylint is invoked indirectly through pytest-pylint.

Pylint output

See error above.

Expected behavior

I would expect that the Pylint cache folder creation succeeds even if XDG_CACHE_HOME does not exist.

Pylint version

pylint 2.10.2
@GergelyKalmar GergelyKalmar added Bug 🪲 Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Sep 4, 2021
@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.11.0 milestone Sep 5, 2021
@Pierre-Sassoulas Pierre-Sassoulas added Duplicate 🐫 Duplicate of an already existing issue and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Sep 5, 2021
@Pierre-Sassoulas
Copy link
Member

Duplicate of #4900

@Pierre-Sassoulas Pierre-Sassoulas marked this as a duplicate of #4900 Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 Duplicate 🐫 Duplicate of an already existing issue
Projects
None yet
Development

No branches or pull requests

2 participants