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

Julia Client - Internal Error #209

Closed
staticfloat opened this issue Dec 18, 2018 · 2 comments
Closed

Julia Client - Internal Error #209

staticfloat opened this issue Dec 18, 2018 · 2 comments
Labels

Comments

@staticfloat
Copy link
Contributor

Please search existing issues to avoid duplicates.

Details

  • Atom version: 1.33.0
  • Julia version: 1.0
  • OS: OSX (local) Linux (remote)
  • Package versions:
    • Atom.jl: 0.7.11
    • julia-client: 0.7.11
    • ink: 0.9.13

Steps to reproduce

I'm not sure how to reproduce, this just seemed to pop up while I was typing.

Julia Client – Internal Error
BoundsError: attempt to access 1-element Array{Any,1} at index [2]
getindex at array.jl:731 [inlined]
get_value_getfield(::Expr, ::Function) at REPLCompletions.jl:355
get_value_getfield(::Expr, ::Module) at REPLCompletions.jl:357
try_get_type(::Expr, ::Module) at REPLCompletions.jl:399
try_get_type(::Expr, ::Module) at REPLCompletions.jl:411
get_type(::Expr, ::Module) at REPLCompletions.jl:420
complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##21#25")), ::Module) at REPLCompletions.jl:123
completions(::String, ::Int64, ::Module) at REPLCompletions.jl:699
basecompletionadapter(::String, ::Module) at completions.jl:21
(::getfield(Atom, Symbol("##189#191")){String,String})() at completions.jl:11
withpath(::getfield(Atom, Symbol("##189#191")){String,String}, ::String) at utils.jl:30
withpath(::Function, ::String) at eval.jl:46
(::getfield(Atom, Symbol("##188#190")))(::Dict{String,Any}) at completions.jl:7
handlemsg(::Dict{String,Any}, ::Dict{String,Any}) at comm.jl:164
(::getfield(Atom, Symbol("##19#21")){Array{Any,1}})() at task.jl:259
@pfitzseb
Copy link
Member

pfitzseb commented Dec 18, 2018

Hm, this looks like a bug in Base's autocompletions to me.
I didn't have any luck finding a way to repro this yet, so please paste the line of code the cursor was on should you come across this again. Apparently Base parsed a getfield call where ex.args is of length 1 (which doesn't make any sense)...

This is (probably) easy enough to fix in Base, but I'd really like to know how it's possible to get into this state.

@pfitzseb
Copy link
Member

pfitzseb commented Jan 7, 2019

Fixed with JunoLab/Atom.jl@4af4d3e on our end.

@pfitzseb pfitzseb closed this as completed Jan 7, 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