File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,10 @@ function handleParseCommand(command: ParseCommand, checkPending = true) {
361
361
let filename = command . filename ;
362
362
let expectedFilename = state . pendingFiles [ state . pendingFileIndex ] ;
363
363
if ( expectedFilename !== filename && checkPending ) {
364
- throw new Error ( "File requested out of order. Expected '" + expectedFilename + "' but got '" + filename + "'" ) ;
364
+ // File was requested out of order. This happens in rare cases because the Java process decided against extracting it,
365
+ // for example because it was too large. Just recover and accept that some work was wasted.
366
+ state . pendingResponse = null ;
367
+ state . pendingFileIndex = state . pendingFiles . indexOf ( filename ) ;
365
368
}
366
369
++ state . pendingFileIndex ;
367
370
let response = state . pendingResponse || extractFile ( command . filename ) ;
You can’t perform that action at this time.
0 commit comments