-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[cling] Replace usage of TextInput with LineEditor #16438
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
base: master
Are you sure you want to change the base?
Conversation
Update tests as errors/warnings will add a new line in TextInput
TextInput does not have a native method to set a history size. It is handled automatically and set to 800 by default. We have no way of changing this unless we add a patch on top, which can potentially be upstreamed.
Try to upstream this patch.
Add `CLING_HISTSIZE` functionality with the newly added LLVM patch.
This reverts commit fc732c7.
Test Results 13 files 13 suites 3d 3h 37m 45s ⏱️ Results for commit 99a1261. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to decide what to do with CLING_HISTSIZE
. If we want to support it, the necessary changes should be upstreamed to LLVM first and then backported to our fork. Note that it would be a first and prevent building against a vanilla LLVM!
This was implemented to be able to set the history to 0 so that we do not get different pointers across gdb runs, iirc. |
From yesterday's discussion, it seems that this does not align with the idea of using a prebuilt vanilla LLVM. I'm tending towards deprecating Regardless, I think the ability to set a history size would be a nice feature for all the tools using it. So, I will try to upstream this anyways.
|
Disabling the history can probably be implemented differently, maybe that's enough. |
|
This Pull request:
CLING
. This moves the codebase closer to clang-repl and might help in future changes. This will help in removing this whole folder fromCLING
- https://github.com/root-project/cling/tree/master/lib/UserInterface/textinput, but this doesn't exist in theROOT
repository.ROOT
for complete removal of TextInput, working on it. Will not be as straightforward as this.CLING_HISTSIZE
). For now added this functionality in LLVM; Can later upstream or deprecate this functionality (clang-repl does not have this feature, AFAIK). But ROOT might be relying on this feature - need to look into it. Diff LLVM will fail due to this.clang-repl
later.Changes or fixes:
Checklist:
This PR fixes #