yonaskolb / Mint

A package manager that installs and runs executable Swift packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run swift-format@0.50700.0 due to missing lib_InternalSwiftSyntaxParser.dylib

shimastripe opened this issue Β· comments

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

Same here, maybe related to #120.

I checked this problem was resolved in mint 0.17.2.
Thanks your quick PR! @fummicc1