JuliaPluto/Pluto.jl

ExpressionExplorer: `global` stronger than `let`

Open

#1 856 ouverte le 26 janv. 2022

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Julia (329 forks)batch import
backendbugexpression explorergood first issue

Métriques du dépôt

Stars
 (5 295 stars)
Métriques de merge PR
 (Merge moyen 5j 12h) (13 PRs mergées en 30 j)

Description

We have a couple of combinations of let and global that are not analyzed correctly, like:

let
	a = 1
	global a = 2
end

defines a global a, but Pluto prioritizes the let block.

@test_broken means that we still need to fix it:

https://github.com/fonsp/Pluto.jl/blob/c1d23122845e7864ef3dfe15a8428366c98f95eb/test/ExpressionExplorer.jl#L368-L379

This is a good first issue, because the ExpressionExplorer is a small, isolated part of Pluto's codebase. For more info about working on this issue, see:

https://github.com/fonsp/Pluto.jl/blob/c1d23122845e7864ef3dfe15a8428366c98f95eb/test/ExpressionExplorer.jl#L3-L17

Guide contributeur