zoekt: 45 files / 178 matches / 0.88ms neogrok: 20 files / 52 matches

github.com/sourcegraph/zoektcmd/flags.go 1 match | Go | №1

37 name := filepath.Base(os.Args[0])38 fmt.Printf("%s version %q\n", name, index.Version)39 os.Exit(0)

github.com/sourcegraph/zoektweb/server.go 2 matches | Go | №2

181 if err != nil {182 log.Printf("html template parse error: %v", err)183 t = template.Must(template.New("empty").Parse(""))
198 if err != nil {199 log.Printf("text template parse error: %v", err)200 t = texttemplate.Must(texttemplate.New("empty").Parse(""))

github.com/isker/neogroksrc/routes/(search-page)/lander.svelte 2 matches | Svelte | №3

21 <li>22 <ExampleQuery query=".printf" />23 <span class="text-xs">dot is a wildcard</span>
25 <li>26 <ExampleQuery query="\.printf" />27 <span class="text-xs">escaped dot is a dot</span>

github.com/sourcegraph/zoektindex/read.go 2 matches | Go | №4

135 skipSection = true136 log.Printf("encountered unrecognized index section (%s), skipping over it", tag)137
786 rNgram = ngramToRunes(ngram)787 fmt.Printf("%d\t%q\n", ss.sz, string(rNgram[:]))788 }

github.com/sourcegraph/zoektquery/parse.go 1 match | Go | №5

27 28 var _ = log.Printf29

github.com/sourcegraph/zoektindex/ctags.go 4 matches | Go | №6

267 if m.currentDocStuckCount > 0 {268 log.Printf("symbol analysis for %s (size %d bytes) is done and found %d symbols", m.currentDocName, m.currentDocSize, len(entries))269 m.currentDocStuckCount = 0
294 m.mu.Lock()295 log.Printf("symbol analysis finished for shard statistics: duration=%v symbols=%d bytes=%d", now.Sub(m.start).Truncate(time.Second), m.totalSymbols, m.totalSize)296 m.mu.Unlock()
305 m.currentDocStuckCount++306 log.Printf("WARN: symbol analysis for %s (%d bytes) has been running for %v", m.currentDocName, m.currentDocSize, running)307 }
312 m.mu.Lock()313 log.Printf("DEBUG: symbol analysis still running for shard statistics: duration=%v symbols=%d bytes=%d", now.Sub(m.start).Truncate(time.Second), m.totalSymbols, m.totalSize)314 m.mu.Unlock()

github.com/sourcegraph/zoektindex/merge.go 2 matches | Go | №7

85 86 log.Printf("finished shard %s: %d index bytes (overhead %3.1f)", fn, fi.Size(),87 float64(fi.Size())/float64(ib.ContentSize()+1))
186 if err := os.Rename(tmpFn, dstFn); err != nil {187 log.Printf("explode: rename failed: %s", err)188 }

github.com/sourcegraph/zoektsearch/sched.go 2 matches | Go | №8

106 } else {107 log.Printf("ZOEKTSCHED=batchdiv=%d specified. Batch queue size 1/%d of %d.", batchdiv, batchdiv, capacity)108 }
118 } else {119 log.Printf("ZOEKTSCHED=interactiveseconds=%d specified. Search requests will move to batch queue after %d seconds.", interactiveseconds, interactiveseconds)120 }

github.com/sourcegraph/zoektquery/regexp.go 2 matches | Go | №9

