Vim-go: GoAddTags should not add twice

Created on 29 Sep 2016  路  2Comments  路  Source: fatih/vim-go

Sorry for the bad issue title, couldn't think of a better one.

    Number       string `json:"number"`
    TextAllowed  bool

Actual behavior

    Number       string `json:"number"` `json:"number"`
    TextAllowed  bool `json:"text_allowed"`

Expected behavior

    Number       string `json:"number"`
    TextAllowed  bool `json:"text_allowed"`

bug toogoaddtags

Most helpful comment

Hi @gnhuy91

Thanks for the bug report. This is one of the cases where an AST based tool is needed or things get complex easily. Let's tackle this as well with the other :GoAddTags related issues.

All 2 comments

Hi @gnhuy91

Thanks for the bug report. This is one of the cases where an AST based tool is needed or things get complex easily. Let's tackle this as well with the other :GoAddTags related issues.

Fixed with #1204 please, feel free to test and reopen if it's not the case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

groob picture groob  路  3Comments

jongillham picture jongillham  路  3Comments

preslavmihaylov picture preslavmihaylov  路  3Comments

joeblubaugh picture joeblubaugh  路  3Comments

andrejvanderzee picture andrejvanderzee  路  3Comments