RakuyoKit / JSONPreview

🎨 A view that previews JSON in highlighted form, it also provides the ability to format and collapse nodes.
MIT License
65 stars 13 forks source link

SwiftLint dependency #25

Open MarekSlaninka opened 1 week ago

MarekSlaninka commented 1 week ago

Hello, I have a problem after updating SPM packages in the project, and SwiftLint automaicaly updated to 0.55.1

And I get this error: product 'SwiftLintPlugin' required by package 'jsonpreview' target 'JSONPreview' not found in package 'SwiftLint'.

Coul You please provide some resolution for this issue? Thanks

rakuyoMo commented 1 week ago

Hello! 👋

SwiftLint 0.55.0 splits the SwiftLintPlugin plugin into SwiftLintBuildToolPlugin and SwiftLintCommandPlugin. For details, see: https://github.com/realm/SwiftLint/commit/e4e3545b712460509db6bc159838679f7b11b7cc

Currently, the latest version of JSONPreview (2.3.1) uses version 0.54.0 and has not been upgraded to the latest SwiftLint version.

So if you want to solve this problem, it is recommended to fix the SwiftLint version to 0.54.0 in the Package.swift file of your project.

rakuyoMo commented 1 week ago

RakuyoKit contains a general formatting plugin RakuyoKit/swift, and JSONPreview should migrate SwiftLint dependencies to this plugin. This plugin depends on and adapts to the latest SwiftLint version.

If you need SwiftLint version 0.55.0 or higher, please let me know and tell me the latest adaptation time (not as soon as possible), and I will consider updating JSONPreview.

MarekSlaninka commented 1 week ago

Hello, thanks for quick reply. I dont need exact version of SwiftLint, but i cannot update packages because it will update SwifLint too. I will try to lock it using xcodeproj SPM manager.