Bug 434024

Summary: Tab completion not working for sage
Product: [Applications] cantor Reporter: Antonio Rojas <arojas>
Component: sage-backendAssignee: Cantor Bugs <cantor-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: warquark
Priority: NOR    
Version First Reported In: 20.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Antonio Rojas 2021-03-05 18:24:04 UTC
SUMMARY
Using tab completion on a sage workseet only shows python completions, not sage ones

STEPS TO REPRODUCE
Type 'i'+TAB

ACTUAL RESULT
Only python completions pop up

EXPECTED RESULT
sage completions pop up (such as 'integrate')

SOFTWARE/OS VERSIONS
Linux/KDE Plasma
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 1 Antonio Rojas 2021-03-05 18:25:25 UTC
Using sagemath 9.2, ipython 7.19. Tested on both distro packages and self-compiled sage bundle.
Comment 2 Bug Janitor Service 2021-03-14 19:03:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/education/cantor/-/merge_requests/26
Comment 3 Antonio Rojas 2021-03-18 18:55:38 UTC
Git commit 27760736874f121758c3184150d1036df73d4473 by Antonio Rojas.
Committed on 18/03/2021 at 18:55.
Pushed by arojas into branch 'release/21.04'.

Fix tab completion in Sage

Get the completions from Sage itself, instead of relying on ipython internals.

M  +1    -1    src/backends/sage/DESIGN
M  +1    -1    src/backends/sage/sagebackend.cpp
M  +3    -7    src/backends/sage/sagecompletionobject.cpp

https://invent.kde.org/education/cantor/commit/27760736874f121758c3184150d1036df73d4473