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

Dependencies between modules defined in Pluto cause infinite recalculation #2678

Closed
freetopos opened this issue Oct 26, 2023 · 1 comment · Fixed by #2711
Closed

Dependencies between modules defined in Pluto cause infinite recalculation #2678

freetopos opened this issue Oct 26, 2023 · 1 comment · Fixed by #2711
Labels
bug Something isn't working reactivity The Pluto programming paradigm

Comments

@freetopos
Copy link

While defining Julia modules inside Pluto notebooks and stumbled upon this bug:

Steps to reproduce:

  1. In a Pluto notebook, define 3 modules (A, B and C), each in its own cell
  2. Add module A to B with using ..A
  3. Add module A to C with using ..A

This will cause the cells defining B and C to be recalculated "infinitely". More precisely, the notebook eventually crashes with a stack overflow.

Video

pluto_bug.mp4

As a workaround, I've been using the import keyword, which doesn't seem to cause the same issue.

@Pangoraw Pangoraw added bug Something isn't working reactivity The Pluto programming paradigm package manager Pluto's built-in package manager and removed package manager Pluto's built-in package manager labels Oct 26, 2023
@Pangoraw Pangoraw linked a pull request Nov 14, 2023 that will close this issue
@Pangoraw
Copy link
Collaborator

Thank you for the detailed report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reactivity The Pluto programming paradigm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants