OCamlPro / ocp-indent

Indentation tool for OCaml, to be used from editors like Emacs and Vim.
http://www.typerex.org/ocp-indent.html
Other
200 stars 63 forks source link

~/.ocp/ is not read anymore #305

Closed Maelan closed 4 years ago

Maelan commented 4 years ago

Observed with ocp-indent version 1.8.0 (from opam with OCaml 4.08.1).

The man page states that the configuration file will be lookup up at the following locations, in order:

But apparently, even when $XDG_CONFIG_HOME/ocp (or when the variable is unset, ~/.config/ocp) does not exist, the two options that come after are not read at all. This means that the legacy location does not work anymore, nor does overriding with an environment variable.

The expected behavior would be to check that a location exists and, if it doesn’t, try latter locations.

This regression is presumably a consequence of the patch #296 which added support for the XDG specification.

Maelan commented 4 years ago

Nevermind, I just saw that this was fixed upstream already (#304).