Can't run swift-format@0.50700.0 due to missing lib_InternalSwiftSyntaxParser.dylib
shimastripe opened this issue Β· comments
Go Takagi commented
Recent apple/swift-format@@0.50700.0 need lib_InternalSwiftSyntaxParser.dylib. apple/swift-format#381 (comment)
However mint seems to be copied only swift-format single binary through build process artifacts.
Manually I added lib_InternalSwiftSyntaxParser.dylib into ~/.mint/packages/github.com_apple_swift-format/build/0.50700.0
, then it worked!
How to solve this?
$ mint run swift-format dump-configuration
π± Cloning swift-format 0.50700.0
π± Resolving package
π± Building package
π± Installed swift-format 0.50700.0
π± Running swift-format 0.50700.0...
dyld[19728]: Library not loaded: '@rpath/lib_InternalSwiftSyntaxParser.dylib'
Referenced from: '/Users/shimastripe/.mint/packages/github.com_apple_swift-format/build/0.50700.0/swift-format'
Reason: tried: '/Users/shimastripe/.mint/packages/github.com_apple_swift-format/build/0.50700.0/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/Users/shimastripe/.mint/packages/github.com_apple_swift-format/build/0.50700.0/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/usr/local/lib/lib_InternalSwiftSyntaxParser.dylib' (no such file), '/usr/lib/lib_InternalSwiftSyntaxParser.dylib' (no such file)
[1] 19728 abort mint run swift-format dump-configuration
Kenta Kubo commented
Same here, maybe related to #120.