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

The compiler is unable to check that this switch is exhaustive in reasonable time #87

Closed
zhanleewo opened this issue Nov 29, 2019 · 3 comments · Fixed by #88
Closed

Comments

@zhanleewo
Copy link

Hi! I download this library code from cocoapods and got an issue trying to build app "The compiler is unable to check that this switch is exhaustive in reasonable time"

Probably need to add default value.

image

image

@dzenbot
Copy link

dzenbot commented Nov 29, 2019

You’re right. Both of those var need a default: return “”. This may never be hit, but it will trick the compiler at least.

Should be super easy to add, in the following lines:
https://github.com/home-assistant/Iconic/blob/master/Source/iconic-default.stencil#L224

https://github.com/home-assistant/Iconic/blob/master/Source/iconic-default.stencil#L233

Want to give it shot @zhanleewo?

@zhanleewo
Copy link
Author

Yes, I have done this. Since I think you will solve it in the future, so I did not provide a patch.

@mitchins
Copy link
Contributor

Hi, this is still open... can we make it happen?
I see no risk in using a default in any of the auto generated code because we can trust it is exhaustive as it is automatically done.

dzenbot added a commit that referenced this issue Jan 19, 2020
The compiler fails to check how exhaustive some switches are with the warning "The compiler is unable to check that this switch is exhaustive in reasonable time". 

Fix #87
robbiet480 added a commit that referenced this issue Jan 25, 2020
Swift 5 compatibility (and enum exhaustive check timeout) #87
tospery pushed a commit to tospery/Iconic-JX that referenced this issue May 9, 2020
tospery pushed a commit to tospery/Iconic-JX that referenced this issue May 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants