You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ meson format meson.buildTraceback (most recent call last): File ".../meson/mesonbuild/mesonmain.py", line 188, in run return options.run_func(options) ^^^^^^^^^^^^^^^^^^^^^^^^^ File ".../meson/mesonbuild/mformat.py", line 937, in run formatted = formatter.format(code, src_file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File ".../meson/mesonbuild/mformat.py", line 861, in format ast.accept(ArgumentFormatter(self.current_config)) File ".../meson/mesonbuild/mparser.py", line 251, in accept func(self) File ".../meson/mesonbuild/ast/visitor.py", line 216, in visit_CodeBlockNode i.accept(self) File ".../meson/mesonbuild/mparser.py", line 251, in accept func(self) File ".../meson/mesonbuild/mformat.py", line 591, in visit_FunctionNode node.args.accept(self) File ".../meson/mesonbuild/mparser.py", line 251, in accept func(self) File ".../meson/mesonbuild/mformat.py", line 610, in visit_ArgumentNode super().visit_ArgumentNode(node) File ".../meson/mesonbuild/ast/visitor.py", line 317, in visit_ArgumentNode val.accept(self) File ".../meson/mesonbuild/mparser.py", line 251, in accept func(self) File ".../meson/mesonbuild/mformat.py", line 668, in visit_ParenthesizedNode node.inner.accept(self) File ".../meson/mesonbuild/mparser.py", line 251, in accept func(self) File ".../meson/mesonbuild/ast/visitor.py", line 200, in visit_AndNode self.visit_BinaryOperatorNode(node) File ".../meson/mesonbuild/ast/visitor.py", line 179, in visit_BinaryOperatorNode node.right.accept(self) File ".../meson/mesonbuild/mparser.py", line 251, in accept func(self) File ".../meson/mesonbuild/mformat.py", line 575, in visit_MethodNode node.source_object.accept(self) File ".../meson/mesonbuild/mparser.py", line 251, in accept func(self) File ".../meson/mesonbuild/mformat.py", line 580, in visit_MethodNode node.args.accept(self) File ".../meson/mesonbuild/mparser.py", line 251, in accept func(self) File ".../meson/mesonbuild/mformat.py", line 649, in visit_ArgumentNode self.add_nl_after(comma, self.level) File ".../meson/mesonbuild/mformat.py", line 545, in add_nl_after if not node.whitespaces.value or node.whitespaces.value == ' ': ^^^^^^^^^^^^^^^^^^^^^^AttributeError: 'NoneType' object has no attribute 'value'ERROR: Unhandled python exception This is a Meson bug and should be reported!
Expected behavior meson format should format the code without raising an unhandled exception.
Describe the bug
meson format
crashes when attempting to format one of ourmeson.build
files.To Reproduce
Expected behavior
meson format
should format the code without raising an unhandled exception.system parameters
The text was updated successfully, but these errors were encountered: