SublimePerlTidy
SublimePerlTidy copied to clipboard
conflict using .perltidyrc and -pbp
Hi,
some minor issue, I stumbled upon the other day:
I only use .perltidyrc for my perltidy options, so I use this sublime text preferences:
{
"perltidy_cmd": [ "/usr/local/bin/perltidy" ],
"perltidy_options_take_precedence": false,
"perltidy_rc_paths": [ "/home/myuser/.perltidyrc" ],
}
which results in the following perltidy call:
PerlTidy: Running command: "/usr/local/bin/perltidy" "-pbp" "-pro=/home/myuser/.perltidyrc" "-ole=unix"
But, since perltidy first reads the custom config file from -pro and then applies the -pbp paramter, all my options from my config file will be overwritten with -pbp.
I workaround this by clearing out perltidy_options with
{
"perltidy_options": []
}
but maybe you could do this automatically, if perltidy_options_take_precedence is set to false?
Or at least, address this issue in the documentation.
Thank you and best regards, whuut
Addressing this in documentation would have saved me much time