-
Notifications
You must be signed in to change notification settings - Fork 82
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
Infinite loop is occurring in MockingBird shell script during unit test build phases #300
Comments
Looks like the parser fails to move forward from the '@' character in '@convention(block)' as once it encounters an unrecognized '@' attribute, it looks for the next non-letter, non-number character... which is the '@' character we're already on, so it infinitely loops. It obviously needs to move past this attribute, I'm not familiar with this code though so I don't know what this would look like.
|
have the same failure, do you have any update for it ? |
Same problem here. It can be easily reproduced by creating a protocol for the DispatchQueue method(s).
I think it should also be noted, this problem freezes and crashes Xcode for me when I try to run my unit tests target. |
Hi, |
Sorry, @Narayane, I don't even remember what I did there and why it fixed the issue. 😬 My new employer doesn't use Mockingbird, so I doubt I'll find time to update my fork and make a PR anytime soon. Please, feel free to make a PR with the change yourself, though. Looks like the fix itself seemed to be just adding |
Hi, I tried to exclude relative file but without success FYI ⬆️ |
Looks related to #310 Has anybody found a working workaround? |
When building my unit tests, the MockingBird build phase shell script spams the logs seemingly infinitely (or at least until Xcode seizes up) with the following warning:
which looks like it's coming from this line:
https://github.com/birdrides/mockingbird/blob/2108f83899745b0e08851caed10a4917757404b3/Sources/MockingbirdGenerator/Parser/Models/Function.swift#L99
Here is a picture of the logs, notice the 65535 count of warnings in the top right:
The text was updated successfully, but these errors were encountered: