Skip to content
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

Error loading document containing source code #49

Open
rhstanton opened this issue Jul 12, 2022 · 0 comments
Open

Error loading document containing source code #49

rhstanton opened this issue Jul 12, 2022 · 0 comments

Comments

@rhstanton
Copy link

Emacs generates an error when using xenops if I load the following LaTeX file:

\documentclass[12pt]{article}
\usepackage{minted}
\begin{document}
Here is a simple \LaTeX{} document
\begin{minted}[linenos,numbersep=5pt,gobble=2,frame=lines,framesep=2mm]{c}
  __declspec(dllexport) double RHSaddDLL(double x, double y)
  {
      return(x+y);
  }
\end{minted}
\end{document}

%%% Local Variables:
%%% mode: latex
%%% LaTeX-command: "latex  --synctex=1 -interaction=nonstopmode -shell-escape"
%%% TeX-master: t
%%% End:

Here is the relevant portion of the error dump. It ends by telling me to report a bug in org mode, which is odd as this isn't an org file!

Warning (org-element-cache): org-element--cache: Org parser error in slides/05-numeric.tex::47636. Resetting.
 The error was: (error "rx ‘**’ range error")
 Backtrace:
"  backtrace-to-string(nil)
  org-element-at-point()
  org-src-coderef-format((src-block (:language nil :parameters \"[linenos,numbersep=5pt,gobble=2,frame=lines,frames...\" :value \"\\n  __declspec(dllexport) double RHSaddDLL(double x...\")))
  org-babel-get-src-block-info(light (src-block (:language nil :parameters \"[linenos,numbersep=5pt,gobble=2,frame=lines,frames...\" :value \"\\n  __declspec(dllexport) double RHSaddDLL(double x...\")))
  xenops-minted-parse-at-point()
  funcall(xenops-minted-parse-at-point)
  xenops-util-first-result(funcall (xenops-math-parse-block-element-at-point xenops-math-parse-inline-element-at-point xenops-math-parse-table-at-point xenops-image-parse-at-point xenops-footnote-parse-at-point xenops-minted-parse-at-point xenops-src-parse-at-point))
  xenops-parse-any-element-at-point((xenops-math-parse-block-element-at-point xenops-math-parse-inline-element-at-point xenops-math-parse-table-at-point xenops-image-parse-at-point xenops-footnote-parse-at-point xenops-minted-parse-at-point xenops-src-parse-at-point))
  xenops-apply-parse-next-element(63196 (xenops-math-parse-block-element-at-point xenops-math-parse-inline-element-at-point xenops-math-parse-table-at-point xenops-image-parse-at-point xenops-footnote-parse-at-point xenops-minted-parse-at-point xenops-src-parse-at-point))
  xenops-apply-handlers-over-region((xenops-math-render xenops-image-render) 1 63196 nil nil)
  xenops-apply-operations((render))
  xenops-render()
  xenops-render-if-cached()
  xenops-mode()
  run-hooks(change-major-mode-after-body-hook text-mode-hook TeX-mode-hook LaTeX-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook TeX-mode-hook LaTeX-mode-hook))
  run-mode-hooks(text-mode-hook TeX-mode-hook LaTeX-mode-hook)
  TeX-latex-mode()
  apply(TeX-latex-mode nil)
  latex-mode()
  set-auto-mode-0(latex-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil nil)
  find-file-noselect-1(#<buffer slides/05-numeric.tex> \"~/teaching/MFE230I/slides/05-numeric.tex\" t nil \"~/teaching/MFE230I/slides/05-numeric.tex\" (4581010 16777225))
  find-file-noselect(\"05-numeric.tex\" t)
  latexenc-find-file-coding-system((insert-file-contents \"/Users/stanton/teaching/MFE230I/slides/05-numeric....\" t nil nil nil))
  insert-file-contents(\"~/teaching/MFE230I/slides/05-numeric.tex\" t)
  find-file-noselect-1(#<buffer 05-numeric.tex> \"~/teaching/MFE230I/slides/05-numeric.tex\" nil nil \"~/teaching/MFE230I/slides/05-numeric.tex\" (4581010 16777225))
  find-file-noselect(\"/Users/stanton/teaching/MFE230I/slides/05-numeric....\" nil nil nil)
  find-file(\"/Users/stanton/teaching/MFE230I/slides/05-numeric....\")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant