Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax check config files #62

Open
robojumper opened this issue Aug 28, 2021 · 2 comments
Open

Syntax check config files #62

robojumper opened this issue Aug 28, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@robojumper
Copy link
Member

There are a bunch of pitfalls regarding config files that people seem to fall into very often, such as:

  • Section headers with trailing whitespace [...] (causes it to be interpreted as no section header at all)
  • Multiline entries with trailing whitespace , \\ (causing the line to be ended early)
  • Illegal commented lines within multiline comments

Catching these at build time would help.

@robojumper robojumper added the enhancement New feature or request label Aug 28, 2021
@Iridar
Copy link

Iridar commented Aug 28, 2021

I've also had a case where having a = on a config line with nothing else beside that single character would prevent the mod from building without a meaningful message. It was effectively an accidental typo, so was pretty hard to catch.

@Xymanek
Copy link
Member

Xymanek commented Sep 3, 2021

I've also had a case where having a = on a config line with nothing else beside that single character would prevent the mod from building without a meaningful message. It was effectively an accidental typo, so was pretty hard to catch.

I guess this was in XComEngine.ini? Can you also provide a reproduction example (e.g. in an empty mod)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants