From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= Newsgroups: gmane.emacs.bugs Subject: bug#23053: 25.0.92; error in cc-mode when editing C# file with a generic class inheritance Date: Mon, 21 Mar 2016 13:45:56 +0100 Message-ID: <1458564356.2685887.555173674.7F6E345D@webmail.messagingengine.com> References: <1458336813.1207699.553441090.44208CA4@webmail.messagingengine.com> <87wpozbd0r.fsf@acer.localhost.com> <1458372574.1341144.553674538.3D65409A@webmail.messagingengine.com> <1458376039.1351011.553705922.10F4D27F@webmail.messagingengine.com> <20160321122641.GA3641@acm.fritz.box> Reply-To: jostein@kjonigsen.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1458564406 11822 80.91.229.3 (21 Mar 2016 12:46:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 12:46:46 +0000 (UTC) Cc: Ingo Lohmar , 23053@debbugs.gnu.org To: Alan Mackenzie , jostein@kjonigsen.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 13:46:34 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ahzEA-0004gF-5d for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 13:46:34 +0100 Original-Received: from localhost ([::1]:57556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahzE4-0002Wu-ME for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 08:46:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahzDl-0002CR-7m for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 08:46:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahzDk-0005a1-3x for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 08:46:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahzDe-0005ZJ-Pm; Mon, 21 Mar 2016 08:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahzDe-0003nL-GJ; Mon, 21 Mar 2016 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 21 Mar 2016 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23053 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 23053-submit@debbugs.gnu.org id=B23053.145856436114575 (code B ref 23053); Mon, 21 Mar 2016 12:46:02 +0000 Original-Received: (at 23053) by debbugs.gnu.org; 21 Mar 2016 12:46:01 +0000 Original-Received: from localhost ([127.0.0.1]:56350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahzDd-0003n1-Df for submit@debbugs.gnu.org; Mon, 21 Mar 2016 08:46:01 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:38837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahzDc-0003mu-Dh for 23053@debbugs.gnu.org; Mon, 21 Mar 2016 08:46:00 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0E78120DBF for <23053@debbugs.gnu.org>; Mon, 21 Mar 2016 08:45:57 -0400 (EDT) Original-Received: from betaweb1 ([10.202.2.10]) by compute3.internal (MEProxy); Mon, 21 Mar 2016 08:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= secure.kjonigsen.net; h=cc:content-transfer-encoding :content-type:date:from:in-reply-to:message-id:mime-version :references:reply-to:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=cOdE1wYJXVx240tmSgHs9qinxrc=; b=L9WXmgn5lNK3qIYAuRjExDJGSuui 7xgsiix3Mq9QxK8+gPBz/TnlRLCeiwyf4aVUbTyHAePRvMc/ChB5GGdq0h1+sEi1 jHhtWZAuxjAx3C2JLLWX16+H8AgVd5EsBWfsEhxIkxwiVaKVbCtgyGmZG2HVjYKT 7DWxgg+Ai+JEx1s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :reply-to:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=cOdE1w YJXVx240tmSgHs9qinxrc=; b=EXbQnxM+S9K3AEJUpAtudTgyrshNP0i+L35nvw ntmv6PEDDjj+zjkQhAfN6XnC0zS3JrOnk5E+wgQw9H8c7O/wdClHOHHpGXhV/FlL 1t4F1wa7Whczk+ncU4TDX+hYfq1GxRhbZOfpcpkfVvTQeb6XYIQD8Vo9pr8Kt4/5 mslUs= Original-Received: by betaweb1.nyi.internal (Postfix, from userid 99) id CB7AA75978F; Mon, 21 Mar 2016 08:45:56 -0400 (EDT) X-Sasl-Enc: QiY1kZ+J2l5qCJKpELwVnZXEnEku+ay4tVVmQjA1oC5O 1458564356 In-Reply-To: <20160321122641.GA3641@acm.fritz.box> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115225 Archived-At: On Mon, Mar 21, 2016, at 01:26 PM, Alan Mackenzie wrote: > If so, could you possibly give me details of the > version of the emacs-25 branch you saw it in, and any other details I'd > need to reproduce it. Thanks! I've been tracking Emacs git master. Currently I'm at this point: > commit 58862751bde2611d9ea99a33ecb5b0c13a7513b9 > Author: Glenn Morris > Date: Thu Mar 17 00:14:11 2016 -0700 After each "git pull", I've done a "make distclean && make". > Can we be absolutely clear here, please. Have you observed this bug in > Java Mode yourself? Yes. I've created a new file called test.java with the following contents: > package Test; >=20 > public class A extends B$ Pressing enter at this point will trigger a similar error, and the same will typing { following that enter. > I suspect the interface between CC Mode and csharp-mode. :-) >=20 > My working hypothesis is that the compiled csharp-mode.elc was compiled > on an earlier revision of the emacs-25 branch, hence didn't pick up a > newly introduced c-lang-defvar properly, thus leaving its value at nil. > This nil value is what triggered the error in > c-forward-<>-arglist-recur. That's a good theory and I decided to completely wiping csharp-mode and reevaluating it inside Emacs to verify that stale data is not the cause of the errors. I'm still getting "wrong argument: stringp, nil" everywhere when pressing enter interactively inside Emacs csharp-mode buffers. I therefore tried to look into the build-system to see what it reports. Byte-compiling csharp-mode triggers a warning which so far haven't been an issue for csharp-mode: > $ make csharp-mode.elc > ... > csharp-mode.el:1772:17:Warning: looking-back called with 1 argument, but > requires 2-3 Trying to run a "make test" of csharp-mode against git master, most of the tests breaks: > Test indentation-rules-should-be-as-specified-in-test-doc backtrace: > c-forward-label() > c-guess-basic-syntax() > c-indent-region(1 1390) > indent-region(1 1390) > (let* ((buffer (find-file "test-files/indentation-tests.cs")) (orig- > (lambda nil (let* ((buffer (find-file "test-files/indentation-tests. > ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc > ert-run-test([cl-struct-ert-test indentation-rules-should-be-as-spec > ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test a > ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20 > ert-run-tests-batch(nil) > ert-run-tests-batch-and-exit() > command-line-1(("-L" "." "-l" "csharp-mode-tests.el" "-f" "ert-run-t > command-line() > normal-top-level() > Test indentation-rules-should-be-as-specified-in-test-doc condition: > (wrong-type-argument stringp nil) > FAILED 15/15 indentation-rules-should-be-as-specified-in-test-doc I haven't looked into Saulius's C# file to reproduce this issue, so I can't say if that is why you cannot reproduce or not. Are the changes between between Emacs-25 and master so significant that they could the big differences between our observations? I find that hard to believe. Anyway, something somewhere is clearly broken, and the faster we can find out what, the better. If you need more input, more theories tested, or more help understanding any part of my setup, let me know. I'll try to provide all the info I can. --=20 Jostein Kj=F8nigsen jostein@kjonigsen.net / jostein@secure.kjonigsen.net