Skip to content

diag: say where an unknown name exists, and that it may simply be undefined - #4277

Merged
BaseMax merged 1 commit into
mainfrom
diag-undefined-detail
Nov 26, 2026
Merged

BaseMax merged 1 commit into
mainfrom
diag-undefined-detail

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 26, 2026

Copy link
Copy Markdown
Member

Follow-up to #4270, which merged before this commit was pushed.

The help for an unknown name now states that it is not defined in this function or globally, then what else is known: another function that declares it, a package that does not export it, a file in the same folder that is not included, or that no import or include provides it. It ends with how to define it. Unknown functions get the same treatment, and multi-line help is indented in the terminal.

Local run: errors, tools, testcmd and lint, 1017 passed.

…efined

The explanation now states that the name is not defined in this function
or globally, then what else is known: another function that declares it,
a package that does not export it, a file in the same folder that is not
included, or that no import or include provides it. It ends with how to
define it. Unknown functions get the same treatment. Multi-line help is
indented in the terminal.
@BaseMax
BaseMax requested a review from a team as a code owner November 26, 2026 16:01
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 39 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 26d539c2-884a-406b-80d6-3e8195eb79c5
Commits

Reviewing files that changed from the base of the PR and between fe8c079 and 90b9a31.

Files ignored due to path filters: 1

  • tests/en/tools/diag_bytes.out is excluded by !**/*.out
Files selected for processing: 4

  • compiler/diag_render.salam
  • compiler/i18n.salam
  • compiler/semantic/sema_undefined.salam
  • tests/en/errors/undefined_name_help.salam
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BaseMax
BaseMax merged commit 574a329 into main Nov 26, 2026
8 checks passed
@BaseMax
BaseMax deleted the diag-undefined-detail branch November 26, 2026 16:02
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