elegantchaos / atom-ide-swift

Swift support for Atom IDE.
18 stars 3 forks source link

call into SourceKit directly #9

Open samdeane opened 6 years ago

samdeane commented 6 years ago

Use this approach to calling into SourceKit, rather than using sourcekitten.

tayloraswift commented 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

samdeane commented 6 years ago

Can't we assume a relative position from the Swift binary?

Something like

$(dirname `which swift`)/../lib/libsourcekitdInProc.so
samdeane commented 6 years ago

(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)

tayloraswift commented 6 years ago

that could make dynamic loading work