Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Loading...