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
ZEPPELIN-141: Show only the Interpreters suggestions. Move the 'local… #181
Conversation
Tried this branch. but can not see completion list popup in my browser (chrome) when i press |
@Leemoonsoo thanks for reviewing this. Not seeing the completions for the current Spark completion implementation was expected (due to ZEPPELIN-204 ). My solution though was far too restrictive because it use to exclude the default ACE completers leaving in only the Interpreter completers. Although this seemed to work for my PSQL and OQL completers (not committed yet) it was affecting all other interpreters that have not implemented completers.
Above improvements are committed and waiting to be reviewed :) |
@tzolov Thanks for the update and good explanation. |
For 2, instead of getCompletions, should we call setParagraphMode when the editor is dirty? |
This way I think the problem with https://issues.apache.org/jira/browse/ZEPPELIN-188 will be fixed. |
I think we need to make that extensible from the interpreters, that way it could support other modes like Python. |
@felixcheung, thanks for the suggestion. i've thought of ZEPPELIN-188 as well. Indeed the dirty page event is a good trigger but i am worried of the performance impact. Perhaps it is neglectable, also we can improve the set logic to SET-ONLY-IF-DIFFERENT. But let us first merge the current fix. This will resolve ZEPPELIN-141 and fix the broken autocompletion. Then we can generalize the solution (the way you have suggested) in the context of ZEPPELIN-188. What do you think? I agree about the extensible interpreters. IMHO this will require extending the Interpreter interface, may be extend the websocket protocol with an additional command and figuring out how to enable the ACE features in the front-end. For example now only few ACE modes are defined in the bower.json. If you need more (like SH or PYTHON for example) one have to add them to bower.json and re-build. Maybe we can (pre)enable large set of the ACE modes upfront. |
…' suggestions to the bottom of the list
…rs after the Interpter one
Agreed, 2 follow up PR/JIRAs |
FYI: created https://issues.apache.org/jira/browse/ZEPPELIN-214 |
thanks @felixcheung |
…' suggestions to the bottom of the list Author: tzolov <christian.tzolov@gmail.com> Closes apache#181 from tzolov/ZEPPELIN-141 and squashes the following commits: a7202a7 [tzolov] ZEPPELIN-141: resolve ACE auto-completion pop-up menu wrong z-index 78117e6 [tzolov] ZEPPELIN-141: (Re)set the correct ACE editor mode on auto-completion event (Ctrl+.) f9ff609 [tzolov] ZEPPELIN-141: Add the default langToos (keyWord,snippet,text)Completers after the Interpter one 114756c [tzolov] ZEPPELIN-141: Show only the Interpreters suggestions. Move the 'local' suggestions to the bottom of the list (cherry picked from commit cf9541f) Signed-off-by: Lee moon soo <moon@apache.org>
…' suggestions to the bottom of the list