Live data from Hacker News

Srclib: A polyglot code analysis library

srclib.org

31–34 of 34 posts

Re: Srclib: A polyglot code analysis library

#31
post #18

Based on reading some of the docs (can't check out the source on this phone), looks like this has great potential; for a long time I've wanted something better than cscope, and not limited to a single language, to use with vim. My main concern is that any system based on scanning entire source files offline is unlikely to have the same interactivity as IDEs. That is, if I type a line of C++, I don't want clang to hav…

Just serialize the continuation to the database and everyone can fork() the state language analyzer with their own queries.

Re: Srclib: A polyglot code analysis library

#32
post #16

Earlier quoted context omitted.

Awesome project! Any timeline on vim support?

None of the original contributors use vim, so we wouldn't make a very good plugin for it. We'll help anyone who wants to make one, feature them on srclib.org (obviously), etc. Do you know anybody who'd be interested in making a vim plugin? A good place to start looking to see what's involved is in the code for emacs-sourcegraph-mode, sourcegraph-sublime, and sourcegraph-atom.

Sign me up. azmenthe, you want to help?

Re: Srclib: A polyglot code analysis library

#33
post #23

Earlier quoted context omitted.

We would love to have Windows support in srclib, but we honestly have no idea what (or how much effort) it would take. It might work in Cygwin as-is. If you or anybody else wants to try it, or at least identify issues, we would help. One related thing is a lot of folks want to add C# support. I assume that running Roslyn requires Windows, which'd require Windows support for srclib. https://github.com/sourcegraph/sour…

From a quick try, getting it to build from source on Windows requires a minor modifications to task2/logger.go to remove the dependency on syslog and that's about it. But then src.exe toolchain -install-std fails on symlink creation via ln -s C\sourcegraph.com\sourcegraph\srclib-go C\sourcegraph.com\sourcegraph\srclib-go (looks odd btw). No stack trace to chase down to replace that with mklink, but it shouldn't be to…

Ah, thanks for trying this. It's probably making some Unix assumptions in the pathname creation.

Re: Srclib: A polyglot code analysis library

#34
post #16

Earlier quoted context omitted.

None of the original contributors use vim, so we wouldn't make a very good plugin for it. We'll help anyone who wants to make one, feature them on srclib.org (obviously), etc. Do you know anybody who'd be interested in making a vim plugin? A good place to start looking to see what's involved is in the code for emacs-sourcegraph-mode, sourcegraph-sublime, and sourcegraph-atom.

Sign me up. azmenthe, you want to help?

Someone else was interested, too, over at https://github.com/sourcegraph/sourcegraph.com/issues/107 (@lazywei).
Post reply on HN