From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62508: 28.2; vhdl-mode ModelSim compile warnings aren't highlighted Date: Wed, 29 Mar 2023 14:04:41 +0300 Message-ID: <83mt3v7r92.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25820"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62508@debbugs.gnu.org To: Cyril Arnould , Friedrich Beckmann , Reto Zimmermann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 29 13:05:42 2023 Return-path: Envelope-to: geb-bug-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 1phTcc-0006Th-CY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Mar 2023 13:05:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phTc0-0001cQ-S4; Wed, 29 Mar 2023 07:05:04 -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 1phTby-0001c7-Q2 for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 07:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phTby-0000Nq-HS for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 07:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phTbx-0008Ce-Rh for bug-gnu-emacs@gnu.org; Wed, 29 Mar 2023 07:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2023 11:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62508 X-GNU-PR-Package: emacs Original-Received: via spool by 62508-submit@debbugs.gnu.org id=B62508.168008789031510 (code B ref 62508); Wed, 29 Mar 2023 11:05:01 +0000 Original-Received: (at 62508) by debbugs.gnu.org; 29 Mar 2023 11:04:50 +0000 Original-Received: from localhost ([127.0.0.1]:51386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phTbl-0008CA-IN for submit@debbugs.gnu.org; Wed, 29 Mar 2023 07:04:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phTbj-0008Bt-GM for 62508@debbugs.gnu.org; Wed, 29 Mar 2023 07:04:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phTba-0000MI-Uh; Wed, 29 Mar 2023 07:04:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fA6YAlGaLRaegYnCiHrUsJU+Q8gnlnOQZk9GN4RXRyU=; b=ErWQupRWHi+B EnQMGQdxQA60P60C9YfhU8MDBRq1NNxUlro8Q+UuKLL8Cg315xKXV06Kon9xIoF8jADzGtOEsXX39 LesaoFctYaogNQCKVuDD4bu61zWRwxXGMBJ33IhkrzWHxexWgwQ0KYn04bGcYvgm4Ie4sW3scNziL 8D2KvQhsFdp3GqE6x8y9a+kkb4/lITHLbEabpEJ7/MYEH1r1CYRzo3ncLH4rfKalQakMnRuS9A3bp Ja5tV2EjbwGi9/x6+HNlwKi7RrwghrRoP911nqNKTbIXJwlaOZD5q3rMyoyVCuiyZF5wXWx32/T5l 37zWZ4RQhzNtGMmpmzXeww==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phTbV-00046Z-Ra; Wed, 29 Mar 2023 07:04:35 -0400 In-Reply-To: (message from Cyril Arnould on Tue, 28 Mar 2023 19:43:40 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258838 Archived-At: > From: Cyril Arnould > Date: Tue, 28 Mar 2023 19:43:40 +0000 > > This bug is twofold. On one hand, the current configuration of the > ModelSim compiler is not able to parse and highlight the Warnings as > warnings when using vhdl-compile, they are listed as errors. With GHDL > on the other hand, the *compile* buffer differentiates between > warnings and errors when highlighting. I can't reproduce this at home > since I don't have a ModelSim license there, but you can see the effect > in a screenshot from the bugfix that introduced this: > > https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-10/msg01377.html > > I have tried looking into modifying the regexp but for the life of me I > couldn't figure out how compile.el differentiates between warnings and > errors. > > Now the second problem is that I believe the way bug#5768 was fixed is > actually not compatible with ModelSim, but with ModelSim-Intel (formerly > Altera). As the link above shows, the warnings are formatted as follows: > > ** Warning: [3] counter_rtl.vhd(18): (vcom-1246) Range 5 downto 6 is null. > > My ModelSim actually formats its Warnings differently, for example: > > ** Warning: (vcom-1246) counter_rtl.vhd(18): Range 5 downto 6 is null. > > You can look into the ModelSim documentation under the "Message Format" > Section. I am not 100% certain if the number in brackets could also > appear in my Installation but possibly the number is just optional. The > regexp could be modified to allow both, this would avoid introducing a > separate Modelsim-Intel compiler. > > I can verify any fixes at work. As I'm not an expert on vhdl, I CC people who might help us with this issue. Thanks.