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

[BUG] @enter doesn't like do blocks #263

Closed
ssfrr opened this issue Mar 21, 2019 · 1 comment
Closed

[BUG] @enter doesn't like do blocks #263

ssfrr opened this issue Mar 21, 2019 · 1 comment
Labels

Comments

@ssfrr
Copy link

ssfrr commented Mar 21, 2019

Details

  • Atom version: 1.35.1
  • Julia version: 1.1.0
  • OS: Arch Linux
  • Package versions:
    • Atom.jl: 0.8.2
    • julia-client: 0.8.0
    • ink: 0.10.0

Steps to reproduce

Enter the code:

xs = 1:10
Juno.@enter ys = map(xs) do x
    x+1
end

execute the code with ctrl-enter. an error occurs:

MethodError: objects of type Array{Int64,1} are not callable
Use square brackets [] for indexing an Array.
in top-level scope at Atom/mngyX/src/debugger/stepper.jl:39
in enter_call_expr at JuliaInterpreter/62ZyY/src/construct.jl:507
in #enter_call_expr#22 at JuliaInterpreter/62ZyY/src/construct.jl:507
in #determine_method_for_expr at base/none 
in #determine_method_for_expr#21 at JuliaInterpreter/62ZyY/src/construct.jl:467
in  at base/none
in #prepare_call#14 at JuliaInterpreter/62ZyY/src/construct.jl:216
2304×2304 Array{RGBA{N0f8},2} with eltype ColorTypes.RGBA{FixedPointNumbers.Normed{UInt8,8}}:
Plot{Plots.GRBackend() n=1}
@ssfrr ssfrr added the bug label Mar 21, 2019
@pfitzseb
Copy link
Member

pfitzseb commented Apr 3, 2019

Fixed in latest release:

julia> xs = 1:10
1:10

julia> Juno.@enter ys = map(xs) do x
           x+1
       end
ERROR: LoadError: ArgumentError: @enter and @run must be applied to a function call

@pfitzseb pfitzseb closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants