From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sskostyaev@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#61006: 29.0.60; Wrong indentation in go-ts-mode Date: Sun, 22 Jan 2023 17:00:09 +0700 Message-ID: <4e1f92dc54d94cf4860490c643b5fd565deb0e1a.camel@gmail.com> 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="35553"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.46.3 To: 61006@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 22 14:40:22 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 1pJaa3-00098L-QF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Jan 2023 14:40:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJaZp-0006Bp-J7; Sun, 22 Jan 2023 08:40:05 -0500 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 1pJaZn-0006Bc-Bk for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 08:40:03 -0500 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 1pJaZm-0000ty-5p for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 08:40:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pJaZm-0008K1-1u for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 08:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: sskostyaev@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Jan 2023 13:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61006 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.167439478331952 (code B ref -1); Sun, 22 Jan 2023 13:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jan 2023 13:39:43 +0000 Original-Received: from localhost ([127.0.0.1]:50935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJaZS-0008JF-Mz for submit@debbugs.gnu.org; Sun, 22 Jan 2023 08:39:43 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:41190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pJX9Q-0006RP-13 for submit@debbugs.gnu.org; Sun, 22 Jan 2023 05:00:36 -0500 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 1pJX97-0001ZK-OM for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 05:00:22 -0500 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJX95-0005HS-R2 for bug-gnu-emacs@gnu.org; Sun, 22 Jan 2023 05:00:17 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id y9so6475910lji.2 for ; Sun, 22 Jan 2023 02:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=BImycE/6rrj+BBa90K36wRiKqNwFJK0Ge4xmAQ95tGg=; b=om0jha6xhvrAEstIOZLgwjJacGnimQ8cPTJ/W9oIiJsYuydEjlMSgpj03jiyOlY7up JHiT1Qy67dG7kB0z5XHJHxvBWJW8/TrN9VlevN4qEqmReIBylwMKoWy2XpaIpCimjnYz GqgKeTsREydjqi6qFSt8oJ+UuHny8fvxDgoqfMgyumoxCzbyLXHr9XtUKjHsx9pfwEx2 hcNMM686jqymRRmHogudfCFMQJQPfo3T5zUx35//M+hAIobLf3+Gy6NEjDTb9bk0uWWQ 2iFSCaAGXjxGlPz8IMBux1pDIclGscnspMGTjJm6YYQ0sqWyh+w8hgyqS5CHrUj5qKDL k6LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:date:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BImycE/6rrj+BBa90K36wRiKqNwFJK0Ge4xmAQ95tGg=; b=spmH79jjb6UzKFBDee7GAr7A1/VGjCk/yjkDzj+vResJZJrDN1gf4xpSvpRGfzgaWx oJrAZ2D9SLWt/tMTZXile8p+P0gcRUb/euuTx7phHv+VkaqRCOlQZ8x1ZKf6POE7OlkH x6Le/SPsAguZqoBK/MUPZdEk2nUPr+ygGLHFTwGdtCkosbOGx/vIdJtKfBEyWuzl7Li3 YCNIS1UrQSehVpQtF5RSQvocwNlNO1pn5DgX0Quj1dhsgkkNEK8KRiuQI+BStOOP5CRH bXF7GWzH8wqo3KyJrjwOVFFSYfpQTpWV8xxZJJOyqeCuFxxc5k45EyK+9rsCxyxZ7uCj /39A== X-Gm-Message-State: AFqh2kqaEyEZq8dk2Tdb+MgtUtfbU7+c3JBWVqjAqBUxaZjLtwTyvEFo AohwHCnhNEj0UyNCG6Pa9Z1cCFuRx2dtCg== X-Google-Smtp-Source: AMrXdXvM5NoskG7GDX2FSOoWyF4QfpGLsSPBk3/eOvmp7LLdpVOvOGavjmw/AOkaae4kLsvsSNUU9g== X-Received: by 2002:a2e:9b14:0:b0:28b:c89b:956c with SMTP id u20-20020a2e9b14000000b0028bc89b956cmr1885132lji.40.1674381611255; Sun, 22 Jan 2023 02:00:11 -0800 (PST) Original-Received: from [192.168.0.14] ([90.189.160.165]) by smtp.gmail.com with ESMTPSA id a27-20020a2ebe9b000000b0028bac2c334esm1270822ljr.25.2023.01.22.02.00.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Jan 2023 02:00:10 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=sskostyaev@gmail.com; helo=mail-lj1-x234.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 22 Jan 2023 08:39:41 -0500 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:253938 Archived-At: Hi. Thank you all for great work. In go-ts-mode indentation breaks in function or method definition if arguments placed on separate lines like this: ``` func transform( s string, ) string { ``` This code should be indented like this: ``` func transform( s string, ) string { ``` Also `go-ts-mode-indent-offset' should be 8 by default. In go world there is gofmt which is a real standart for code indentation. It would be great if emacs will provide the same indentation out of the box. There is also other issue - sometimes go-ts-mode syntax highliting breaks when I actively use it with `lsp-mode` - refactorings, auto formatting etc. But I can't reproduce it with `eglot`. In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version =C2=A03.24.36, cairo version 1.17.6) of 2023-01-11 built on feofanlaptop Repository revision: 384504edf35751eec2be9b52be5d3b250217d68f Repository branch: makepkg System Description: Arch Linux Configured using: =C2=A0'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/li= b =C2=A0--localstatedir=3D/var --mandir=3D/usr/share/man --with-gameuser=3D:g= ames =C2=A0--with-modules --without-libotf --without-m17n-flt --without-gconf =C2=A0--with-native-compilation=3Dyes --with-native-compilation=3Daot --wit= h- pgtk =C2=A0--without-xaw3d --with-sound=3Dno --with-tree-sitter --without-gpm =C2=A0--without-compress-install =C2=A0'--program-transform-name=3Ds/\([ec]tags\)/\1.emacs/' =C2=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt' =C2=A0CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 =C2=A0LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: =C2=A0 value of $LC_ALL: en_US.UTF-8 =C2=A0 value of $LANG: ru_RU.UTF-8 =C2=A0 value of $XMODIFIERS: @im=3Dibus =C2=A0 locale-coding-system: utf-8-unix Major mode: Go Minor modes in effect: =C2=A0 shell-dirtrack-mode: t =C2=A0 eglot--managed-mode: t =C2=A0 pixel-scroll-precision-mode: t =C2=A0 flymake-mode: t =C2=A0 icomplete-vertical-mode: t =C2=A0 icomplete-mode: t =C2=A0 electric-pair-mode: t =C2=A0 tooltip-mode: t =C2=A0 global-eldoc-mode: t =C2=A0 eldoc-mode: t =C2=A0 show-paren-mode: t =C2=A0 electric-indent-mode: t =C2=A0 mouse-wheel-mode: t =C2=A0 file-name-shadow-mode: t =C2=A0 global-font-lock-mode: t =C2=A0 font-lock-mode: t =C2=A0 line-number-mode: t =C2=A0 indent-tabs-mode: t =C2=A0 transient-mark-mode: t =C2=A0 auto-composition-mode: t =C2=A0 auto-encryption-mode: t =C2=A0 auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug find-dired go-ts-mode treesit face- remap display-line-numbers files-x hippie-exp misearch multi-isearch shell pcomplete vc-dir log-edit message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm- util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader add- log vc-hg vc-bzr vc-src vc-sccs vc-cvs vc-rcs log-view pcvs-util smerge- mode diff vc vc-git diff-mode vc-dispatcher tabify apropos cus-edit cus- start cus-load wid-edit time dune skeleton vc-svn eglot external-completion array filenotify jsonrpc ert ewoc debug backtrace url-util url-parse auth-source eieio eieio-core password-cache json map url-vars imenu tuareg tuareg-compat tuareg-opam smie find-file pixel-scroll cua-base gopcaml-mode merlin-xref xref merlin-cap merlin easy-mmode advice pcase crm ocp-indent cl gopcaml bookmark pp edmacro kmacro derived find-func use-package-core time-date checkdoc lisp-mnt flymake-proc flymake project byte-opt compile text-property-search comint ansi-osc ansi- color ring thingatpt comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile icomplete cl-loaddefs cl-lib elec-pair misterioso-theme rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl- generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 324901 69046) =C2=A0(symbols 48 17609 6) =C2=A0(strings 32 55854 8316) =C2=A0(string-bytes 1 1941813) =C2=A0(vectors 16 45873) =C2=A0(vector-slots 8 1509242 228698) =C2=A0(floats 8 261 571) =C2=A0(intervals 56 23782 309) =C2=A0(buffers 984 54)) --=20 Best regards, Sergey Kostyaev