maxsupermanhd / FactoCord-3.0

Factorio bidirectional Discord bridge bot for Linux servers with control functionality.
Apache License 2.0
14 stars 10 forks source link

JSON5 config comments #39

Closed ren-kun closed 4 years ago

ren-kun commented 4 years ago

BUG-FILTER-CHECKLIST. Anyone who opens up a bug report must fill these checkboxes (add an "x" to [ ] to be like [x]) to assume that he acknowledged that he red README.md and followed checklist below.

Describe the bug Error log output:

2020-07-15 10:59:51.431573045 +0000 UTC m=+0.000378783, github.com/maxsupermanhd/FactoCord-3.0/support.Critical @ /home/fac/Facto3/FactoCord-3.0/support/error.go:74 An error occurred when parsing config.json: invalid character ']' looking for beginning of value

To Reproduce running version 3.2.0 when launching the ./FactoCord-3.0 command outputs:

Note that json5 may have several bugs, such as comment before ] or } An error occurred when parsing config.json

Expected behavior It should launch, I don't see missin '[' or ']' https://jsonformatter.org/json5-validator doesn't report anything bad either

My instance information

maxsupermanhd commented 4 years ago

Note that json5 may have several bugs, such as comment before ]

Please remove commented line in admin ids array, this might cause error.

ren-kun commented 4 years ago

Sorry, sent the wrong file. I have admin_ids array populated

maxsupermanhd commented 4 years ago

Try to remove every comment in file, that should clear up...

maxsupermanhd commented 4 years ago

Any progress? (btw json5 config file is pretty buggy, this is not FactoCord issue)