64 if err != nil {65 log.Printf("failed to copy regexp `%s`: %v", re, err)66 return re
73 if err != nil {74 log.Printf("failed to parse regexp after uncapture `%s`: %v", r, err)75 return re

github.com/sourcegraph/zoektweb/snippets.go 2 matches | Go | №10

55 }); err != nil {56 log.Printf("fragment template: %v", err)57 return ""
84 if err != nil {85 log.Printf("url template: %v", err)86 return ""

github.com/sourcegraph/zoektindex/builder.go 8 matches | Go | №11

425 // reindex content.426 log.Printf("warn: immutable field changed, requires re-index: %s", err)427 return IndexStateContent, fn
655 for tmp := range b.finishedShards {656 log.Printf("Builder.Finish %s", tmp)657 os.Remove(tmp)
778 }779 log.Printf("removing old shard file: %s", p)780 if err := os.Remove(p); err != nil {
953 if err != nil {954 log.Printf("ignoring universal:%s or scip:%s error: %v", b.opts.CTagsPath, b.opts.ScipCTagsPath, err)955 }
993 994 log.Printf("writing memory profile, allocated heap: %s", humanize.Bytes(m.HeapAlloc))995 name := filepath.Join(b.opts.IndexDir, fmt.Sprintf("indexmemory.prof.%d", b.heapProfileNum))

github.com/sourcegraph/zoektsearch/shards.go 6 matches | Go | №12

305 306 log.Printf("[INFO] loading %d shard(s): %s", len(keys), humanTruncateList(keys, 5))307
311 if time.Since(lastProgress) > 5*time.Second {312 log.Printf("[INFO] still need to load %d shards...", len(keys)-i)313 lastProgress = time.Now()
327 metricShardsLoadFailedTotal.Inc()328 log.Printf("[ERROR] reloading: %s, err %v ", key, err)329 return
934 if e := recover(); e != nil {935 log.Printf("[ERROR] crashed shard: %s: %#v, %s", s, e, debug.Stack())936
956 if r := recover(); r != nil {957 log.Printf("[ERROR] crashed shard: %s: %s, %s", s.String(), r, debug.Stack())958 sink <- shardListResult{

github.com/sourcegraph/zoektgitindex/tree.go 1 match | Go | №13

129 if err := rw.handleSubmodule(p, id, branch, subRepoVersions, ig); err != nil {130 log.Printf("submodule %s: ignoring error %v", p, err)131 }

github.com/sourcegraph/zoektgitindex/index.go 7 matches | Go | №14

467 if err := setTemplatesFromConfig(&opts.BuildOptions.RepositoryDescription, opts.RepoDir); err != nil {468 log.Printf("setTemplatesFromConfig(%s): %s", opts.RepoDir, err)469 }
513 if err != nil {514 log.Printf("delta build: falling back to normal build since delta build failed, repository=%q, err=%s", opts.BuildOptions.RepositoryDescription.Name, err)515 opts.BuildOptions.IsDelta = false
537 if err := SetTemplatesFromOrigin(&tpl, info.URL); err != nil {538 log.Printf("setTemplatesFromOrigin(%s, %s): %s", path, info.URL, err)539 }
587 588 log.Printf("attempting to index %d total files", totalFiles)589 for idx, name := range names {
950 if err != nil {951 log.Printf("failed to open submodule repository: %s, %s", submodule.Config().Name, err)952 continue

github.com/sourcegraph/zoektsearch/watcher.go 1 match | Go | №15

182 if len(toDrop) > 0 {183 log.Printf("[INFO] unloading %d shard(s): %s", len(toDrop), humanTruncateList(toDrop, 5))184 }

github.com/sourcegraph/zoektcmd/zoekt/main.go 5 matches | Go | №16

46 if list {47 fmt.Printf("%s%s%s\n", r, f.FileName, addTabIfNonEmpty(f.Debug))48 continue
52 l := bytes.TrimSuffix(m.Line, []byte{'\n'})53 fmt.Printf("%s%s:%d:%s%s\n", r, f.FileName, m.LineNumber, l, addTabIfNonEmpty(f.Debug))54 }
94 }95 log.Printf("repo metadata: %#v", repo)96 log.Printf("index metadata: %#v", index)97 }
247 if *verbose {248 log.Printf("stats: %#v", sres.Stats)249 }

github.com/sourcegraph/zoektgitindex/clone.go 1 match | Go | №17

99 if err := setFetch(repoDest, "origin", "+refs/heads/*:refs/heads/*"); err != nil {100 log.Printf("addFetch: %v", err)101 }

github.com/sourcegraph/zoektindex/indexdata.go 1 match | Go | №18

293 if err != nil {294 log.Printf("error reading newline index for document %d on shard %s: %v", i, d.file.Name(), err)295 continue

github.com/sourcegraph/zoektindex/indexfile.go 1 match | Go | №19

50 if err := unix.Munmap(f.data); err != nil {51 log.Printf("WARN failed to Munmap %s: %v", f.name, err)52 }

github.com/sourcegraph/zoektgitindex/delete.go 1 match | Go | №20

30 if len(toDelete) > 0 {31 log.Printf("deleting repos %v", toDelete)32 }