From: Dave Musicant <musicant@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Args out of range on Java include [8.3.2 (8.3.2-dist @ /Users/dmusican/.emacs.d/org-8.3.2/lisp/)]
Date: Tue, 5 Jan 2016 12:44:43 -0600 [thread overview]
Message-ID: <568C0F1B.4060908@gmail.com> (raw)
I've got an org-mode file with a single line in it:
#+INCLUDE: "Temp.java" src java
That file, in turn, is including a Java file with a single line in it:
import java.util.abcde.*;
When I try to export the org file to HTML, it results in an Args out of
range error. This error does not happen if the import statement is
simpler, such as
import java.util.*;
Worse yet, this error isn't consistent. If I fix the Java file (as
above), then go back to the org file and try to export again, it works;
after that, if I _then_ put the longer import back into the Temp.java,
the org file still exports correctly. After some inconclusive amount of
screwing around with it, exports will start failing again. But it seems
to reliably fail when Emacs and the org file are first opened.
Any thoughts? This is a real problem for me; I'm trying to include a
Java program into an org file, and it's choking on the import line.
Thanks!
--
Dave Musicant
Emacs : GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0, NS
apple-appkit-1348.17)
of 2015-08-26 on dmusican56252.mathcs.carleton.edu
Package: Org-mode version 8.3.2 (8.3.2-dist @
/Users/dmusican/.emacs.d/org-8.3.2/lisp/)
current state:
==============
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function '(lambda (name contents) contents)
org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
org-confirm-shell-link-function 'yes-or-no-p
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-startup-folded nil
org-support-shift-select t
org-latex-format-headline-function
'org-latex-format-headline-default-function
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(lambda (name contents) contents)
org-from-is-user-regexp "\\<dmusican\\>"
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '((lambda nil
(define-key org-mode-map (kbd "M-p") (quote
org-html-export-to-html)))
(lambda nil
(org-add-hook (quote change-major-mode-hook) (quote
org-show-block-all)
(quote append) (quote local))
)
(lambda nil
(org-add-hook (quote change-major-mode-hook)
(quote org-babel-show-result-all) (quote append)
(quote local))
)
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-archive-hook '(org-attach-archive-delete-maybe)
org-ascii-format-drawer-function '(lambda (name contents width) contents)
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-babel-tangle-lang-exts '(("java" . "java") ("emacs-lisp" . "el")
("elisp" . "el"))
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-html-format-headline-function
'org-html-format-headline-default-function
org-babel-load-languages '((java . t) (emacs-lisp . t))
org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
)
next reply other threads:[~2016-01-05 18:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-05 18:44 Dave Musicant [this message]
2016-01-05 22:35 ` Bug: Args out of range on Java include [8.3.2 (8.3.2-dist @ /Users/dmusican/.emacs.d/org-8.3.2/lisp/)] Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=568C0F1B.4060908@gmail.com \
--to=musicant@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).