Skip to content
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

fix: isolate modules in module watcher #1358

Merged
merged 2 commits into from May 13, 2024
Merged

Conversation

akshayka
Copy link
Contributor

This PR adds a ModuleDependencyFinder class delegates work to the built-in finder and maintains its own cache.
Turns out we can't share the same ModuleFinder object -- run_script mutates finder.modules instead of replacing it, which can lead to false positives when detecting which cells change.

Also improve robustness of the module watcher in face of modules that fail to be analyzed — we can at least check if the module itself was changed, even if we can't introspect its dependencies.

Additionally, re-analyze modules when they are changed.

Can't share the same ModuleFinder object -- run_script
mutates finder.modules instead of replacing it.

Also improve robustness of finder in face of modules that fail
to load.

Additionally, re-analyze modules when they change.
Copy link

vercel bot commented May 11, 2024

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

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2024 4:28pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 11, 2024 4:28pm

@akshayka akshayka requested a review from mscolnick May 11, 2024 16:28
@akshayka akshayka merged commit c8be6c4 into main May 13, 2024
28 of 29 checks passed
@akshayka akshayka deleted the aka/fix-isolate-modules branch May 13, 2024 18:36
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.5.3-dev3

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.

None yet

2 participants