Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Provide information on cache location #1487

Merged
merged 2 commits into from
Aug 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,20 @@ An example usage:
```python
from python import language_server # noqa will suppress the linting message for this line
```

## Cache location

During analysis language server produces Python code from compiled modules and builtins which is similar to Python module stubs.
It may also produce database files holding module analysis for faster retrieval later. Cache location is at

**Windows**

`"%LOCALAPPDATA%\Microsoft\Python Language Server"` (which is `Environment.SpecialFolder.LocalApplicationData`). Typically `"C:\Users\\%USER_NAME%\AppData\Local\Microsoft\Python Language Server"`

**Linux**

`"$XDG_CACHE_HOME/Microsoft/Python Language Server"`, or if `XDG_CACHE_HOME` is not set, `"$HOME/.cache/Microsoft/Python Language Server"`

**macOS**

`"$HOME/Library/Caches/Microsoft/Python Language Server"`