Replies: 1 comment 2 replies
-
Hi @realh! Thanks for reaching out!
In case you need some additional resources, I wrote two blog posts, which might help you later: Debugging Swift in VS Code and Swift VS Code and you. But you can take one step at a time. If you explicitly don't want to use SPM, you have to use the more flexible Here you'd have multiple options:
Hopefully I could help you, get a good start! |
Beta Was this translation helpful? Give feedback.
-
I'm very new to Swift and Apple development, coming from a Linux background. I'm trying to write a simple game for a Mac, on a Mac, but I'd rather use VS Code than Xcode so I don't have to waste hours resigning the whole IDE after every update to make the vim plugin work.
So far I've only written 2 very short swift files for my project, but this seems to already be too complicated for sourcekit-lsp to deal with. I have a protocol in one file (TextureManager) and a class that implements it (AppleTextureManager) in another file. This causes an error in VS Code:
cannot find type 'TextureManager' in scope
(followed bysourcekitd
in a paler font). The two files are in separate xcode groups/folders, but even when I tried moving one of them so they're both in the same folder the error won't go away.What do I have to do to make this plugin work with multiple source files?
Beta Was this translation helpful? Give feedback.
All reactions