-
Notifications
You must be signed in to change notification settings - Fork 63
Fix: clearSceneAndBustCache when rust panics because it can load a stale cache #6809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -2244,7 +2244,7 @@ w = f() + f() | |||
|> line(end = [0, 0]) | |||
|> close() | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what the fuck is this?
cargo fmt
does nothing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's inside a Rust string, so cargo fmt shouldn't modify your strings.
ah smart! perfect use of that function but also why is rust panicing hahaa we should never panic |
CodSpeed Instrumentation Performance ReportMerging #6809 will not alter performanceComparing Summary
|
const stack = error?.error?.stack || null | ||
if (typeof stack === 'string') { | ||
const substringError = `WebAssembly.instantiate:wasm-function` | ||
return stack.indexOf(substringError) !== -1 ? true : false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return stack.indexOf(substringError) !== -1 ? true : false | |
return stack.indexOf(substringError) !== -1 |
Do we send error reports to the server to notify us when stuff like this gets triggered in the wild? If not, we should. |
@jtran we could add honeycomb tracing or something just wanna be mindful when we do we only track dire shit or we will get so much noise! but would be good to do! |
@jtran have you looked at that args.rs line hes talking about does it make sense why its panic-ing |
its this line: modeling-app/rust/kcl-lib/src/std/args.rs Line 411 in a7ee874
|
i opened a fix for the panic here: #6825 |
closes #6808
Issue
When rust panics the rust cache can become stale and prevent you from rendering other KCL files in your project.
Implementation
Video walkthrough
2025-05-09.12-26-07.mp4
KCL code that causes panic