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

CheckBox() not working in session after coding error #486

Open
jmontalvo94 opened this issue Sep 24, 2020 · 1 comment
Open

CheckBox() not working in session after coding error #486

jmontalvo94 opened this issue Sep 24, 2020 · 1 comment
Labels
bug Something isn't working expression explorer Figuring out assignments and references in a cell good first issue Good for newcomers

Comments

@jmontalvo94
Copy link

Hi!

I was using CheckBox() from PlutoUI but I accidentally wrote $(@bind cost1 CheckBox(), default=true) instead of $(@bind cost1 CheckBox(default=true)) and apparently you can't use CheckBoxes anymore in that session (even if removing that line of code in the cell) so I had to restart the session. The error is

┌ Warning: unknow use of `=`. Assignee is unrecognised.
│   ex = :(CheckBox())
└ @ Pluto.ExpressionExplorer ~/.julia/packages/Pluto/upwxH/src/analysis/ExpressionExplorer.jl:160
@fonsp fonsp added bug Something isn't working good first issue Good for newcomers expression explorer Figuring out assignments and references in a cell labels Sep 24, 2020
@fonsp
Copy link
Owner

fonsp commented Nov 28, 2020

This seems to be an issue with ExpressionExplorer:

This code:

julia> f(), g() = true, false
(true, false)

julia> f()
true

julia> g()
false

julia> f
f (generic function with 1 method)

is legal, but our expression explorer does not work:

julia> Pluto.ExpressionExplorer.compute_symbolreferences(:(f(), g() = true, false))
┌ Warning: unknown use of `=`. Assignee is unrecognised.
│   ex = :(f())
└ @ Pluto.ExpressionExplorer ~/Pluto.jl/src/analysis/ExpressionExplorer.jl:173
SymbolsState([], [], [], [
    Pluto.ExpressionExplorer.FunctionNameSignaturePair([:g], Any[]): SymbolsState([], [], [], [])
])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working expression explorer Figuring out assignments and references in a cell good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants