Bug 434024 - Tab completion not working for sage
Summary: Tab completion not working for sage
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: sage-backend (show other bugs)
Version: 20.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Cantor Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-05 18:24 UTC by Antonio Rojas
Modified: 2021-03-18 18:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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