Skip to content

ui: repro, a native build of a page with style values fails with E012 - #3533

Closed
BaseMax wants to merge 5 commits into
mainfrom
test/native-style-values-repro
Closed

BaseMax wants to merge 5 commits into
mainfrom
test/native-style-values-repro

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 16, 2026

Copy link
Copy Markdown
Member

Repro for the false E012 "argument 2: cannot pass 'str' to 'i32'" at the page block. Do not merge before the compiler is fixed: the test is red on purpose.

Reproduction

printf 'page:\n    box: width = 10 end\nend\n' > n.salam
salam build n.salam --ui=native --output=n.bin

Output with the compiler built from main and a clean main std:

error[E012]: argument 2: cannot pass 'str' to 'i32'
 --> n.salam:1:1

Any standard style attribute triggers it (width, padding, background); a page with only content builds. salam page build (web) and salam check without --ui=native accept the same file. This is also what stops the example apps in #3518.

The Persian twin fails differently: "internal: could not build the native page program".

Test

tests/{en,fa}/ui/style_values.{salam,script,out}: a page with padding, width and background and a button that prints on click. Run with sh tools/bash/run-tests.sh ui once native builds of styled pages work.

@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown

Deployment failed for project salam with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/salamlang?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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

@vercel

vercel Bot commented Nov 16, 2026

Copy link
Copy Markdown

Deployment failed for project salam with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/salamlang?upgradeToPro=build-rate-limit

BaseMax added a commit that referenced this pull request Nov 16, 2026
* ui native: keep comma lists and dynamic style values through checks, mut page state, fa equals

* ui native: typed style props, comma lists, named page and missing entry errors

* ui: entry page and native entry error tests

* ui native: list values on the native target, exact standard attr names, dynamic style values skip the standard check, script uses DSL names

* ui: native page with style values (repro taken from #3533)

* ui native: fa comparison words, unscoped alias wins, fa entry fixture without lang

* ui native: runtime style values skip the static check

* ui: DSL names and fa operators in ui fixtures, expected output for colors, grid and value lists

* ui: drop native entry error fixtures the runner cannot check

* ui: fa operator and input type spellings in ui fixtures

* ui native: constant and quoted style lists, event names skip the style path

* ui native: event names skip the style pass, standard font name in style list fixtures
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
salam Ready Ready Preview Nov 17, 2026 8:37pm UTC

@BaseMax

BaseMax commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

The repro test (tests/{en,fa}/ui/style_values) landed on main through #3527, which fixed the native style build failure, so this PR has nothing left to merge.

This branch was successfully deployed

1 active deployment
Preview — f39eff1c Deployed Nov 17, 2026 by vercel[bot]
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