Sourcekit-lsp multiple files in target



I have multiple files in one target folder. LSP (suggestions, analysis, other modules etc.) works great in every single file. However, it does not recognize any piece of code (types, methods, etc.) declared in other files within the target.
Code does compile and run, only the LSP doesn’t think it should.

My friends and I work on a small linux-macos portable project. We have set up our environments using this article with some changes (swift 5.1, slightly different folders, swift path exporting in .bashrc). We’re all using Ubuntu MATE 18.04. It works great, however, I was not able to solve the problem described above so far.

I would be grateful for any help or advice,

1 Like