Skip to content

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Sep 3, 2019

Enables local completions in julia_prompt

@codecov-io
Copy link

codecov-io commented Sep 3, 2019

Codecov Report

Merging #217 into master will increase coverage by 0.05%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #217      +/-   ##
==========================================
+ Coverage    80.2%   80.26%   +0.05%     
==========================================
  Files           8        8              
  Lines         672      679       +7     
==========================================
+ Hits          539      545       +6     
- Misses        133      134       +1
Impacted Files Coverage Δ
src/Debugger.jl 88.46% <ø> (ø) ⬆️
src/repl.jl 71.53% <91.66%> (+0.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8762911...cbab584. Read the comment docs.

# local completions
vars = filter!(locals(frame)) do v
# xref: https://github.com/JunoLab/Atom.jl/blob/master/src/debugger/stepper.jl#L411-L421
if v.name == Symbol("#self") && (v.value isa Type || sizeof(v.value) == 0)
Copy link
Member Author

@aviatesk aviatesk Sep 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we may want to remove the latter filter conditions here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have that in JuliaInterpreter as well but I am not sure I see the reason for it. I think it can be removed here anyway.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, maybe @timholy knows that ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The #self is probably sufficient. It's not always there (I can't remember where I recently encountered such a situation), but it should be sufficient. Assuming I started that trend I was probably just being paranoid.

@KristofferC
Copy link
Member

Thanks, this is a very nice enhancement.

@KristofferC KristofferC merged commit 5e7013d into JuliaDebug:master Sep 4, 2019
@aviatesk aviatesk deleted the local-completions branch September 4, 2019 08:16
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

Successfully merging this pull request may close these issues.

4 participants