News for hackers. Stuff that matters.
Re:Google Open Source Code Search by voz_ on Wednesday March 11, 2020 @09:39PM (#22552665)
Great product. Used it extensively at Uber.
Re:Google Open Source Code Search by sqs on Wednesday March 11, 2020 @09:40PM (#22552678)
Thank you! Any complaints/requests/other feedback? How could we make it better?
Re:Google Open Source Code Search by escardin on Wednesday March 11, 2020 @10:41PM (#22553112)
Yes! Publish a graphql schema that is parseable by apollo graphql please! I tried to use your API on my companies internal source graph setup and had to hand roll my API calls because of these errors.
Re:Google Open Source Code Search by loicguychard on Thursday March 12, 2020 @05:22AM (#22555081)
Sorry to hear you this didn't work for you!

I filed an issue on sourcegraph/sourcegraph, would you mind posting more details there about the errors you ran into? https://github.com/sourcegraph/sourcegraph/issues/8970

Re:Google Open Source Code Search by HiJon89 on Thursday March 12, 2020 @08:09AM (#22555917)
Seems like this is in the works already, but the boolean operators in OpenGrok are so intuitive and powerful. I use them every single day and the lack of support in Sourcegraph immediately disqualified it for us. For example yesterday I was looking for Dropwizard Managed classes not annotated with @Singleton so I did:

Managed && !"@Singleton"

(I'm omitting the fully-qualified class name for brevity)

If I also wanted to look for HealthCheck classes I could update the query to:

(Managed || HealthCheck) && !"@Singleton"

I think it also helps that OpenGrok has a separate input for filtering file paths (completely splitting the "where" and the "what" parts of the query). And this file path search supports the same boolean operators. So if I want to narrow my search to two particular repositories I could put CrmSearch || AutomationPlatform into the File Path input. And because this input only handles file paths, I don't need to remember any special syntax. Whereas if you clump the entire query into a single input, then users need a way to tell you whether a search term applies to file paths or file contents.

Re:Google Open Source Code Search by rvttt on Thursday March 12, 2020 @01:18PM (#22559185)
Engineer at Sourcegraph here. Adding boolean operators is a priority on our roadmap, and expected to go live between May and July this year. On separate inputs: definitely something we've also identified and are actively working on. One recent experimental addition is "Interactive mode" that lets you enter patterns separately for repos, files, and patterns, and so on. There's a dropdown next to the query bar to try it out--there are some kinks, and we're currently working on making this a polished feature. Thanks for the feedback, and stay tuned!
Re:Google Open Source Code Search by HiJon89 on Thursday March 12, 2020 @06:28PM (#22562604)
Awesome, thanks for the response. Looking forward to trying out Sourcegraph again
Re:Google Open Source Code Search by voz_ on Thursday March 12, 2020 @01:51AM (#22554139)
I'm at FB now and we have an internal code search. I apologize, I can't recall any feedback for sourcegraph.