eclipse-jdt / eclipse-jdt/eclipse.jdt.core

ASTParser.createAST silently stop in the middle of a batch of compilation units

Open
#2,050 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

Context:
When I'm using ASTParser.createAST `org.eclipse.jdt:org.eclipse.jdt.core:3.36.0` (instead of `3.35.0`).

Problem:
The parser fails at handling missing types, this is the first issue. it could be related to #1915.
But this first issue highlights a second issue with a bigger impact:
The analysis of a batch of compilation units in `ASTParser.createAST` silently stops in the middle of a batch.
So the ASTParser does not call back the FileASTRequestor for the file having the missing type, and does not call back for all the remaining files in the batch.

[This GitHub repository](https://github.com/alban-auzeill/jdt-core-ast-for-batch-of-compilation-units-bug) is a reproducer for this problem, its `README.md` file explains how to reproduce.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.