From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: john muhl via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66183: elixir-ts-mode test failure Date: Sun, 24 Sep 2023 11:53:19 -0500 Message-ID: <87fs33wiki.fsf@pub.pink> Reply-To: john muhl Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30175"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yuan Fu To: 66183@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 24 20:09:08 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 1qkTXY-0007ee-LJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Sep 2023 20:09:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qkTXJ-0003e0-Dn; Sun, 24 Sep 2023 14:08:53 -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 1qkTXG-0003dn-Rx for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2023 14:08:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qkTXG-00057m-KB for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2023 14:08:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qkTXS-0003Pm-Fn for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2023 14:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Sep 2023 18:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66183 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169557891113081 (code B ref -1); Sun, 24 Sep 2023 18:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Sep 2023 18:08:31 +0000 Original-Received: from localhost ([127.0.0.1]:43587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkTWx-0003Ov-3p for submit@debbugs.gnu.org; Sun, 24 Sep 2023 14:08:31 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:38312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkTWs-0003Oa-7A for submit@debbugs.gnu.org; Sun, 24 Sep 2023 14:08:29 -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 1qkTWa-0003ck-OQ for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2023 14:08:08 -0400 Original-Received: from out-203.mta1.migadu.com ([95.215.58.203]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qkTWY-00053D-IA for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2023 14:08:08 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1695578881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CjVl+ltkNdfM5TMthhP8z6O47udga3yS5TNYI6gI5CY=; b=a5hi7Telvv99C+RWOixtXnQhNGpjSKTO7FmoxdAAIBfqIzngZu3xZ2l2XAQ5NvhUjy167d 5yNfJcVRBRxtBg07RzLJGYkD8S1JOlBumC6inYcGKNWOiXyp94eENfyNw7I83lKT4mdCLK MGsoNPyv8UCbX5AzbcLqywEfl5yCsoU= X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=95.215.58.203; envelope-from=jm@pub.pink; helo=out-203.mta1.migadu.com 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_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:271267 Archived-At: The change in 5cba5ee8905 caused an elixir test to start failing. The white space at the start of the test is now in a heex range so pressing tab there matches a heex rule instead of the elixir one. Moving the dummy range to the end fixes the test. --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -722,7 +722,7 @@ treesit-update-ranges ;; language, set it's range to a dummy (1 ;; . 1), otherwise it would be set to the ;; whole buffer, which is not what we want. - `((,(point-min) . ,(point-min)))))))))))) + `((,(point-max) . ,(point-max)))))))))))) Running 1 tests (2023-09-24 11:52:17-0500, selector =E2=80=98t=E2=80=99) Test elixir-ts-mode-test-indentation backtrace: signal(ert-test-failed (("Mismatch in test \"Basic modules\", file / ert-fail(("Mismatch in test \"Basic modules\", file /home/jm/src/ema ert-test--erts-test(((dummy . t) (code)) "/home/jm/src/emacs/test/li ert-test-erts-file("/home/jm/src/emacs/test/lisp/progmodes/elixir-ts (closure (t) nil (let ((value-4 (gensym "ert-form-evaluation-aborted ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name elixir-ts-mode-test-indentation :docu ert-run-or-rerun-test(#s(ert--stats :selector t :tests [#s(ert-test=20 ert-run-tests(t #f(compiled-function (event-type &rest event-args) # ert-run-tests-batch(nil) ert-run-tests-batch-and-exit() command-line-1(("-l" "ert" "-l" "/home/jm/src/emacs/lisp/progmodes/e command-line() normal-top-level() Test elixir-ts-mode-test-indentation condition: (ert-test-failed ("Mismatch in test \"Basic modules\", file /home/jm/src/emacs/test/lis= p/progmodes/elixir-ts-mode-resources/indent.erts" #( " defmodule Foobar do\n def bar() do\n \"one\"\n end\n end\n" 0 65 (fontified nil)) "defmodule Foobar do\n def bar() do\n \"one\"\n end\nend\n")) FAILED 1/1 elixir-ts-mode-test-indentation (0.053512 sec) at ../../src= /emacs/test/lisp/progmodes/elixir-ts-mode-tests.el:26 Ran 1 tests, 0 results as expected, 1 unexpected (2023-09-24 11:52:17-0500,= 0.118489 sec) 1 unexpected results: FAILED elixir-ts-mode-test-indentation