WW LaTeX images in showing up in HTML in different places
Noticed something unusual while reviewing PR #2647, which is I suspect is unrelated.
Sample chapter, make file for representations and then HTML, view HTML output, Checkpoint 1.8.3 about roots of a polynomial, Activate. Image is now a purple rectangle with lengths on each side, which I think beliongs to a different problem.
Shot in the dark: internal ids on WW are now a bit off due to authored PG? Just a guess. But I'd start by checking identifiers and filenames and so on.
If the bad image only appears after activating the exercise, but the text of the exercise is what it should be, then it's not about pretext internal IDs. Rather, I'd think an image might be cached badly in the server. I'll look into it.
I deleted cached images from webwork-ptx.aimath.org, and now I don't see the issue happening. (I did see it before I cleared those images.) So there is something still here for me to understand better. Inserting an exercise should not lead to the wrong cached image being called up in some later problem.
I deleted cached images from webwork-ptx.aimath.org, and now I don't see the issue happening.
Oh, good. I like that explanation. ;-)
Caching is evil. ;-)
Thanks for working through this one.
@Tanaquil18, I think this might be related to the issue we are seeing with the image for AC-Companion
Ooh, this seems likely.
If I change the webwork server, and regenerate webwork, I still see the same old image in the static, but the image after activating changes and is correct. I even deleted the image in question from the generated assets, and the new (right) one shows up there, but the static still uses the wrong image. I think maybe you told me before that when I type generate, the cli is still using some cached things, right? I forget what you told me to type to actually force regeneration though!
But if I go back to the same webwork server (webwork.runestone.academy), the wrong image reappears in generated assets and after activation. I tried changing the variable name of the graph in the .pg file, and that seems not to have made any difference.
Clearing my cache did fix the static problem. sheepish grin
But it still is the case that when I keep the source exactly the same and swap webwork servers, I get different images. The one image (incorrect for this webwork problem) appears to be cached on webwork.runestone.academy even though it came from a completely different project, different webwork problem also written in source, that happened to use the same webwork server. Swapping to a fresh webwork server gives the correct image. Swapping back gives the wrong image again.
WW images do get cached on a WW server. @Alex-Jordan should be able to help.