panicinc / icarus

Swift, C, C++, and Objective-C Support for Nova
MIT License
69 stars 5 forks source link

Generated Source Code Not Recognized (Swift OpenAPI Generator ) #18

Closed ezfe closed 2 months ago

ezfe commented 3 months ago

I'm using the Swift OpenAPI generator and I've followed the basic tutorial they present (https://swiftpackageindex.com/apple/swift-openapi-generator/1.2.1/tutorials/swift-openapi-generator) and it builds successfully, but in Nova it shows a bunch of errors - all claiming the auto-generated types don't exist.

Please advise

Screenshot 2024-04-13 at 17 37 12@2x

SourceCode.zip

edit: Note, the source code I attached is missing a dependency declaration (.target(name: "ThemeParksSchema")) however resolving this error does not resolve the reported problem.

logancollins commented 2 months ago

Unfortunately, this doesn't appear to be errors coming from Nova or Icarus themselves. It's coming from SourceKit-LSP (the language server which Icarus wraps, which is part of the Swift toolchain) and Swift Package Manager. If I open your example project, I see the same errors.