-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work, menu entry doesn't show up #3
Comments
Did Xcode ask you to load the plugin? |
I'm having the same problem as @futuretap... I've tried stepping thru the Crayons plugin, and the problem seems to be where the paletteNamesForClassNames: method isn't being called...so, the palette.name is empty and therefore is not added to the list. I confirmed with a breakpoint that this method was never being called. Also, while forcing palette.name to be palette.classname (for testing purposes), the palette was added to the list, but with no colors....making me think that the colorsForClassesAndColorNames: method is also not being called (or so it seems). |
Ok, looks like the live views manager didn't start properly, can you check if the log shows this message? "🖍 LiveViewsManager enabled" |
No, not seeing it there.... |
Ok, can you also check if opening one one files and changing something, then going back to the storyboard will trigger it? |
No. I'm seeing the call to the p_populateColorsMenu: method in DVTColorPickerPopUpButton+Crayons.m, but not seeing any triggers of my breakpoints at the top of these methods:
or even:
|
So the problem is - [IBStoryboardDocument classDescriber:didModifyClasses:], if that method is never called, the live view manager will not be enabled, and colors won't be generated... I'll have to find out why it's not called, never seen it not happen... |
I gotcha. I haven't messed with any of this IB interfacing before, just really wanted to get this plugin working. 👍 Let me know if I can be of any help. |
Thanks, any help will be greatly appreciated since I still haven't been able to reproduce it... Can you try editing and add inside
and the method
to the class and see if a breakpoints there is triggered... |
This is not working for me as well. Using Xcode 7.2 it did work for your example project and I made it work in a couple example Swift projects but for my reasonably complex Swift project, it is not working. It's not a plugin conflict as it works with other projects. |
I think that might be a different problem, I've seen a Swift project fail to index properly a couple of times, working on a fix for that... |
I'm also having this problem now in my objective-c project. It was working last week. The selector shows when I use the color dropdown in IB, but when I mouse over the palette nothing is displayed. I tried reinstalling Crayons, and reinstalling Alcatraz. [Update] A few hours later and it's working again. No idea what changed but something seems flaky. |
Just chiming in to kindly request that this bug receives some love from the plugin author. When it worked it was magic, when it stopped working (circa 2 months ago) it left me longing for more. 😃 |
Hey everyone, just to let you know that the latest version might have solved your problems, and if it hasn't there's a branch called "bug_6" with a bunch of logging added that would really help me track down the issue :) |
Hi @Sephiroth87, I'm still having problems, even with the bug_6 branch. Can you help me? Thanks |
Another info: The example project works like a charm, but in my project doesn't work. |
More info: |
Logs for a blank project when I open a color picker in IB:
|
Logs for a my project when I open a color picker in IB: In log I found a strange diff. The last log "🖍 got colors" when is in my project. |
I tried to install via Alcatraz and opened the Main.storyboard in the Example app. In the color picker no custom entry shows up.
I also tried to install manually (Just hit Cmd-R and another copy of Xcode opens) => same problem.
The text was updated successfully, but these errors were encountered: