fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

Revert "ctags: discard ultra long ctags line instead of failing to index entirely (#28)"

This reverts commit 2890d2b74833a965aef20c86cb7dfd314a035e75. There is a proper
fix merged in upstream at 5851b63aed4d850f6618b696b89e757f0ae1ec22.

-9
-9
ctags/json.go
··· 66 66 out: &scanner{r: bufio.NewReaderSize(out, 4096)}, 67 67 outPipe: out, 68 68 } 69 - initialBuffer := make([]byte, bufio.MaxScanTokenSize) 70 - maxBufferSize := 1 * 1024 * 1024 // 1 MiB 71 - proc.out.Buffer(initialBuffer, maxBufferSize) 72 69 73 70 if err := cmd.Start(); err != nil { 74 71 return nil, err ··· 98 95 } 99 96 if debug { 100 97 log.Printf("read %q", p.out.Bytes()) 101 - } 102 - 103 - if l := len(p.out.Bytes()); l > bufio.MaxScanTokenSize { 104 - log.Printf("warning: discarding ctags line which exceed bufio.MaxScanTokenSize with length=%d", l) 105 - log.Printf("line: %q", p.out.Text()) 106 - return nil 107 98 } 108 99 109 100 // See https://github.com/universal-ctags/ctags/issues/1493