Repository navigation
Conversation
A cadModel with stepUrl "./libraries/cap.step" loads with `tsci build --glbs`, but `tsci export -f glb` reports "Failed to load STEP from ./libraries/cap.step" (404) and writes the GLB without the model (cli#5654). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PiJ1d34GaQJAWypDADnioN
Renders the GLB from `tsci export -f glb` to a PNG snapshot. The relative STEP model fails to load, so the part shows as a placeholder box. The model file is renamed to model.step, since the asset is a push button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PiJ1d34GaQJAWypDADnioN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack: 1/2, this repro → the fix PR. Merge the fix into this branch first, then merge this PR, which then contains the repro and the fix, to
main.Repro for #5654. A
cadModelwith a relativestepUrlloads withtsci build --glbs, buttsci export -f glbcan't load it:maintsci build index.tsx --glbstsci export index.tsx -f glbFailed to load STEP from ./libraries/cap.step, then404 Not Found, and a 22 KB GLB without the modelTest
tests/cli/export/export-glb-relative-step-model.test.tswrites this TSX next to alibraries/cap.stepmodel, copied fromtests/cli/assets:It runs
tsci export index.tsx -f glb, then inline-snapshots everyFailed to load STEP from …message in stderr. Today there's one. The fix PR keeps the test as is and updates the snapshot to[].The CLI test fixture can't run in my container, which has no IPv6 listen, so CI runs this test. I reproduced the same command directly with
bun cli/main.ts export, and checked the inline snapshot's format against that real stderr.Generated by Claude Code