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

Preserve whitespace option doesn't handle blank lines and IfModule #103

Open
uriariel opened this issue Apr 8, 2020 · 0 comments
Open

Comments

@uriariel
Copy link

uriariel commented Apr 8, 2020

Traceback (most recent call last): File "/usr/local/bin/apacheconfigtool", line 10, in <module> sys.exit(main()) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/apacheconfigtool.py", line 222, in main config = loader.load(config_file) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/loader.py", line 399, in load return self.loads(f.read(), source=filepath) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/loader.py", line 353, in loads self._ast_cache[source] = self._walkast(ast) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/loader.py", line 321, in _walkast return handler(ast[1:]) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/loader.py", line 44, in g_config items = self._walkast(subtree) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/loader.py", line 321, in _walkast return handler(ast[1:]) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/loader.py", line 95, in g_contents items = self._walkast(subtree) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/loader.py", line 321, in _walkast return handler(ast[1:]) File "/usr/local/lib/python3.7/dist-packages/apacheconfig/loader.py", line 69, in g_block name, _, value = tag ValueError: not enough values to unpack (expected 3, got 2)

and even when I'm getting rid of blank lines, the parser with this option produces other errors.

Failed to parse Apache config conf/httpd.conf_b: Unsupported AST node type IfModule

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

No branches or pull requests

1 participant