Skip to content

[codex] Add suggestions for missing EO objects#5229

Draft
skulidropek wants to merge 29 commits into
objectionary:masterfrom
skulidropek:issue-4520
Draft

[codex] Add suggestions for missing EO objects#5229
skulidropek wants to merge 29 commits into
objectionary:masterfrom
skulidropek:issue-4520

Conversation

@skulidropek

@skulidropek skulidropek commented Jun 16, 2026

Copy link
Copy Markdown

Summary

Closes #4520.

This change keeps the existing EO runtime Not Found error text intact and appends a Did you mean? section with up to five close object names discovered from the runtime classpath.

Changes

  • Added classpath-based EO object discovery for runtime suggestions.
  • Ranked candidates with the requested composite score: 0.5 * Jaro-Winkler + 0.3 * Jaccard + 0.1 * containment + 0.1 * prefix - lengthPenalty.
  • Applied MIN_SIMILARITY_SCORE = 0.34 and stable score/name ordering.
  • Preserved the org.eolang. display prefix when the missing object uses it.
  • Filtered out annotations, package-info, and helper/internal class names from suggestions.
  • Added tests proving suggestions are loaded from arbitrary temporary dependency JARs through java.class.path.
  • Added runtime and CLI tests for the new Not Found output.

Validation

  • rtk mvn -N validate --batch-mode
  • rtk mvn -pl eo-runtime -Dtest=PhClasspathObjectsTest,PhSuggestionsTest,PhObjectNamesTest,MainTest,PhPackageTest test --batch-mode
  • rtk mvn -pl eo-runtime -PskipTests -Pqulice verify --batch-mode
  • rtk git diff --check
  • SonarCloud PR issues API: 0 unresolved issues

Scope checks

  • No .github/workflows changes in the final PR diff.
  • No Sonar exclusions, suppressions, checkstyle disables, or fixture module are introduced by the final PR diff.

@github-actions github-actions Bot added the core label Jun 16, 2026
@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

🚀 Performance Analysis

All benchmarks are within the acceptable range. No critical degradation detected (threshold is 100%). Please refer to the detailed report for more information.

Click to see the detailed report
Test Base Score PR Score Change % Change Unit Mode
benchmarks.XmirBench.xmirToEO 13210.183 13070.952 -139.231 -1.05% ms/op Average Time

✅ Performance gain: benchmarks.XmirBench.xmirToEO is faster by 139.231 ms/op (1.05%)

@skulidropek

skulidropek commented Jun 16, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: cdf336e
Status: success
Files: 6 (5.24 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is up to date with 'origin/issue-4520'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 16, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 6371fac
Status: success
Files: 15 (9.15 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is up to date with 'origin/issue-4520'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 16, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: ee1886b
Status: success
Files: 15 (9.29 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is up to date with 'origin/issue-4520'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 16, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 92e0be1
Status: success
Files: 15 (9.50 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is up to date with 'origin/issue-4520'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 16, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: f98604a
Status: success
Files: 16 (10.62 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is up to date with 'origin/issue-4520'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 16, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: dbeefb4
Status: success
Files: 16 (10.90 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is up to date with 'origin/issue-4520'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 16, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 47ac74c
Status: success
Files: 16 (11.62 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is up to date with 'origin/issue-4520'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 94c459b
Status: success
Files: 18 (13.54 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 1 commit.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: a7e78fe
Status: success
Files: 19 (14.21 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 2 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: e1d8f41
Status: success
Files: 19 (14.70 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 3 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: fe6c929
Status: success
Files: 19 (14.84 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 4 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 86f62ef
Status: success
Files: 19 (14.94 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 5 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 3a302c3
Status: success
Files: 20 (15.45 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 6 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: ce80485
Status: success
Files: 20 (16.37 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 8 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 39c8f5e
Status: success
Files: 21 (18.69 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 9 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: e5b15b7
Status: success
Files: 21 (18.81 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 10 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: c79bdf4
Status: success
Files: 22 (21.48 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 11 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 9d6d466
Status: success
Files: 22 (21.53 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 12 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 5268175
Status: success
Files: 22 (21.61 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 13 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 75c6295
Status: success
Files: 22 (21.64 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 14 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 62aa762
Status: success
Files: 22 (21.67 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 15 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: e1523dd
Status: success
Files: 23 (22.40 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 16 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 94109af
Status: success
Files: 23 (22.53 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 17 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 1da9ac7
Status: success
Files: 23 (22.59 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 18 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 2a42a88
Status: success
Files: 24 (22.92 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 19 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: 8b05442
Status: success
Files: 27 (27.95 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 20 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@skulidropek

skulidropek commented Jun 17, 2026

Copy link
Copy Markdown
Author

AI Session Backup

Commit: c86f603
Status: success
Files: 27 (28.17 MB)
Links: README | Manifest

git status

On branch issue-4520
Your branch is ahead of 'origin/issue-4520' by 30 commits.
  (use "git push" to publish your local commits)

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	scripts

nothing added to commit but untracked files present (use "git add" to track)

@sonarqubecloud

Copy link
Copy Markdown

@yegor256

Copy link
Copy Markdown
Member

@skulidropek merge conflicts here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Not Found error messages in EO compiler

2 participants