Skip to content

docs: .kbb/.dict lines of any length, NLP++ errors on stderr (engine 4.2.38) - #248

Merged
ddehilster merged 1 commit into
VisualText:mainfrom
ddehilster:docs/kbb-any-length-stderr
Oct 20, 2026
Merged

ddehilster merged 1 commit into
VisualText:mainfrom
ddehilster:docs/kbb-any-length-stderr

Conversation

@ddehilster

Copy link
Copy Markdown
Member

Help for engine 4.2.38 (VisualText/nlp-engine#797).

  • New_in_Current_Version.md: a 4.2.38 entry.
    • FIXED: .kbb lines of 2,048+ characters ended the load. .kbb and .dict values of 512+ characters crashed the engine. Long .dict lines were skipped. Every quoted .kbb value followed by more text on its line loaded a stray 0.
    • CHANGED: NLP++ runtime errors now also print one line to stderr.
  • loadkbb.md / loaddict.md: lines and values can be any length, plus what happened before 4.2.38.

SaveKB in KBFuncs.nlp writes .kbb values in the shape that loaded the stray 0, so a .kbb loaded and saved again before 4.2.38 has those values in it. The help says to rebuild such files from their source data. KBFuncs.nlp itself needs no change.

Help/check-help-docs.ps1: no broken links. The one orphan it reports, New_in_Current_Version, was already unlisted in index.md.

Merge after the 4.2.38 engine release, so the help doesn't name a version users can't get yet.

🤖 Generated with Claude Code

…4.2.38)

New_in_Current_Version gets a 4.2.38 entry. loadkbb and loaddict say
lines and values can be any length, and what happened before 4.2.38: a
2,048+ char .kbb line ended the load, a 512+ char value crashed the
engine, a long .dict line was skipped, and every quoted .kbb value
followed by more text loaded a stray 0. SaveKB writes that shape, so a
.kbb loaded and saved again before the fix should be rebuilt.

The entry also covers the one change analyzer authors can see: an NLP++
runtime error still skips the rest of its region and exits 0, but now
prints one line to stderr, not only to err.log.

Engine PR: VisualText/nlp-engine#797.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ddehilster
ddehilster merged commit cd31a60 into VisualText:main Oct 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant