From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: 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/)] Date: Tue, 05 Jan 2016 23:35:47 +0100 Message-ID: <87y4c37iyk.fsf@nicolasgoaziou.fr> References: <568C0F1B.4060908@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45412) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGaAt-0005W4-I5 for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:33:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGaAq-0000TC-7d for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:33:55 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:34797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGaAq-0000T5-1n for emacs-orgmode@gnu.org; Tue, 05 Jan 2016 17:33:52 -0500 In-Reply-To: <568C0F1B.4060908@gmail.com> (Dave Musicant's message of "Tue, 5 Jan 2016 12:44:43 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dave Musicant Cc: emacs-orgmode@gnu.org Hello, Dave Musicant 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