Skip to content

Adjust examples for latest Fe version#3

Merged
cburgdorf merged 2 commits intomainfrom
example_check
Feb 25, 2026
Merged

Adjust examples for latest Fe version#3
cburgdorf merged 2 commits intomainfrom
example_check

Conversation

@cburgdorf
Copy link
Contributor

No description provided.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a74a7add7e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

fetch_latest_tag() {
local response tag
local -a headers
mapfile -t headers < <(curl_headers)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace Bash 4-only mapfile in cross-platform wrapper

The wrapper now claims macOS support, but it uses mapfile to build curl headers; mapfile is not available in the default Bash 3.2 shipped on macOS, so ./scripts/fe exits with mapfile: command not found before it can download or run Fe. This affects contributors (and any CI) on stock macOS setups unless they manually install a newer Bash, so the new cross-platform path is effectively broken in that environment.

Useful? React with 👍 / 👎.

Comment on lines +176 to +178
temp_check_file="$TEMP_DIR/standalone_$(basename "$fe_file")"
prepare_standalone_check_file "$fe_file" "$temp_check_file"
FE_OUTPUT=$("$SCRIPT_DIR/fe" check "$temp_check_file" 2>&1) || true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Report standalone example errors against original file lines

Standalone examples are now checked through a generated temp file with boilerplate prepended, so any compiler diagnostics reference shifted line numbers in that synthetic file instead of the original src/examples/*.fe source. When a standalone example fails, the reported location is therefore misleading, which makes CI failures harder to triage and fix; this path should either check the original file directly or remap diagnostics back to original line numbers.

Useful? React with 👍 / 👎.

@cburgdorf cburgdorf merged commit 8759e28 into main Feb 25, 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