-
Notifications
You must be signed in to change notification settings - Fork 13
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
Discord fails when encountering some preprocessor imports #49
Comments
A bit of debugging seems to suggest that the Stylus engine is choking on the styl file causing the sourcemap to not be built. Since the callbacks are eating the stylus errors, I'm not 100% certain, but I bet adding an error callback to the stylus call should clear that up. |
I inadvertantly triggered this same error with a very basic PR: https://github.com/darkwing/YouShouldUseTest/pull/7/files In that example, a syntax error is presented ( |
I wonder... does it fail on all |
So how should we handle this? Do we alert the user through a comment? I don't want to derail the main goal of this project. |
Good question @mrmakeit . I was thinking the same -- I don't think there's much we can do outside of letting the user know their stylus cannot be parsed. I think that is very reasonable. @groovecoder @openjck ? |
👍 - that's a valuable comment in its own way. |
I think a comment on the pull request (a discussion comment, not a line comment) explaining that the CSS can't be tested would be great! 😄 |
I opened #67 for commenting when stylesheets cannot be tested. But that may not be what caused this issue. Does Stylus testing fail whenever |
I get the feeling that any type of A very short solution could be to ignore calls to |
We could do some preprocessing, and directly include the file before sending it through the processor. I'm not sure if there would be another way beyond what @darkwing suggested, and I doubt that would be great for performance, especially on larger repos. |
We enabled the hook on the kuma code-base, and merged mdn/kuma@d575949 into master.
They payload delivered successfully to the hook, but the heroku logs show ...
The text was updated successfully, but these errors were encountered: