-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix REPL completions not always being unique #28694
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KristofferC
added
REPL
Julia's REPL (Read Eval Print Loop)
needs tests
Unit tests are required for this change
bugfix
This change fixes an existing bug
backport pending 1.0
labels
Aug 16, 2018
Ooops. Seems reasonable. |
Does this mean that |
Yes, if IJulia only deals with the textual representation of the completion, then that seems desirable. |
stevengj
added a commit
to JuliaLang/IJulia.jl
that referenced
this pull request
Aug 16, 2018
stevengj
added a commit
to JuliaLang/IJulia.jl
that referenced
this pull request
Aug 17, 2018
KristofferC
added a commit
that referenced
this pull request
Aug 19, 2018
KristofferC
added a commit
that referenced
this pull request
Aug 19, 2018
Merged
KristofferC
added a commit
that referenced
this pull request
Aug 19, 2018
KristofferC
added a commit
that referenced
this pull request
Sep 8, 2018
KristofferC
added a commit
that referenced
this pull request
Sep 8, 2018
The added test fails, since Worker 1 failed running test REPL:
Some tests did not pass: 984 passed, 1 failed, 0 errored, 5 broken.REPL: Test Failed at /usr/share/julia/stdlib/v1.0/REPL/test/replcompletions.jl:109
Expression: count(isequal("REPL"), c) == 1
Evaluated: 2 == 1
Stacktrace:
[1] record(::Test.DefaultTestSet, ::Test.Fail) at /build/julia/src/julia/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:745
[2] (::getfield(Main, Symbol("##42#48")))() at /usr/share/julia/test/runtests.jl:237
[3] cd(::getfield(Main, Symbol("##42#48")), ::String) at ./file.jl:96
[4] top-level scope at none:0
Test Summary: | Pass Fail Broken Total
Overall | 984 1 5 990
REPL | 984 1 5 990
FAILURE
The global RNG seed was 0x632e1e2db9377e27341b33d4eaeea6df.
Error in testset REPL:
Test Failed at /usr/share/julia/stdlib/v1.0/REPL/test/replcompletions.jl:109
Expression: count(isequal("REPL"), c) == 1
Evaluated: 2 == 1
ERROR: LoadError: Test run finished with errors
in expression starting at /usr/share/julia/test/runtests.jl:61
ERROR: A test has failed. Please submit a bug report (https://github.com/JuliaLang/julia/issues)
including error messages above and the output of versioninfo():
Julia Version 1.0.1
Commit 0d713926f8 (2018-09-29 19:05 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 2 |
KristofferC
added a commit
that referenced
this pull request
Feb 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug introduced in #26930 since completion types with the same text but different type no longer are filtered out by the
unique!
incompletions
.I don't think the filtering should take place in
LineEdit
since other consumers (with a more rich display system than the REPL) might want to show duplicates with different types.Gotta think of a test...
Fixes #28692
cc @jamii