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
I got this error when running fit-clang-format on my repo:
=> Testing base styles to see which seems to fit best.
Invalid value for -style
Traceback (most recent call last):
File "/home/ann/fit-clang-format/fit-clang-format.py", line 447, in <module>
], strictly_better=False)
File "/home/ann/fit-clang-format/fit-clang-format.py", line 200, in search
score = cache.get_score(style)
File "/home/ann/fit-clang-format/fit-clang-format.py", line 185, in get_score
h = self.get_hash_for_style(style)
File "/home/ann/fit-clang-format/fit-clang-format.py", line 182, in get_hash_for_style
return self.hasher.get_canonical_string(style=style)
File "/home/ann/fit-clang-format/fit-clang-format.py", line 163, in get_canonical_string
base_style = self.get_base_style(style.base)
File "/home/ann/fit-clang-format/fit-clang-format.py", line 156, in get_base_style
util.run([context['clang-format'], '-dump-config', '-style', yaml.dump({'BasedOnStyle':base})])
File "/home/ann/fit-clang-format/util.py", line 17, in run
raise ValueError("git command returned code %s" % p.returncode)
ValueError: git command returned code 1
I edited line 156, removed -stlye argument and the error is now gone.
The text was updated successfully, but these errors were encountered:
I got this error when running fit-clang-format on my repo:
I edited line 156, removed -stlye argument and the error is now gone.
The text was updated successfully, but these errors were encountered: