Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Stray comma in Cat2CatImageName enum #31

Open
brockboland opened this issue Nov 13, 2015 · 2 comments
Open

Stray comma in Cat2CatImageName enum #31

brockboland opened this issue Nov 13, 2015 · 2 comments
Assignees

Comments

@brockboland
Copy link
Contributor

I'm not sure yet what's causing this, but I'm getting an extra, stray comma below "Contents.json" in the Cat2CatImageName enum, which causes a compile error.

enum Cat2CatImageName: String {
    case
    // IMAGES
    // Contents.json
,
    // Tabs
    AccountTab = "AccountTab",
    DashboardTab = "DashboardTab",
    NotificationsTab = "NotificationsTab"    // Contents.json

}

My Images.xcassets is pretty basic:

screen shot 2015-11-13 at 4 13 59 pm

@brockboland
Copy link
Contributor Author

Update: it's Contents.json that's causing problems. I had one at the top level inside Images.xcassets, which is not present in the Swift tests in this repo. Things seem to work fine without it, so I just removed that file.

I don't have time to dig into this further at the moment, but I'm guessing that VICatalogWalker should be ignoring Contents.json. The sample iOS Swift project does not include Contents.json comments like the output I included in the original issue above, but I found that if I add another folder to Icons.xcassets in that project and build, the Cat2CatImageName enum becomes littered with references to the JSON.

@designatednerd
Copy link
Contributor

Ahhhhh, yeah that'd do it. I'll try to take a look at this.

@designatednerd designatednerd self-assigned this Jan 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants