[QGIS-Developer] Pre-commit error: astyle not found

Matthias Kuhn matthias at opengis.ch
Thu Jul 13 03:32:14 PDT 2017


On 07/13/2017 12:27 PM, DelazJ wrote:
> Hi Nyall,
> 
> Sorry for that maybe noob question but you mean setting in the
> Cmakelists file at the root of the repo:
> SET (WITH_ASTYLE TRUE CACHE BOOL "If you want to contribute you should
> reindent with scripts/prepare-commit.sh (using 'our' style)").
> Am I right? Doing that doesn't change anything; still get the "astyle.sh
> not found" error message. Anything else I should do?

Yes, that's the option.

You need to build again after enabling it, but after looking at your
error message, this mentions a shell script (.sh) which I don't think is
compatible with Windows.

Matthias


More information about the QGIS-Developer mailing list