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
Bug in handling attached pyx-files #4336
Comments
comment:1
Added RobertWB to the CC since he worked on the Cython recompilation patch. Simon: Are you sure you edited the right cython.py - there are several copies in the tree. Cheers, Michael |
comment:2
Dear Michael, Replying to @sagetrac-mabshoff:
I chose local/lib/python2.5/site-packages/sage/misc/cython.py Which should I take instead? |
comment:3
Replying to @simon-king-jena:
Take the one in $SAGE_ROOT/devel/sage/.. Cheers, Michael |
comment:4
Dear Michael, dear Robert, Replying to @sagetrac-mabshoff:
Did already. It works, the traceback disappears. Patch'll follow! Cheers, |
Attachment: attach_bugfix.patch.gz Fixes a bug that occurs when an attached .pyx file is changed |
comment:6
Simon's patch is correct. This was actually broken by the patch in #4238. Cheers, Michael |
comment:7
Merged in Sage 3.2.alpha1 |
I attached a pyx-file:
Then I changed the file on the disk, and pressed the
Enter
key in Sage. This should result in a recompilation off5.pyx
, but instead I got this traceback:Afterwards, leaving Sage was impossible using
quit
-- I got the same traceback again and had to quit withCtrl-D
.I think the problem is in lines 299-311 of
cython.py
, which isIf I'm not mistaken, there is a wrong indentation, and it should be
Problem 1: I have no idea how I can force Sage to use the modified
cython.py
, hence I can not test my changes.Problem 2:
hg_sage.commit()
did not work, since it claimed that nothing was changed (althoughcython.py
did change). So, no patch.Can you give me a solution to Problems 1 and 2? And does my suggested solution works?
Cheers
Simon
CC: @robertwb
Component: misc
Keywords: attachments
Issue created by migration from https://trac.sagemath.org/ticket/4336
The text was updated successfully, but these errors were encountered: