Comments (9)
Why?
from jedi.
because libraries installed in a virtualenv should not write to hardcoded externals dirs like ~/.cache/jedi.
XDG-directories are a very good default, but they should still remain default.
and setting XDG_CACHE_HOME to some project-specific dir only creates other issues.
from jedi.
and because I want to avoid monkeypatching :)
from jedi.
But this does not explain when you would use this?
from jedi.
I never use jedi directly but subdependencies in many of my projects are.
The whole idea of virtualenvs is to provide a certain isolation from the rest of the system and the ability to run many versions in parallel. Writing to $HOME runs counter to that.
from jedi.
this does not explain when you would use this?
I'm not understanding your question.
I never want a virtualenv-installed python library to write to $HOME.
So when would I use this JEDI_CACHE_DIR? In every project that depends on jedi.
from jedi.
But how do you set this? Do you really set this variable by hand in every venv?
from jedi.
I set env-vars in a .env and pip install autoread-dotenv to automatically process the .env.
see https://autoread-dotenv.readthedocs.io/ ( I wrote this package)
examples:
- https://github.com/libranet/libranet-django/blob/main/.env.example
- https://github.com/libranet/libranet-jupyter/blob/main/.env.example
from jedi.
Sorry, this feels not important enough for me. I'm closing.
from jedi.
Related Issues (20)
- AssertionError completing a trailer with a space after dot HOT 1
- Test failures with Python 3.12 HOT 4
- Drop support for running on legacy Python? HOT 1
- Tab complete for class __call__ not working HOT 1
- I would like to contribute as translator HOT 2
- Jedi.names is not working HOT 3
- Missing docstring for pandas functions HOT 1
- Add support for `TypeAlias` HOT 4
- Addition of type annotation breaks tab completion in jedi>=0.19.0
- kwargs forwarding? HOT 1
- `LazyKnownValues` has no attribute `string_name`? HOT 4
- Enum name auto-completion without parentheses HOT 1
- Jedi searches the python interpreter in the wrong path. HOT 8
- Unhandled Exception with Unnamed Lambdas When Analyzing References Using dynaconf
- Add support for async pytest fixtures
- Is it possible to generate completion for `argparse.Namespace`? HOT 5
- TypedDict : Suggestion issues HOT 2
- Python stubs loaded from extensions folder even when using an explicit interpreter HOT 8
- Error when trying to detect environment HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jedi.