From 97fe7b669f27b2d63d401a9bfcc334237133d889 Mon Sep 17 00:00:00 2001 From: MikhailArkhipov Date: Tue, 27 Aug 2019 09:54:38 -0700 Subject: [PATCH 1/2] Provide information on cache location --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 9c960427e..abc8d1c17 100644 --- a/README.md +++ b/README.md @@ -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" From f83277be6c285da33834c14d8cadff948bbd36c9 Mon Sep 17 00:00:00 2001 From: MikhailArkhipov Date: Tue, 27 Aug 2019 10:12:03 -0700 Subject: [PATCH 2/2] Formatting --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index abc8d1c17..00433439a 100644 --- a/README.md +++ b/README.md @@ -84,12 +84,12 @@ It may also produce database files holding module analysis for faster retrieval **Windows** -"%LOCALAPPDATA%\Microsoft\Python Language Server" (which is Environment.SpecialFolder.LocalApplicationData). Typically `C:\Users\\%USER_NAME%\AppData\Local\Microsoft\Python Language Server +`"%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" +`"$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" +`"$HOME/Library/Caches/Microsoft/Python Language Server"`