doc: *standard-path*, *$NVIM_LOG_FILE*

This commit is contained in:
Justin M. Keyes
2017-06-06 15:02:51 +02:00
parent b4b09afabd
commit bc025ab117
2 changed files with 38 additions and 39 deletions

View File

@@ -6,7 +6,7 @@ Getting started
If you want to help but don't know where to start, here are some If you want to help but don't know where to start, here are some
low-risk/isolated tasks: low-risk/isolated tasks:
- Merge a [Vim patch]. - [Merge a Vim patch].
- Try a [complexity:low] issue. - Try a [complexity:low] issue.
- Fix bugs found by [clang scan-build](#clang-scan-build), - Fix bugs found by [clang scan-build](#clang-scan-build),
[coverity](#coverity), and [PVS](#pvs-studio). [coverity](#coverity), and [PVS](#pvs-studio).
@@ -23,18 +23,16 @@ Reporting problems
- Check the [**FAQ**][wiki-faq]. - Check the [**FAQ**][wiki-faq].
- Search [existing issues][github-issues] (including closed!) - Search [existing issues][github-issues] (including closed!)
- Update Neovim to the latest version to see if your problem persists. - Update Neovim to the latest version to see if your problem persists.
- If you're using a plugin manager, comment out your plugins, then add them back - Disable plugins incrementally, to narrow down the cause of the issue.
in one by one, to narrow down the cause of the issue. - When reporting a crash, include a stacktrace.
- Crash reports which include a stacktrace are 10x more valuable. - [Bisect][git-bisect] to the cause of a regression, if you are able. This is _extremely_ helpful.
- [Bisecting][git-bisect] to the cause of a regression often leads to an - Check `$NVIM_LOG_FILE`, if it exists.
immediate fix.
Pull requests ("PRs") Pull requests ("PRs")
--------------------- ---------------------
- To avoid duplicate work, create a `[WIP]` pull request as soon as possible. - To avoid duplicate work, create a `[WIP]` pull request as soon as possible.
- Avoid cosmetic changes to unrelated files in the same commit: noise makes - Avoid cosmetic changes to unrelated files in the same commit.
reviews take longer.
- Use a [feature branch][git-feature-branch] instead of the master branch. - Use a [feature branch][git-feature-branch] instead of the master branch.
- Use a **rebase workflow** for small PRs. - Use a **rebase workflow** for small PRs.
- After addressing review comments, it's fine to rebase and force-push. - After addressing review comments, it's fine to rebase and force-push.
@@ -87,10 +85,11 @@ the VCS/git logs more valuable.
### Automated builds (CI) ### Automated builds (CI)
Each pull request must pass the automated builds ([travis CI] and [quickbuild]). Each pull request must pass the automated builds on [travis CI], [quickbuild]
and [AppVeyor].
- CI builds are compiled with [`-Werror`][gcc-warnings], so if your PR - CI builds are compiled with [`-Werror`][gcc-warnings], so compiler warnings
introduces any compiler warnings, the build will fail. will fail the build.
- If any tests fail, the build will fail. - If any tests fail, the build will fail.
See [Building Neovim#running-tests][wiki-run-tests] to run tests locally. See [Building Neovim#running-tests][wiki-run-tests] to run tests locally.
Passing locally doesn't guarantee passing the CI build, because of the Passing locally doesn't guarantee passing the CI build, because of the
@@ -173,6 +172,7 @@ as context, use the `-W` argument as well.
[3174]: https://github.com/neovim/neovim/issues/3174 [3174]: https://github.com/neovim/neovim/issues/3174
[travis CI]: https://travis-ci.org/neovim/neovim [travis CI]: https://travis-ci.org/neovim/neovim
[quickbuild]: http://neovim-qb.szakmeister.net/dashboard [quickbuild]: http://neovim-qb.szakmeister.net/dashboard
[Vim patch]: https://github.com/neovim/neovim/wiki/Merging-patches-from-upstream-Vim [AppVeyor]: https://ci.appveyor.com/project/neovim/neovim
[Merge a Vim patch]: https://github.com/neovim/neovim/wiki/Merging-patches-from-upstream-Vim
[clang-scan]: https://neovim.io/doc/reports/clang/ [clang-scan]: https://neovim.io/doc/reports/clang/
[complexity:low]: https://github.com/neovim/neovim/issues?q=is%3Aopen+is%3Aissue+label%3Acomplexity%3Alow [complexity:low]: https://github.com/neovim/neovim/issues?q=is%3Aopen+is%3Aissue+label%3Acomplexity%3Alow

View File

@@ -1366,39 +1366,38 @@ file when reading and include:
complete MessagePack object. complete MessagePack object.
============================================================================== ==============================================================================
9. Base Directories *base-directories* *xdg* 9. Standard Paths
Nvim conforms to the XDG Base Directory Specification for application Nvim stores configuration and data in standard locations. Plugins are strongly
configuration and data file locations. This just means Nvim looks for some encouraged to follow this pattern also.
optional settings and uses them if they exist, otherwise defaults are chosen.
*base-directories* *xdg*
The "base" (root) directories conform to the XDG Base Directory Specification.
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
The $XDG_CONFIG_HOME and $XDG_DATA_HOME environment variables are used if they
exist, otherwise default values (listed below) are used.
CONFIGURATION DIRECTORY *$XDG_CONFIG_HOME* Note: Throughout the user manual these defaults are used as placeholders, e.g.
"~/.config" is understood to mean "$XDG_CONFIG_HOME or ~/.config".
Base directory default: CONFIG DIRECTORY *$XDG_CONFIG_HOME*
Unix: ~/.config Base Nvim ~
Windows: ~/AppData/Local Unix: ~/.config ~/.config/nvim
Windows: ~/AppData/Local ~/AppData/Local/nvim
Nvim directory: DATA DIRECTORY *$XDG_DATA_HOME*
Unix: ~/.config/nvim/ Base Nvim ~
Windows: ~/AppData/Local/nvim/ Unix: ~/.local/share ~/.local/share/nvim
Windows: ~/AppData/Local ~/AppData/Local/nvim-data
DATA DIRECTORY *$XDG_DATA_HOME* STANDARD PATHS *standard-path*
Base directory default: *$NVIM_LOG_FILE*
Unix: ~/.local/share Besides 'debug' and 'verbose', Nvim has a low-level "log of last resort" that
Windows: ~/AppData/Local is written directly to the filesystem. This log may also be used by plugins or
RPC clients for debugging. $NVIM_LOG_FILE contains the log file path: >
Nvim directory: :echo $NVIM_LOG_FILE
Unix: ~/.local/share/nvim/ Usually the file is ~/.local/share/nvim/log unless that path is inaccessible
Windows: ~/AppData/Local/nvim-data/ or if $NVIM_LOG_FILE was set before |startup|.
Note on Windows the configuration and data directory defaults are the same
(for lack of an alternative), but the sub-directory for data is named
"nvim-data" to separate it from the configuration sub-directory "nvim".
Throughout other sections of the user manual, the defaults are used as generic
placeholders, e.g. where "~/.config" is mentioned it should be understood to
mean "$XDG_CONFIG_HOME or ~/.config".
vim:tw=78:ts=8:ft=help:norl: vim:tw=78:ts=8:ft=help:norl: