swift-code-types-navigator icon indicating copy to clipboard operation
swift-code-types-navigator copied to clipboard

About Half of my classes show「Can’t parse file path:...」

Open gthr2000 opened this issue 6 years ago • 1 comments

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; } }

gthr2000 avatar Apr 02 '18 07:04 gthr2000

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

yoshimkd avatar Apr 10 '18 09:04 yoshimkd