swift-code-types-navigator
swift-code-types-navigator copied to clipboard
About Half of my classes show「Can’t parse file path:...」
After run .build/debug/SwiftDiagramGenerator . ….., some of my swift class will show「Can’t parse file path:XXXXX」and the diagram is not created.
Here is my NG sample class:
class TestUML: NSObject { @IBOutlet weak private var button: UIButton! var testVar: String?; func function1() -> Bool { return true; } }
BUT、if I remove the third line and excute the command line again、diagram will be created without error. // OK Sample class class TestUML: NSObject { @IBOutlet weak private var button: UIButton!
func function1() -> Bool { return true; } }
Hello @gthr2000,
Thank you very much for your interest in the project. I analyzed the issue you had (thank you for the concise reproduction steps). The issue was in the swift-ast library we depend on. Fortunately, a newer version of the library is available and I just updated swift-code-types-navigator to use the newer version. The issue you had won't be happening anymore after you pull the new changes. Please let me know if everything's working properly now.
Please bear in mind that swift-code-types-navigator is an experimental project with only a limited set of supported functionality so you can always expect things not working :) If you like the idea, there's a lot of room for contribution, if you're interested.
Best Regards, Jovan