GNU bug report logs - #61006
29.0.60; Wrong indentation in go-ts-mode

Previous Next

Package: emacs;

Reported by: sskostyaev <at> gmail.com

Date: Sun, 22 Jan 2023 13:40:01 UTC

Severity: normal

Found in version 29.0.60

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: sskostyaev <at> gmail.com
To: Randy Taylor <dev <at> rjt.dev>
Cc: 61006 <at> debbugs.gnu.org
Subject: bug#61006: 29.0.60; Wrong indentation in go-ts-mode
Date: Wed, 25 Jan 2023 11:06:45 +0700
Thank you!

Fixed now.

В Ср, 25/01/2023 в 02:46 +0000, Randy Taylor пишет:
> On Tuesday, January 24th, 2023 at 21:35, Randy Taylor <dev <at> rjt.dev>
> wrote:
> > 
> > On Sunday, January 22nd, 2023 at 05:00,
> > sskostyaev <at> gmail.com sskostyaev <at> gmail.com wrote:
> > 
> > > 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 {`
> > 
> > 
> > Thanks for the report. I've attached a patch that fixes this.
> > 
> > > 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.
> > 
> > 
> > And addresses this.
> > 
> > > 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`.
> > 
> > 
> > Seems like an `lsp-mode` problem then? I only use `eglot` and
> > haven't noticed anything amiss.
> 
> Addendum to my last patch: added indentation support for interfaces
> as it was missing. Everything else is the same.


-- 


Best regards,
Sergey Kostyaev





This bug report was last modified 2 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.