Skip to content

fix: name unhinted type vars without panicking#239

Merged
ivov merged 1 commit into
mainfrom
fix-type-var-name-overflow
Apr 29, 2026
Merged

fix: name unhinted type vars without panicking#239
ivov merged 1 commit into
mainfrom
fix-type-var-name-overflow

Conversation

@ivov
Copy link
Copy Markdown
Owner

@ivov ivov commented Apr 29, 2026

The LSP crashed with type var index is valid hex digit when a hover or completion had to display a type with seven or more unhinted type variables. The fallback name generator relied on char::from_digit(_, 16), which runs out of digits at index 6.

Generated names now follow A, B, …, Z, AA, AB, … (bijective base-26 over A-Z), so in practice arbitrarily many fresh type variables render without panicking.

Fix #236

@ivov ivov merged commit 4153114 into main Apr 29, 2026
6 checks passed
@ivov ivov mentioned this pull request Apr 29, 2026
@ivov
Copy link
Copy Markdown
Owner Author

ivov commented Apr 30, 2026

Released in lisette-v0.1.23

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.

type var index is valid hex digit bug in LSP

1 participant