Open samdeane opened 6 years ago
where are we on locating libsourcekitdInProc.so
on the user’s system? if all else fails we have to consider distributing it with the plugin, in which case we really need to share resources as the object file is 90 MB
Can't we assume a relative position from the Swift binary?
Something like
$(dirname `which swift`)/../lib/libsourcekitdInProc.so
(obviously swift still has to be in the path / locate-able in some way, but that's probably a given for anything that wants to use source kit)
that could make dynamic loading work
Use this approach to calling into SourceKit, rather than using sourcekitten.