-
Notifications
You must be signed in to change notification settings - Fork 147
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
Unhelpful error message with malformed package-requires #284
Comments
Can you try out this branch: https://github.com/cask/cask/tree/invalid-package-requires |
Yes, that is much better and picks up the error in a much cleaner way. This patch is specific to Package-Requires if I am not wrong? I ask because my natural impulse on getting "Invalidly balanced parens" is to do M-x check-paren, but this will not pick up the error because it is in the comments. Would "Unbalanced parens in package headers" or "Unbalanced parens in Package-Requires" not be clearer still? |
You are right, this is only a package requires issue. Updated the error message. I'm thinking, maybe EPL should handle this error instead? What do you think @lunaryorn? |
@rejeep I didn't follow this issue, so please forgive me if I'm wrong or saying anything that was already said, or is just plain stupid. The real issue in this case was a malformed package, wasn't it? E.g. invalid package headers or something like that? In this case, yes, EPL should catch the error and transform it into a proper message, i.e. Would you mind to make a separate issue in EPL, so that I don't forget? |
@lunaryorn You are correct! I opened up this issue: cask/epl#28 |
Merged, thanks for the help on EPL @lunaryorn and on reporting this issue @phillord! |
Cask produces a very strange error when there is a malformed package-require statement. The
error is as follows:
This is pretty incomprehensible anyway, and is very hard to track down to the source cause -- in this case, I have reproduced it by deleting the last paren from the Package-Requires header in the cask source itself.
It has previously been noted in #280. While in this case, it was caused by evil-smartparens, I have raised a new issue because the error message is so hard to decipher. It's taken me about an hour with a debugger to find a missing paren in the comments of my package!
The text was updated successfully, but these errors were encountered: