From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Saulius =?UTF-8?Q?Menkevi=C4=8Dius?= 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 23:51:25 +0200 Message-ID: References: <20160320211657.GD3603@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1458597149 13761 80.91.229.3 (21 Mar 2016 21:52:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 21:52:29 +0000 (UTC) Cc: 23053@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 22:52:16 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 1ai7kF-0007FD-6z for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 22:52:15 +0100 Original-Received: from localhost ([::1]:60678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai7kE-0000MT-No for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 17:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai7k7-0000M5-C1 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 17:52:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai7k2-0002cr-QZ for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 17:52:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60341) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai7k2-0002cn-MR; Mon, 21 Mar 2016 17:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ai7k2-0006yV-EV; Mon, 21 Mar 2016 17:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Saulius =?UTF-8?Q?Menkevi=C4=8Dius?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 21 Mar 2016 21:52: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.145859709526776 (code B ref 23053); Mon, 21 Mar 2016 21:52:02 +0000 Original-Received: (at 23053) by debbugs.gnu.org; 21 Mar 2016 21:51:35 +0000 Original-Received: from localhost ([127.0.0.1]:57468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai7jb-0006xn-F3 for submit@debbugs.gnu.org; Mon, 21 Mar 2016 17:51:35 -0400 Original-Received: from mail-wm0-f43.google.com ([74.125.82.43]:37656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai7ja-0006xV-1w for 23053@debbugs.gnu.org; Mon, 21 Mar 2016 17:51:34 -0400 Original-Received: by mail-wm0-f43.google.com with SMTP id p65so139175732wmp.0 for <23053@debbugs.gnu.org>; Mon, 21 Mar 2016 14:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=pngU3s/9LC3i8LSx+tn3irb6ugGPSJHPYYaujwZNYP4=; b=uHyUZT1cLJmPQPk+i2XsaGYbVaGwSFXlAO6Ij08tWkW7KiLceE1wvojpgsFm4rVMMW 4fvoMMJGinnpR4g/DVbS/KZtgzj2qQ9SnhvQ/lIqT1aiYeDxfV+aVZVz+bBo1pn8MGgl Rz078Wwhjf/hLWsy/18b3yus8/yjUe9s3fbnNZCZ01huqxzETxzFEM7GaxlBxJmy1H3R /vSNVb7090FiY5R0tloCIdpHzdj85dri04Zw3KDD4xzxPBOtTsDn1WFD3BLxgtXqOHE8 w5mssIf1DuJ1rZ3u80/48sOi4xISQuuCnVdzkwRjucxBet6AcpZXX/exheiaFecj7993 BksA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=pngU3s/9LC3i8LSx+tn3irb6ugGPSJHPYYaujwZNYP4=; b=M67ENCvz6ZPPg/q+7ugOp8eXVm1WNtg1f8TyF5uzinCs5EZOwrYhMUHhkTDVjBl8Aj EZLCpTTyF2ZsA/kYlPmGqjB2sEN1iBMJeAaMlLiphtBVrlpxmWOZMl9G8PGkmeH3AmBG 7pF74097m6hz9SBeXAgwCzt27CSGPe7UGQHz6g2YOWqJDZUE5AfpQkQUdgQAd59hzbls ah/boDJrNGFCyK5sCQdGr03Gzt9gjkMeX2pefQ23/sbzIoxzHrvOooNGcuydw5PMl4+b iS7fVXgz0jZGwj6r/JspLcRERvX4mC2xs6fgnK21c8fxGAC3RMSdrCqgaH8cY7I69UKp 1tFA== X-Gm-Message-State: AD7BkJIFAUU4Xc/wFQK5Vpm1xPdUmxri+bdGc+jUyV9jWFV/38Ci9kU9gUi8ivd3J3/eEQ== X-Received: by 10.194.83.101 with SMTP id p5mr32812251wjy.141.1458597088333; Mon, 21 Mar 2016 14:51:28 -0700 (PDT) Original-Received: from mbp.local ([78.63.255.2]) by smtp.gmail.com with ESMTPSA id n66sm14378006wmg.20.2016.03.21.14.51.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Mar 2016 14:51:26 -0700 (PDT) User-agent: mu4e 0.9.16; emacs 25.0.92.5 In-reply-to: <20160320211657.GD3603@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:115281 Archived-At: Alan Mackenzie writes: > Hello, Saulius. > > On Sat, Mar 19, 2016 at 04:15:53PM +0200, Saulius Menkevičius wrote: > >> Hi, > >> Not sure why I did not receive and email directly from debbugs.gnu.org >> (maybe there is some delay in mail transfer mechanism on the way). > > I answered your mail directly, with a copy to debbugs.gnu.org. But > things can go wrong with email. > >> > Thanks for such an informative bug report. Could you possibly tell me >> > what major mode you're using (presumably some C# Mode) and where I can >> > get a copy of it from, please. That will enable me to reproduce the >> > problem. > >> The mode in question is csharp-mode, from MELPA: > >> csharp-mode is a dependency package. > >> Status: Installed in ‘csharp-mode-20160217.1211/’ (unsigned). >> Version: 20160217.1211 >> Summary: C# mode derived mode >> Homepage: https://github.com/josteink/csharp-mode >> Keywords: c# languages oop mode >> Other versions: 20160217.1211 (melpa-stable), 0.8.12 (marmelade). > > OK, I've got it, thanks. In particular, the 0.8.12 version from MELPA. > > Next question: have you actually compiled it with the emacs-25 repository > code? What makes me think you might not have, is that there are lots of > > (looking-back ) > > instances in the code, which no longer compile. (They need to have a nil > inserted after , giving (looking-back nil).) As soon as > I made these edits, then recompiled csharp-mode.el inside the emacs-25 > repo version, the code ran just fine. Actually, I think I had manually > to load cc-langs.elc to get it to compile properly; I think the following > line is missing from near the top of csharp-mode.el: > > (eval-when-compile (require 'cc-langs)) > > Explanation for the bug I saw: a new "language variable", > c-<>-notable-chars-re, had been defined in CC Mode, but not compiled into > the csharp-mode part. That left it's value at nil, rather than the > string it should be. This nil then caused the error. > > But it could be I'm looking at totally the wrong problem. It worked for me, actually. Removing csharp-mode and then reinstalling via package manager fixed the issue for me. > >> Not sure if you've checked the tracked for this issue, but Jostein >> Kjønigsen secure.kjonigsen.net> wrote: > >> I've run this test-case against the "regular" Windows build 24.5.1, >> using latest csharp-mode package and it runs fine. Trying latest Emacs >> from git master on Ubuntu I can reproduce this error systematically >> using the exact same version of csharp-mode. > > Exact same source code, or exact same binary? The source code will need > recompiling for the emacs-25 repo. csharp-mode.elc compiled for an earlier > version will definitely produce this error on emacs-25. > >> So this is can be replicated with bare emacs-25 from git + csharp-mode from >> MELPA. Also someone wrote that the same thing happens with Java mode too >> where the code being edited uses generics (as C# and Java generics syntax is >> very similar). > > The same thing happening on Java would surprise me. That would imply a > different problem. I couldn't replicate the Java issue myself.. > > So, to sum up: please make sure the compiled version of csharp-mode > you're using has been compiled on the Emacs you're using it on. Thanks! > >> > > In GNU Emacs 25.0.92.3 (x86_64-apple-darwin15.3.0, NS appkit-1404.34 Version 10.11.3 (Build 15D21)) >> > > of 2016-03-17 built on mbp.local >> > > Repository revision: 9ab03f27fad7b1ae68dda7a2effd075658dcf184 >> > > Windowing system distributor 'Apple', version 10.3.1404 >> > > Configured using: >> > > 'configure --with-gnutls --with-ns' > >> > > Configured features: >> > > JPEG DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS > >> > > Important settings: >> > > value of $LANG: de_LT >> > > locale-coding-system: utf-8 > >> > > Major mode: mu4e-headers > >> > ??? > >> Oh, it was my first time using `report-emacs-bug', -- I invoked >> it from my mail client buffer instead of from the csharp-mode that has >> issue itself. > > No, by "???" I just meant "mu4e-headers is something I'm not familiar > with.". > >> Thanks! > >> -- >> Saulius Menkevičius (saulius.menkevicius@gmail.com) So the issue is resolved for me, reinstalling csharp-mode fixed it. Not sure it works for Jostein. -- Saulius Menkevičius (saulius.menkevicius@gmail.com)