Open Alexs9090909 opened 6 months ago
Hi, are you using an ARM cpu by any chance?
Mar 22, 2024 10:32:23 Alexs9090909 @.***>:
Hi ! I installed the formatter from pypi (pip3 install c-formatter-42), but when i run the command
c_formatter_42 format_test.c
i get the following error :
Writing to format_test.c Error: /opt/anaconda3/lib/python3.11/site-packages/c_formatter_42/data/clang-format-darwin: Bad CPU type in executable
Any idea how to fix that ? I'm on macOS 14.1.1
Thanks a lot for the good work !
— Reply to this email directly, view it on GitHub[https://github.com/dawnbeen/c_formatter_42/issues/75], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AGBTCVPZW73NRJFHFXZI7PTYZP3CJAVCNFSM6AAAAABFC7MDLWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDEMBXGMYDGNI]. You are receiving this because you are subscribed to this thread. [Tracking image][https://github.com/notifications/beacon/AGBTCVI2D235UWE2JGZFGUTYZP3CJA5CNFSM6AAAAABFC7MDLWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIGQHXZM.gif]
I have an M2 processor, so it looks like it's ARM yes
We do not have a clang-format executable for ARM but you could add it yourself in this directory: https://github.com/dawnbeen/c_formatter_42/tree/master/c_formatter_42/data
Mar 22, 2024 10:58:40 Alexs9090909 @.***>:
I have an M2 processor, so it looks like it's ARM yes
— Reply to this email directly, view it on GitHub[https://github.com/dawnbeen/c_formatter_42/issues/75#issuecomment-2014740027], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AGBTCVNBZ6TGXQHYAPL7MYLYZP6E5AVCNFSM6AAAAABFC7MDLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJUG42DAMBSG4]. You are receiving this because you commented. [Tracking image][https://github.com/notifications/beacon/AGBTCVK2POYFLCK24EZZISDYZP6E5A5CNFSM6AAAAABFC7MDLWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTYCZ7DW.gif]
Ok ! Thanks for your answers !
Hi ! I installed the formatter from pypi (pip3 install c-formatter-42), but when i run the command
c_formatter_42 < format_test.c
i get the following error :
Any idea how to fix that ? I'm on macOS 14.1.1
Thanks a lot for the good work !