дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 10:07:11 +02:00
The fixed probe path could delete existing files, follow symlinks, and race between launches. Use an exclusively created temporary file instead. Limit migration instructions to rebuildable local entries so user data stays in place. Follow-up to #2373
28 рядки
1.3 KiB
Markdown
28 рядки
1.3 KiB
Markdown
# Data directories
|
|
|
|
OpenIDEA keeps its rebuildable data, such as downloaded tools, language servers,
|
|
JDKs and index caches, in the operating system's local data directory:
|
|
|
|
- **Windows:** `%LOCALAPPDATA%\ai.l0ng.openidea`
|
|
- **macOS:** `~/Library/Application Support/ai.l0ng.openidea`
|
|
- **Linux:** `~/.local/share/ai.l0ng.openidea`
|
|
|
|
To keep this data elsewhere, for example on another drive, set
|
|
`OPENIDEA_LOCAL_DATA_DIR` to an absolute path before starting OpenIDEA. The IDE
|
|
then uses `<OPENIDEA_LOCAL_DATA_DIR>/ai.l0ng.openidea` and creates it when
|
|
missing. If the path is relative or cannot be written, OpenIDEA shows an error
|
|
and exits instead of falling back to the default location.
|
|
|
|
```bat
|
|
setx OPENIDEA_LOCAL_DATA_DIR "E:\OpenIDEA"
|
|
```
|
|
|
|
Settings, plugins, scratches and other user data stay in the operating system's
|
|
data and configuration directories. Logs stay in their usual location, so they
|
|
are still written when the variable is wrong. Existing data is not moved: quit
|
|
OpenIDEA and move only `tools/`, `language-server-runtimes/`, `index/`, `cache/`,
|
|
`lsp/`, `notebook-runtime/`, `server/`, `logs/`, `agents/tools/`,
|
|
`agents/registry.json` and top-level `java-usages-*.jar` / `java-usages-*.tmp` to
|
|
the new location, preserving their relative paths, or let the IDE download and
|
|
rebuild them. Leave everything else in place.
|