[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: Args out of range on Java include [8.3.2 (8.3.2-dist @ /Users/d

From: Dave Musicant
Subject: [O] 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
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

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.


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:
org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe
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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]