ITADN

Incorrect detection of syntax error only when typing

#1656ClosedKiYugadgeter 创建于 2026-03-22
K
KiYugadgetercommented
Since commit c750165, vim-lsp raise false positive of syntax error on go-pls. It seems like do not happen before the commit. This problem do not happen when paste code or open files. It only happens when typing. Type all of following code (It DOESN'T appear when you use paste or something another, This is happened only when it is TYPED) Following example should has only `undefined of a` but vim-lsp raise syntax error. ``` package main import ( "fmt" ) type A struct { A int } func (self *A) MeaninglessFunc() { fmt.Println("G") } func main() { fmt.Println(a.A) } ```
关闭于 2026-03-24 6 条评论