Skip to content

reexecute KCL code when reloading due to external file modification #7039

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rukai
Copy link
Contributor

@rukai rukai commented May 17, 2025

Closes #7029

I've verified this fixes the issue by running the modeling-app locally on my machine via npm run tronb:package:dev.

I'm not familiar with this codebase but it seems we were just missing the call to re-evaluate the KCL.
If its significantly more involved than this I can close the PR and defer to the zoo team.

Unlike the isImportedInCurrentFile case, I found that for the isCurrentFile case, executeAst is not sufficient. Instead executeCode (which calls executeAst) is required.

Copy link

vercel bot commented May 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2025 5:56am

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.

[BUG]: Changing KCL file in external editor does not refresh render
1 participant