Discourse: discourse-math plugin returns 404 error
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- ruby
- Domain
- build-system
Research direction
Locate the nixpkgs definition for the Discourse math plugin and reproduce the failure with sandboxing enabled. Trace how the discourse_math_bundle gem obtains MathJax and KaTeX files, then verify that an enabled plugin renders math expressions without browser-console 404 errors.
Written by the indexing model from the issue text.
Description
Nixpkgs version
- Stable (26.05)
Describe the bug
The discourse-math plugin is currently non-functional due to missing mathjax and katex files. It seems that this may be due to the way nix sandboxes the build environment preventing the discourse_math_bundle gem from downloading the mathjax and katex files leading to a 404 error when it tries to use either to render the math expressions.
Steps to reproduce
- Enable discourse math plugin in the settings
- Put any math expression into a post or reply
- Check the browser developer console for the 404 error
Expected behaviour
The math expression evaluates and renders via mathjax or katex
Screenshots
Relevant log output
Additional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.6.141, NixOS, 26.05 (Yarara), 26.05pre-git - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.34.7 - nixpkgs:
/nix/store/w6n2k401dq77r3h2kb1gf14iqyrq3zgj-0pdi7nh83qszh1kd5gj2363if8d7m2jj-nixos-26.05-b51242d7d43689db2f3be91bd05d5b24fbb469c4
Notify maintainers
@leona-ya
@talyz
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
- I assert that I have read the automation/AI policy and that this issue report complies with it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
- Dominant language
- Nix
- Stars
- 26.2k
- Forks
- 20.1k
- Avg merge
- 9h 57m
- Merged PRs (30d)
- 517
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NixOS/nixpkgs
-
0.kind: build failure
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
0.kind: bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
0.kind: bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
0.kind: enhancement 9.needs: package (update)
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
0.kind: enhancement 9.needs: documentation
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
Needs Design Priority: Wishlist
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
elementary/flatpak-platform#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
objectionary/hone-maven-plugin#1060 ·
-
Update Vish to 1.1.5 Openpackage-update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
oSoWoSo/vOid_Community_repOsitory#144 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
time-manager-0.4.0 Openfailure: bounds
Difficulty 1/5 Under an hour Newbie friendliness 72/100
commercialhaskell/stackage#8122 ·