and when I refactor my project so everything that uses Libsql is in its own library, than only this one has SourceKit problems, not my other library with the rest of the code
So something seems to be in Libsql-swift from the Turso project that confuses SourceKit
And I would like to know what, so I can help to make this project just work
I would raise an issue against the SourceKit-LSP repository including your sample project that exhibits the problem. You can also run sourcekit-lsp diagnose in your terminal to generate a diagnostics bundle that can be included in the issue.
I actually found the reason. The project has a xcframework, with static libs, and swift build finds them, but SourceKit not.
I noticed that when I ported the build to Linux, and the IDE was working on Linux (except for the sPM plugin part, but that is a different topic)
So that brought me the rigth idea for a fix
In anycase, I documented the problem and ‘solution’ (workaround) here
not sure if I need / shall report that to anyone other than here, thought this is the place