-
-
Notifications
You must be signed in to change notification settings - Fork 549
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 inspection of interactive Cython code #13916
Comments
comment:1
Could it be that simply Cython is writing the wrong information into the doc?
But the file is at
or
(they coincide bit-wise). Note that even the ".pyx" information is wrong. |
comment:3
Actually there is a pyx file (I am in a new session now, hence, the names have changed):
The question is: Do we want to see the spyx file or the pyx file? Anyway, I think I'll manage to make sageinspect find that pyx file. |
comment:4
With the attached patch, the following doctest works.
The tests of sage/misc/sageinspect.py pass. Needs review! |
Author: Simon King |
comment:5
First, about your patch:
On the box where I patched paths, the source file looks like this:
while on another, unpatched, box (again, initial empty line is eaten by trac) it is:
|
comment:6
Replying to @SnarkBoojum:
Yes, you are right. I'll update the patch in a minute.
OK. That explains why the line number has changed, because the number of lines in front of the function definition has changed. And I suppose the change is indeed related with your patch from #12728, isn't it? The patch from here is self-contained, but one old test and the new test from here will change with #12728. Hence, I suggest to use this ticket as a new dependency for #12728, and you add a patch on #12728 that fixes the doctests. |
Attachment: trac13916_inspect_interactive_cython.patch.gz |
comment:7
The patch is updated, still needs review. |
comment:8
I found a problem in my own patch, so this trac ticket is independent from #12728. Simon, your patch looks nice, applies nice and compiles nice ; but since I'm going to get another round of rebuilding and full doctesting sage, I'll report what happens later (I'm not doing that on the arm box, so it shouldn't take two days :-P). |
comment:9
Replying to @SnarkBoojum:
Now two weeks are over. Did it work? |
comment:10
Since the coverage script complains, I'll try to add some new tests in sageinspect.py |
comment:11
PS: The error reported by the patchbot seems unrelated. |
comment:12
PPS: The coverage script reports nonsense. It says that the number of tests did not increase, but the number of functions did increase. But that's plain wrong: My patch does not introduce new functions, it only fixes existing functions. And it does add tests. So, I'll keep it like that, if you don't mind. |
comment:15
Didn't apply cleanly to 6.0+; updated; needs review again. |
Commit: |
Changed keywords from none to days57 |
Reviewer: Volker Braun |
comment:16
Looks good to me |
Changed branch from u/mmezzarobba/13916-inspect_interactive_cython to |
The following happens with sage-5.6.b2, at least in the debug version from #13864 (I could imagine that the new Cython version from #13896 could be related as well):
IIRC, it used to work. hence, I suppose some paths have changed.
CC: @robertwb
Component: misc
Keywords: days57
Author: Simon King
Branch/Commit:
69169ab
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/13916
The text was updated successfully, but these errors were encountered: