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

File "diagramScriptTemplate" couldn't be opened

Open mfclarke opened this issue 4 years ago • 1 comments

Hi, I'm trying to get this working for the first time on one of my swift projects, but it crashes when executed. Here's the output:

> .build/debug/SwiftDiagramGenerator "~/Development/iOS/MyProject/Classes"

Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “diagramScriptTemplate” couldn’t be opened because there is no such file." UserInfo={NSFilePath=~/Development/iOS/MyProject/Classes/Visualization/diagramScriptTemplate, NSUnderlyingError=0x7fe62a767e70 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}: file /Users/<me>/Development/iOS/swift-code-types-navigator/Sources/SwiftDiagramGenerator/main.swift, line 20
[1]    2032 illegal hardware instruction  .build/debug/SwiftDiagramGenerator "~/Development/iOS/MyProject/Classes

I am executing from the root of the swift-code-types-navigator project.

mfclarke avatar Feb 29 '20 08:02 mfclarke

The first parameter has to be a period (.). I'm not sure why or what it does, but that's what the documentation specifies.

dmitrym0 avatar Apr 01 '20 23:04 dmitrym0