charge-lnd icon indicating copy to clipboard operation
charge-lnd copied to clipboard

--check does not check syntax errors

Open BhaagBoseDK opened this issue 4 years ago • 3 comments

--check does not check syntax error.

for [new section] node.id = something

I had a - instead of _ mistake in max.chan-ratio (instead of max.chan_ratio

Also I had spelling mistake

strategy = proportional

These were not caught during --check and instead they were caught in --dry-run

BhaagBoseDK avatar Aug 07 '21 23:08 BhaagBoseDK

You are correct, many parts of the config file are evaluated late, after --check does its thing. --check basically only does a 'does this look like an INI style file?'

accumulator avatar Aug 08 '21 10:08 accumulator

may be worth checking syntax as well as part of --check.

BhaagBoseDK avatar Aug 09 '21 11:08 BhaagBoseDK

You are correct again, that's why I kept this bug report open :)

accumulator avatar Aug 10 '21 07:08 accumulator