swift-auto-diagram icon indicating copy to clipboard operation
swift-auto-diagram copied to clipboard

.orig files cause trouble

Open buffstop opened this issue 6 years ago • 3 comments

If you have *.swift.orig files in a directory, I get issue #13 even parsing 4 files only.

buffstop avatar Aug 21 '18 17:08 buffstop

Thanks for the report. I investigated what happens when files with an extension .swfit.orig are present in a directory. Turns out they are ignored when parsing. I believe the issue will be the same if you remove those files from the directory. If that's what happens, you can close this issue.

yoshimkd avatar Aug 22 '18 13:08 yoshimkd

No. A folder with 5 .swift files and 1 ore more .swift.orig files shows the behaviour described in issue #13 (loading indicator forever). Removing the .orig files cures the issue.

buffstop avatar Aug 22 '18 16:08 buffstop

Unfortunately, I can't reproduce your issue. This is what I'm trying:

the files in a directory: files-in-a-directory

the files' contents: file-contents

the result diagram: result-diagram

It appears that the file with a .swift.orig is getting ignored as I previously stated. Let me know how I can reproduce your issue.

Also, I'm a little confused with your previous comment where you say:

To check if non-swift files or weird directory names cause the issue I have copied all .swift files of a mid size project to one directory (346 files). The problem persisted.

Judging by this statements, removing the non .swift files didn't fix that problem for you but in this comment a similar thing fixed that problem.

Can you please let us know in which cases the .swift.orig files cause problems?

yoshimkd avatar Aug 22 '18 21:08 yoshimkd