nek023 / Lin-Xcode5

A Localization Manager for Xcode 5

Home Page:http://questbe.at/lin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This plugin can result in xcode Infinite loop

yushuyi opened this issue · comments

after Infinite loop only Forced out

Thank you for your report, but I need further details to solve the problem.

I can reproduce this problem as well. I have never debugged a plugin. If you have some quick notes on how to achieve that I can try to dig in.

OK, debugging Xcode plug-in is very easy. Just run it :)

But before that, you have to open scheme settings,
http://gyazo.com/f3845bc5c9aa39e0863a93a36b751754

And confirm that Xcode.app is specified as an executable.
http://gyazo.com/0d42787a7cf7a94e4f2476ef08a27930

I can report that it is happening on my Xcode5 project also. When the project is opened, it opens up, and then just sits there running at 100% CPU indefinitely.

This happens here as well. Seems like a RegEx search starts running on infinite. Could debug this when I have more time.

Any Update on this issue? (As I'm experiencing it as well).
Thank you for this great idea :)

I'm experiencing this issue too, Any update @questbeat ?

Sorry, not yet.
I haven't experienced this problem, so it's difficult for me to figure out.

Any help we can provide? I needed to uninstall the plugin, and i want it back :)

Thank you.
Would you please tell me about your project environment that the problem occurs? (e.g. the number of localization)
And I also want a screenshot. (Xcode message, Log, or something...)

There is no crash log, XCode freezes. can't click anything, cpu is running on %100, Not responding. Here is a screenshot:
screen shot 2014-01-14 at 21 05 29

And the localizations:
screen shot 2014-01-14 at 21 16 27

I know that's hard to tell what's wrong. Please tell me if you need any more information

Same here.
It takes Xcode to its knees and basically makes it unusable (if you want to get anything done)

I am experiencing the same issue.

OK, thanks for report.
But I have no time to work on this issue right now... (I have to write my thesis.)
So please remove this plug-in and wait for future updates.

We already did remove :( good luck with your thesis

The same to me. Very annoying! Pls fix it

Found the problem.
Here is a quick and dirty fix: http://pastebin.com/71pdnJw9

@Maik639 I tried your fix but it didn't fix the issue for me.

May you have an other framework and not google maps? or your project has to big .string files? You can debug that piece of code to finde the problem.

I've experienced the same issue and what @Maik639 suggested to do did the trick for me. I'm using the Google Maps framework and that was probably hogging XCode.

I debugged and figured out that it was HockeySDK for me. To be more specific hu.strings file of HockeySDK.

Hello.

This plugin is something incredible. It is so easy and so useful. Every one must have.

But, i could not open some xcode projects (even when this plugin is turned off). I am using XCode 5.
I will attach crash report so you can look where is a problem: https://www.dropbox.com/s/8fqstlkcr2jbe85/Xcode_2014-03-03-120235_MacBook-Pro-Volodymyr.hang

Regards,
Vasyl.

Just wanted to say I have the same problem. Could be because of lib localizations. For example we have Helpshift in our project which adds a lot of localization files.

Yes, you are right @accatyyc. My project used localized third party libraries.

But, i think when i turn off plugin it would not work any more. But is seems that it still works. The only way is force close xcode and remove this plugin, and later put it plugin back. This is annoying :(

Anyway, thanks developers for the works, and this product.

You can have a look at my fix, i posted a few days ago. It should help you to get it working.

A naïve quick fix is available here #12 that skips all files located below folders ending in ".framework". It would be great if someone would try it out so we can provide some feedback to @questbeat

@nielscastle That solves it for some probably, but it should also skip Pods-folder I guess, since that's the problem for me at least. That might not be good though, if some pod is supposed to supply localized strings, for example.

@accatyyc - roger that. I hadn't thought of developers working with the localisations from within the frameworks or libraries. I'll look in to why poking around the framework hangs the plug-in.

I will start working on this issue today.
Sorry for inconvenience and my lazy, everyone.

Are there any 3rd-party frameworks or libraries to reproduce this issue on my project?

Google Maps SDK hangs it for me. https://developers.google.com/maps/documentation/ios/
I would suggest a preferences/options dialog for adding exclusion patterns for paths.
Or some kind of timeout mechanism. Since there might be a huge project that requires a lot of time to process.

Thanks.

OK, I want to know what happens to your projects by applying my first fix.
I pushed to fix branch in this repository, so ... can anyone try it?

Hangs in HockeyApp with master branch

Repos/112puls/Vendor/HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle/ru.lproj/HockeySDK.strings

The fix branch solves the problem for me.

Merged fix to master.
I'll continue working on other issues and UI-improvements.

Please note that infinite loop problem is not fixed yet. (I'm working)

Sorry, for late response. Current fix works fine for me.
Thank you @questbeat.