compiledb icon indicating copy to clipboard operation
compiledb copied to clipboard

compiledb fails with localized make output

Open RPCMoritz opened this issue 4 years ago • 2 comments

The parsing logic appears to be dependent on english-language output. (e.g. "Entering directory ..."). This is not given on localized installations, therefore the parsing will fail, as files are not being correctly found.

To mitigate this, the compiledb make-wrapper should prepend "LC_ALL=C.UTF-8" to the make call, while the documentation should suggest using a supported locale, and a warning should be printed, when compiledb runs in an unsupported locale in --parse/std-in mode.

RPCMoritz avatar Oct 19 '19 15:10 RPCMoritz

We had the same issue, and it took us quite a while to figure out why it was working on our local machines, but not on our servers that have the language set to German.

It would be really helpful to prominently document this somewhere (or even fix it, but that probably requires more work).

michael-schwarz avatar Feb 22 '22 14:02 michael-schwarz

As you probably noticed, nowadays I'm not actively maintaining this (due to lack of time). But please feel free to send PRs and I'll review them as the time permits. thanks

nickdiego avatar Feb 22 '22 20:02 nickdiego