-
-
Notifications
You must be signed in to change notification settings - Fork 622
Remove symlink local/share/mathjax/mathjax #26152
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
Comments
comment:1
This is already fixed--it does not get created anymore. The question is whether or not to bother putting in something to remove it if it exists. Personally I don't think it's a blocker because it can easily just be removed, and would only be a problem in the case of some incremental builds that wound up with it at some point. |
This comment has been minimized.
This comment has been minimized.
Author: Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
comment:4
Replying to @embray:
I also assumed that also but we are wrong! The symlink does get created when sagenb is rebuilt (this may also be a bug in the New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
comment:6
I created #26153 for the |
This comment has been minimized.
This comment has been minimized.
comment:9
Replying to @jdemeyer:
I am unable to recreate the symlink. Can you do this reliably? To test so far, I have created the symlink by hand, and then when I ran |
comment:10
Replying to @jhpalmieri:
|
comment:11
Okay, that does it. I don't know why the various combinations of
is enough for
That implied to me that the manifest was being ignored, but I guess that's not the case. Are these manifest files and their roles documented anywhere? |
comment:12
It seems to me that the solution here is temporary: it will fix the issue for anyone who has the link right now, but as you point out, if sagenb is reinstalled, the link may come back. Will #26153 fix the problem permanently? Is there a way to force mathjax to be reinstalled after sagenb (even though mathjax is a dependency for sagenb), to ensure that any bad links are removed? |
comment:13
Replying to @jhpalmieri:
I agree that this may be confusing. The answer is that |
comment:14
Now that running |
comment:15
Replying to @jhpalmieri:
This is only a problem if you're doing things that you are not supposed to do, like removing the package installation record (the one in The issue caused by symlinks in this case is somewhat unique to symlinks, and the existing package installation code not handling existing symlinks properly; that's what #26153 is addressing. |
comment:16
Replying to @embray:
I agree partially. We should be mostly assuming a consistent state, but I can imagine some realistic scenarios where the information in We shouldn't worry about it too much but we also shouldn't ignore it either. |
comment:17
Maybe it would be better, in that case, if the file manifest were written first. Currently it is only written after file installation is complete. If it were written first then it would represent, at least, what is supposed to be in The only problem with that is that the manifest is written to the same file that indicates that installation succeeded. Maybe it should be a separate file; I don't know. |
comment:18
Replying to @embray:
Maybe I'm misunderstanding, but you could write the manifest in a temporary location (and use it there for uninstallation) and then install it after file installation is complete. |
Reviewer: John Palmieri |
comment:19
I'm willing to give this a positive review as a stopgap measure. I hope the real issue with symlinks can be addressed at #26153. |
Changed branch from u/jdemeyer/remove_symlink_local_share_mathjax_mathjax to |
comment:21
Replying to @jhpalmieri:
I thought I posted it here but maybe forgot. But yes, I arrived at the same conclusion independently, so that's probably the obvious thing to do. Write it first to a temp file, then move it to its proper location once installation completes successfully. The only trick is that those "temp" files still need to be written some place that the uninstaller can find it. Maybe it would be the same file by with a |
Changed commit from |
comment:22
Could anyone with working MathJax in Jupyter Sage notebooks post their setup? After this was fixed, I can't get it to work any more... |
comment:23
What do you mean by "setup"? I don't think I've done anything special, and math displays fine for me in Sage's Jupyter notebook. So I'm happy to provide information, but what are you looking for? |
comment:24
It was possible to set all the display to MathJax, no?
in a cell, and then it seems to use MathJax to show stuff in it. |
comment:25
(a) The legacy Sage notebook had an option to typeset all output, in which case it would use MathJax by default. Could that be what you're thinking of? I don't know of such an option for the Jupyter notebook, so I can't answer that part of your question. (b) If you're actually missing a feature, I don't think it would be due to this ticket. (Or if it was, then the feature was relying on seriously buggy behavior, and I think that is unlikely.) In particular, MathJax does work with the Jupyter notebook, for instance if I do |
comment:26
Yeah all this ticket did was force reinstallation of the mathjax spkg for some people. |
comment:27
This problem has returned for me. As part of Sage's installation (part of some package, I'm not sure which one, or maybe a level up from that), should we check whether this link exists, and if so, delete it? |
comment:28
See #26612 for a proposed solution (although I still don't know what is causing the problem). |
There is a symlink
local/share/mathjax/mathjax
pointing tolocal/share/mathjax
. Presumably, this was created by old sagenb versions.This is creating trouble for the Sage documentation (see also #25111).
The bug that the symlink is created is fixed in #24646 (but not completely, see #26153). But the symlink should be removed if it already exists.
CC: @jhpalmieri @embray
Component: build
Author: Jeroen Demeyer
Branch:
b9eb92c
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/26152
The text was updated successfully, but these errors were encountered: