-
Notifications
You must be signed in to change notification settings - Fork 45
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
Error Messages and Red Lights Displayed in IntelliJ IDEA Editor although test was fixed #570
Comments
Thanks for the detailed description and the video! |
Quick note, as a faster workaround for glitches like this one, you may hit |
Could you please also share your |
Another workaround for the issue is to use a block statement: it('has a child <h3> element', () => {
childOf...
}); instead of the arrow function expression: it('has a child <h3> element', () =>
childOf...
); |
Hi @ArtemGovorov, thanks for the quick reply! {
"presets": ["es2015", "react"]
} |
In my webpack config, I use devtool "#source-map", but webpack is not involved in my test setup. I'm assuming the source maps come from some config inside Wallaby? |
Babel generates source maps when compiling your files, wallaby just uses those maps to map error stacks from the actually executed compiled code back to your original code. There was an issue with babel generated source maps that was causing a similar issue. |
So could I work around by configuring wallaby to use a different type of source map, e.g. inline? How would I do that? |
No, the source map type doesn't matter. There's no workaround that can be done with some configuration. You may use this workaround for now. |
OK, thanks |
After a careful investigation, it turned out to be an issue in wallaby.js, not in babel generated source maps (even though it is related to the way babel generates source maps for arrow functions with no body). The issue is fixed in wallaby core v1.0.223 (you may restart your IDE and start wallaby to force the update). Thanks again for the detailed description and the issue video, it was very helpful in finding out the reason and fixing it. |
Thanks for acting so quickly! Cheers! |
Issue description or question
When I'm working on a test and doing some refactoring, the refactoring in progress results in a compile error. Wallaby displays this error next to the code that I'm working on and shows a red light at the beginning of the line. So far so good, that is expected.
However, when the refactoring is finished and the code compiles again, the error message in the editor stays and the line continues to be marked red, while Wallaby tool window correctly reports “no failing tests”.
I have to restart my Wallaby.js run configuration to get a green light on the refactored code line.
I made a video to demonstrate the bug: https://youtu.be/0woztRC_Kl0
Wallaby.js configuration file
Code editor or IDE name and version
IntelliJ IDEA Ultimate 2016.1.1
OS name and version
OS X El Capitan 10.11.4
The text was updated successfully, but these errors were encountered: