-
Notifications
You must be signed in to change notification settings - Fork 52
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
have
conversion does not work properly with Enumerator
instances
#42
Comments
It seems |
This is the same root cause as #44: I passed Still, given that |
Sounds good to me. Or now I'm wondering if Transpec should warn (and maybe skip the conversion) when it does not have enough runtime information for some conversions, rather than converting aggressively as it currently does. |
Hmm. I can see an argument for that, but it seems like usually if it converts wrongly you wind up with a failure rather than a false positive (although maybe that's just luck). I think skipping the conversion (unless it absolutely knows it can't convert properly) would be a little annoying -- it's still the user's responsibility to review the diff and they have source control to manage reversions and what not, but if there were a large number of conversions transpec could do that were correct but it wasn't sure about them and it skipped them, that would be frustrating to the user. What would be nice is if transpec's output gave you a list of things (file and line numbers) it was less sure about that it recommends you pay special attention to when you review. |
It makes sense. By the way, now I remember the reason why I chose |
Ah, I didn't think about Anyhow, I'm fine keeping |
I had a part of a spec like:
...which converted to:
...which failed with:
To fix it, I changed
size
tocount
. Would be nice if transpec would handle this automatically if possible (not sure how much work that would be).The text was updated successfully, but these errors were encountered: