FS#44368 - [clang] git-clang-format: SyntaxError: invalid syntax
Attached to Project:
Arch Linux
Opened by Javier Tiá (jetm) - Friday, 27 March 2015, 03:51 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 02 April 2015, 16:11 GMT
Opened by Javier Tiá (jetm) - Friday, 27 March 2015, 03:51 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 02 April 2015, 16:11 GMT
|
Details
Description:
This is the way to reproduce the error: $ git-clang-format File "/usr/bin/git-clang-format", line 130 print 'Ignoring changes in the following files (wrong extension):' ^ SyntaxError: invalid syntax $ git-clang-format belongs to clang package. $ pacman -Qi clang Name : clang Version : 3.6.0-3 git-clang-format is a Python script and it requires Python v2. If the first line of script is changed to "#!/usr/bin/env python2", instead of "#!/usr/bin/env python", git-clang-format works fine. |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Thursday, 02 April 2015, 16:11 GMT
Reason for closing: Fixed
Additional comments about closing: clang 3.6.0-4
Thursday, 02 April 2015, 16:11 GMT
Reason for closing: Fixed
Additional comments about closing: clang 3.6.0-4