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

Autocompletion on Dict{Symbol} keys causes kernel exception #880

Closed
vargonis opened this issue Oct 18, 2019 · 2 comments
Closed

Autocompletion on Dict{Symbol} keys causes kernel exception #880

vargonis opened this issue Oct 18, 2019 · 2 comments

Comments

@vargonis
Copy link

To reproduce: using IJulia on Atom via Hydrogen, evaluate d = Dict(:x=>1, :y=>2) and then type d[:. Autocompletion triggers and fails with the following error:

Dict{Symbol,Int64} with 2 entries:
  :y => 2
  :x => 1
KERNEL EXCEPTION
MethodError: no method matching complete_type(::QuoteNode)
Closest candidates are:
  complete_type(!Matched::Type{#s68} where #s68<:Function) at /home/vargonis/.julia/packages/IJulia/cwvsj/src/handlers.jl:54
  complete_type(!Matched::Type{#s68} where #s68<:Type) at /home/vargonis/.julia/packages/IJulia/cwvsj/src/handlers.jl:55
  complete_type(!Matched::Type{#s68} where #s68<:Tuple) at /home/vargonis/.julia/packages/IJulia/cwvsj/src/handlers.jl:56
  ...

Stacktrace:
 [1] complete_types(::Array{String,1}) at /home/vargonis/.julia/packages/IJulia/cwvsj/src/handlers.jl:100
 [2] complete_request(::ZMQ.Socket, ::IJulia.Msg) at /home/vargonis/.julia/packages/IJulia/cwvsj/src/handlers.jl:139
 [3] #invokelatest#1 at ./essentials.jl:742 [inlined]
 [4] invokelatest at ./essentials.jl:741 [inlined]
 [5] eventloop(::ZMQ.Socket) at /home/vargonis/.julia/packages/IJulia/cwvsj/src/eventloop.jl:8
 [6] (::getfield(IJulia, Symbol("##15#18")))() at ./task.jl:259

Output of versioninfo():

Julia Version 1.1.1
Commit 55e36cc308 (2019-05-16 04:10 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
@nilshg
Copy link

nilshg commented Sep 26, 2024

This works on a standard current install, Atom has long since been killed off - this should be closed.

@vargonis
Copy link
Author

Ok for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants