emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Args out of range on Java include [8.3.2 (8.3.2-dist @ /Users/dmusican/.emacs.d/org-8.3.2/lisp/)]
@ 2016-01-05 18:44 Dave Musicant
  2016-01-05 22:35 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Musicant @ 2016-01-05 18:44 UTC (permalink / raw)
  To: emacs-orgmode

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)
  )

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: Args out of range on Java include [8.3.2 (8.3.2-dist @ /Users/dmusican/.emacs.d/org-8.3.2/lisp/)]
  2016-01-05 18:44 Bug: Args out of range on Java include [8.3.2 (8.3.2-dist @ /Users/dmusican/.emacs.d/org-8.3.2/lisp/)] Dave Musicant
@ 2016-01-05 22:35 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-01-05 22:35 UTC (permalink / raw)
  To: Dave Musicant; +Cc: emacs-orgmode

Hello,

Dave Musicant <musicant@gmail.com> writes:

> 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.

Could you try development version and try again? If that fails, could
you provide a backtrace of the error ?

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-05 22:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05 18:44 Bug: Args out of range on Java include [8.3.2 (8.3.2-dist @ /Users/dmusican/.emacs.d/org-8.3.2/lisp/)] Dave Musicant
2016-01-05 22:35 ` Nicolas Goaziou

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).