Sublime-CoolFormat
Sublime-CoolFormat copied to clipboard
Does not work on Apple Silicon
In the console, the following error appears:
dlopen(/Users/Alex/Library/Application Support/Sublime Text 3/Packages/CoolFormat/CoolFormatLib/cf_osx_arm64/libCoolFormatLib.dylib, 0x0006): tried: '/Users/Alex/Library/Application Support/Sublime Text 3/Packages/CoolFormat/CoolFormatLib/cf_osx_arm64/libCoolFormatLib.dylib' (no such file), '/usr/lib/libCoolFormatLib.dylib' (no such file)
However, only an x86 slice is available:
ls -l /Users/Alex/Library/Application\ Support/Sublime\ Text\ 3/Packages/CoolFormat/CoolFormatLib 12:19
total 8
-rw-r--r-- 1 Alex staff 550 Dec 12 12:18 CoolFormatConfig.cfconfig
drwxr-xr-x 3 Alex staff 96 Dec 12 12:18 cf_linux_x32
drwxr-xr-x 3 Alex staff 96 Dec 12 12:18 cf_linux_x64
drwxr-xr-x 3 Alex staff 96 Dec 12 12:18 cf_osx_x64
drwxr-xr-x 3 Alex staff 96 Dec 12 12:18 cf_windows_x32
drwxr-xr-x 3 Alex staff 96 Dec 12 12:18 cf_windows_x64
Attempting to symlink the x86 dylib is equally futile:
dlopen(/Users/Alex/Library/Application Support/Sublime Text 3/Packages/CoolFormat/CoolFormatLib/cf_osx_arm64/libCoolFormatLib.dylib, 0x0006): tried: '/Users/Alex/Library/Application Support/Sublime Text 3/Packages/CoolFormat/CoolFormatLib/cf_osx_arm64/libCoolFormatLib.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libCoolFormatLib.dylib' (no such file)
Hello,
I switched to an ARM64 Mac, so I have the same issue. I cloned the repository and added support for macOS ARM64. I posted for a new plugin (CoolFormat (OSX-ARM64 Support)). Meanwhile, you can download and paste the necessary files from my clone of the repository.
https://github.com/edokan/Sublime-CoolFormat/tree/master/CoolFormatLib