eclipse-jdt / eclipse-jdt/eclipse.jdt.core
ASTParser.createAST silently stop in the middle of a batch of compilation units
- 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
Assessment
This issue has not been assessed yet.