nek023 / Lin-Xcode5

A Localization Manager for Xcode 5
http://questbe.at/lin/
MIT License
969 stars 77 forks source link

This plugin can result in xcode Infinite loop #3

Open yushuyi opened 11 years ago

yushuyi commented 11 years ago

after Infinite loop only Forced out

nek023 commented 11 years ago

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

EliSchleifer commented 11 years ago

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.

nek023 commented 11 years ago

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

ehlersd commented 11 years ago

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.

SpacyRicochet commented 11 years ago

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

pdiegmann commented 10 years ago

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

osrl commented 10 years ago

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

nek023 commented 10 years ago

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

osrl commented 10 years ago

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

nek023 commented 10 years ago

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...)

osrl commented 10 years ago

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

kdbdallas commented 10 years ago

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

vbGoz commented 10 years ago

I am experiencing the same issue.

nek023 commented 10 years ago

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.

osrl commented 10 years ago

We already did remove :( good luck with your thesis

orkenstein commented 10 years ago

The same to me. Very annoying! Pls fix it

Maik639 commented 10 years ago

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

vbGoz commented 10 years ago

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

Maik639 commented 10 years ago

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.

avioli commented 10 years ago

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.

vbGoz commented 10 years ago

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

Vasia89 commented 10 years ago

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.

joelekstrom commented 10 years ago

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.

Vasia89 commented 10 years ago

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.

Maik639 commented 10 years ago

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

nielscastle commented 10 years ago

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

joelekstrom commented 10 years ago

@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.

nielscastle commented 10 years ago

@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.

nek023 commented 10 years ago

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

nek023 commented 10 years ago

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

avioli commented 10 years ago

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.

nek023 commented 10 years ago

Thanks.

nek023 commented 10 years ago

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?

nielscastle commented 10 years ago

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.

nek023 commented 10 years ago

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

nek023 commented 10 years ago

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

Vasia89 commented 10 years ago

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