ScriptC toolchain installation fails due to timeout
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 66/100
Research direction
Start by locating the toolchain installer that handles scriptc downloads and read how it applies the 120,000 ms timeout. Check how that installer is invoked by npm run toolchain:install and whether configuration or download diagnostics are already covered. Done means the installer can handle slow downloads reliably, exposes a configurable timeout, and reports useful failures.
Written by the indexing model from the issue text.
Description
Environment
- OS: macOS (Apple Silicon, darwin-arm64)
- Native SDK CLI: 0.11.1
- ScriptC: 0.3.2
- Node.js: v26.13.0
- Package manager: npm
Description
When running native dev for the first time, the CLI reports that ScriptC is not installed:
Error: scriptc 0.3.2 is not installed
Running the toolchain installation command:
npm run toolchain:install
produces the following error:
Installing scriptc 0.3.2 for darwin-arm64
scriptc installation failed: The operation was aborted due to timeout
Investigation
The ScriptC release asset is accessible and can be downloaded successfully.
Asset:
scriptc-0.3.2-darwin-arm64.tar.gz
Observed download response:
- HTTP Status: 200
- Content-Length: 61,103,733 bytes (~58.2 MiB)
The installer appears to abort the download because of its timeout configuration.
The installer uses a 120,000 ms timeout, which can be insufficient under certain network conditions.
Workaround
Increasing the download timeout from 120,000 ms to 900,000 ms allowed the ScriptC installation to complete successfully.
Expected Behavior
- The installer should reliably download and install ScriptC.
- Download timeouts should be configurable.
- Large toolchain assets should have a sufficiently generous timeout.
- Failed downloads should provide more useful diagnostic information.
Suggested Fix
Consider:
- Increasing the default download timeout.
- Supporting a configurable timeout through environment variables or CLI options.
- Improving download retry and resume mechanisms.
- Providing clearer error messages distinguishing network failures from timeout failures.
Impact
Users with slower or unstable network connections may be unable to install the ScriptC toolchain and therefore cannot run native dev.
- Dominant language
- Zig
- Stars
- 7.9k
- Forks
- 335
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 147
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vercel-labs/native
-
Per-view widget layout budget (1024 nodes) drops whole frames on real multi-pane app viewsPossibly taken @slicenferqin claimed this 100 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vercel-labs/native#408 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
vercel-labs/native#387 ·
Maintainers usually reply within 1 day
-
macOS: the window frame event reports the frame size where everything else expects the content sizeOpen
Difficulty 1/5 Under an hour Newbie friendliness 84/100
vercel-labs/native#355 ·
Maintainers usually reply within 1 day
-
cef.zig: InstallResult.archive_path leaks on successPossibly taken @versecafe claimed this 206 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vercel-labs/native#32 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
vercel-labs/native#957 ·
Maintainers usually reply within 1 day
All issues in vercel-labs/native
Similar issues
-
area: middleware enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rohitgollarahalli/mcpx#45 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
facebookresearch/atlas-lean#20218 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100