From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: Re: jar files won't open in emacs 27.1 on debian 11.6 "bullseye" Date: Sun, 02 Apr 2023 17:03:20 +0200 Message-ID: <87edp2l41z.fsf@dod.no> References: <87o7o6lshs.fsf@dod.no> <83y1nawysz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36783"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 17:04:10 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pizFZ-0009KE-Bd for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 17:04:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pizEz-00019F-UZ; Sun, 02 Apr 2023 11:03:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pizEv-00018t-09 for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 11:03:30 -0400 Original-Received: from cadalora.bang.priv.no ([46.43.15.90]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pizEs-0006ZT-BC for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 11:03:28 -0400 Original-Received: from marquez (unknown [84.210.69.52]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id A8A9110057B for ; Sun, 2 Apr 2023 16:03:22 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dod.no; s=sb; t=1680447802; bh=mDyopMXZjJljmmonsltL43AR8hU6Nwzh/Q95iZDap5w=; h=From:To:Subject:References:Date:In-Reply-To:From; b=C+Bclw1LbWcA/pE78JChk9b/Ba7cZfXqnau/Y3wdFk4K5g5Ry7+HL/XP//1Hbo/xb hdMfZdKdo6o6/TYXO34pRRmlKzFjnC9o3fFKiFGiJ3QKC1Bup+c/gNhsXq7y+HTxp4 yee+odftGGwzMkjX85Yd8CuA8x4w6wg+LjVQPncA= In-Reply-To: <83y1nawysz.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Apr 2023 10:03:40 +0300") Received-SPF: none client-ip=46.43.15.90; envelope-from=sb@dod.no; helo=cadalora.bang.priv.no X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143194 Archived-At: >>>>> Eli Zaretskii : > I cannot reproduce this with a random .jar file I have here and with > Emacs 27.1. So I guess this is something specific to that particular > jar file. Indeed. I walked down into ~/.m2/repository/ and tried the first jar there, which happened to be antlr-2.7.7.jar and that opened fine. I've been doing this with jar files for years (decades, even, maybe...?), on multiple platforms (various GNU/linux distros and versions, mac OSX, various windows versions) and over many emacs versions. And I've never seen this behaviour before. Hm... seems to be a problem on everything I've build myself...? At least: everything I've recently built myself on this computer. FWIW I'm using java11 and maven-jar-plugin 3.2.0 (if that rings a bell for someone out there somewhere...?) >> Any idea of how to debug this? > Step with Edebug through arc-mode.el and see why it signals the error? > It is possible that the jar file you tried uses some extensions of the > ZIP format which were not yet supported in Emacs 27, so perhaps try > with a later version of Emacs. no luck with edebug so far. I first did (setq debug-on-error t) in a fresh emacs and got the following stack trace from attempting to open the javadoc file: https://gist.github.com/steinarb/234cf172c214b26b33ee92a4e5b5afd1 and found archive-zip-summarize which looks promising (and is in arc-mode.el) Then I opened a new fresh emacs and openet /usr/share/emacs/27.1/lisp/arc-mode.el.gz and but the cursor over archive-zip-summarize and did 'C-u C-M-x' Then I tried opening the javadoc.jar but, unfortunately it didn't stop in archive-zip-summarize Not sure what more to do to make the code stop in the debugger (I have skimmed the edebug docs to get this far). >> Does the zip support of emacs 27.1 come in the form of running unzip in >> a sub-process? Or does it use a linked in library? (libbz2...?) > Neither. Just visiting a zip file doesn't require any of that, at > least not by default (I have no idea whether Ubuntu made any changes > in the upstream sources or in site-wide customizations). Thanks for the info. FWIW From what you describe above, I doubt there are any modifications in ubuntu/debian on the lines I was asking about (but I haven't actually checked). Thanks! - Steinar