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

subtypes(AbstractType) is not reactive #989

Closed
joshday opened this issue Mar 10, 2021 · 2 comments
Closed

subtypes(AbstractType) is not reactive #989

joshday opened this issue Mar 10, 2021 · 2 comments
Labels
enhancement New feature or request expression explorer Figuring out assignments and references in a cell one day Closed because we won't work on it soon, will be opened again later. reactivity The Pluto programming paradigm

Comments

@joshday
Copy link

joshday commented Mar 10, 2021

As the title says, subtypes(AbstractType) does not get updated if I add a new cell with a struct New <: AbstractType end definition.

@Pangoraw
Copy link
Collaborator

hi!
Unfortunately, Pluto's syntax analysis currently only references dependencies between cells, not objects. This means that both struct New <: AbstractType end and subtypes(AbstractType) are children of abstract type New end at the same level.
One workaround would be to group the abstract type declaration and the child struct declaration in the same cell with a begin block:
example

@fonsp fonsp added the one day Closed because we won't work on it soon, will be opened again later. label Mar 15, 2021
@fonsp
Copy link
Owner

fonsp commented Mar 15, 2021

(Similar to methods(myfunc), and #564 )

@fonsp fonsp closed this as completed Mar 15, 2021
@fonsp fonsp removed the one day Closed because we won't work on it soon, will be opened again later. label Mar 15, 2021
@fonsp fonsp reopened this Mar 15, 2021
@fonsp fonsp added enhancement New feature or request expression explorer Figuring out assignments and references in a cell reactivity The Pluto programming paradigm labels Mar 15, 2021
@fonsp fonsp added the one day Closed because we won't work on it soon, will be opened again later. label Nov 3, 2021
@fonsp fonsp closed this as completed Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request expression explorer Figuring out assignments and references in a cell one day Closed because we won't work on it soon, will be opened again later. reactivity The Pluto programming paradigm
Projects
None yet
Development

No branches or pull requests

3 participants