Repository navigation
Conversation
9324d80 to
276b0d1
Compare
276b0d1 to
85cb5f9
Compare
85cb5f9 to
352faee
Compare
352faee to
8104259
Compare
8104259 to
3701c29
Compare
3701c29 to
2ba4d26
Compare
2ba4d26 to
402a1ea
Compare
402a1ea to
50f8e2c
Compare
50f8e2c to
fecc6b9
Compare
fecc6b9 to
7c80bb5
Compare
…t as parse errors
7c80bb5 to
62b1b80
Compare
CI failed: The Ruling Update and Notify job failed because the Ruling QA job was cancelled and produced no actual_* artifacts to download. The cancellation cause is not shown in the logs, and the analyzer marked the failure as unrelated to this PR, so it is not attributed to the SemSitter parsing change.OverviewThe Ruling Update and Notify job failed because the Ruling QA job was cancelled and produced no actual_* artifacts to download. The cancellation cause is not shown in the logs, and the analyzer marked the failure as unrelated to this PR, so it is not attributed to the SemSitter parsing change. FailuresRuling Update and Notify failed after Ruling QA cancellation left no artifacts (unrelated to PR)
Summary
Code Review ✅ Approved 🟡 Medium risk 6 closed / 6 findingsThe standalone SemSitter parser is not yet wired into the plugin, but when adopted its translation and server-failure handling could change parse outcomes. Adds ✅ 6 closed✅ Edge Case: Files on different roots crash parse instead of falling back to ECJ
✅ Quality: FILE_BY_FILE cancellation reports the progress as completed
Closed: Cross-PR: #6553's translator stops compiling against the 4-arg DocumentTranslator
Closed: Quality: Per-file fallback runs a full JParser.parse, logging and set-up per file
Closed: Quality: BATCH mode ignores AnalysisProgress, reporting progress per batch
...and 1 more closed from earlier reviews Verification Rules 3/3 met Repos 3 inspected · PRs 3 inspectedFunctional validation No results Rules 3 passed 2 not applicable
Broader impact Repos 3 inspected PRs 3 inspectedCross-repo 3 repositories inspected 0 open impacts
Auto-approval Not enabledFor more verification details, comment Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Part 3 of 17 of JAVA-7392. Ticket: JAVA-7395.
Intent
SemSitterParseris aJParserthat runs one SemSitter server perparsecall and hands each file's document to aDocumentTranslator. Nothing creates it yet.It never hands a file to ECJ: the two frontends stay independent, so a comparison between them means something.
flowchart TD P[parse files] --> S{server starts and accepts settings?} S -->|no| E1[IllegalStateException: analysis fails] S -->|yes| F[for each file: get-file, translate] F -->|tree| OK[result] F -->|UnsupportedConstructException| U[parse error for this file] F -->|syntax error| R[parse error at its position] F -->|IO or runtime failure| X[parse failure for this file only]A file the translator does not support yet shows up like a file ECJ cannot parse: logged, counted as a parse error, and the analysis goes on.
ParseProgress:ProgressReportfile by file; in batch mode the sharedAnalysisProgressdrives the logs, like the ECJ batch parser (start on the first batch, global percentage, done on the last)SessionTypes: every type declaration the server sends is kept once for the whole sessionDocumentTranslator.ServerLoaders: types and package lookups, answering null once the server is closedProjectRootandSemSitterSettings: server root and settings from the analysis configurationState on master
The plugin never creates a
SemSitterParser. ECJ parses exactly as today.Test plan
SemSitterParserTestwith a scripted server: start failures fail the analysis, unsupported files are parse errors, batch progress, cancellation and loader failuresSessionTypesTest,ProjectRootTest,SemSitterSettingsTest