Open samreid opened 2 years ago
This was easy to replicate by enabling @typescript-eslint/no-unnecessary-condition
and triggering a change in one scenery file, then running the script.
@marlitas and I wrote this variation, but still saw truncation in webstorm:
With the patch above, there is truncation in WebStorm but no truncation from the terminal. I changed the WebStorm console buffer size following these instructions, but it had no impact on when the data was truncated: https://stackoverflow.com/questions/11763996/output-window-of-intellij-idea-cuts-output
'stylish'
was used but not when 'compact'
was used. This was only in WebStorm, there was no different in the string length from terminal. This was independent of any output (even when not console.logging anything).// numbers.js
const array = [];
for ( let i = 0; i < 1000000; i++ ) {
array.push( i+'\n' );
}
console.log( array.join( ', ' ) );
A code comment claims: // No need to have the same ESLint just to format
but we aren't convinced of that. We also think there may be some problem with promises? Or maybe WebStorm is somehow running a different version of lint? We are really grasping at straws.
We would like to reach out to @zepumph for next steps.
I'm self-unassigning to take it off of my "to do" list, but not intending this to mean @zepumph should necessarily work on it alone. Please reach out as appropriate.
I am not sure how to reproduce this. I haven't encountered this when running the precommit multi in my webstorm over the past 6 months. Weird!.
I followed the same steps above and saw the same problem:
This is likely a webstorm problem that would be expensive to fix or work around. It is pretty clean when things are truncated, so it's not too worrisome. But we could alway report it to JetBrains if it leads to trouble. Perhaps leave the issue open and unassigned for now?
While working on https://github.com/phetsims/chipper/issues/1305, @marlitas and I observed 2x in a row that precommit-hook-multi truncates errors like so: