Live data from Hacker News

Sourcegraph now running on an in-browser VS Code

sourcegraph.com

41–50 of 84 posts

Re: Sourcegraph now running on an in-browser VS Code

#41
post #20
post #19

Earlier quoted context omitted.

Installed it, didn't work on https://github.com/rails/rails :( This doesn't work either https://sourcegraph.com/github.com/rails/rails :( Would be great if it worked, I liked the example with Go code.

Sourcegraph CEO here. We don't support Ruby yet, unfortunately. It officially works for Go and Java, and we have alpha/beta support for a couple more languages enabled too (TypeScript and JavaScript). As you can imagine, Ruby code intelligence (type inference, etc.) is super tough, and there are maybe 5-10 people in the world who could build it right now. We'd love to find and sponsor a Ruby expert to add Ruby suppor…

@whitequark and @backus are the first that come to mind. But anybody on the ruby core team, working on parser or even rubcocop could do it.

Disclaimer: I contributed to rubocop.

Re: Sourcegraph now running on an in-browser VS Code

#42

How... how is one meant to specify a repo? If I type "colemickens" it lists my repos. But I have... a lot of them. "colemickens/repo-name" doesn't work. Nor does any other form I've tried. edit: maybe it's a paging issue and the "repo-name" I was trying wasn't on the first page of my repos? Unclear...

Where are you searching from? If you click "Go to repository" on the top left of the home page you should be able to find a specific repo by typing "colemickens/repo-name".

If you don't see a repo that you know you have, then it might not yet be cloned on soucegraph.com because we clone repos lazily (try navigating directly to https://sourcegraph.com/github.com/colemickens/repo-name to trigger us to clone it).

Re: Sourcegraph now running on an in-browser VS Code

#44
I have to say I'm really impressed by what you guys have achieved here.

I've been working for a while on different solutions to bring Visual Studio Code to more devices, among them Chromebooks (for which an in-browser editor would be ideal) - I'd be interested in seeing the writeup on this for sure.

What you have currently is quite similar to Azure's App Service Editor:

http://developingdane.com/content/images/2016/10/app_service...

It's a versatile system, so it's good to see it getting more attention in the open.

What's the story on things like extensions and a terminal? Have you plans to expand to there?

Re: Sourcegraph now running on an in-browser VS Code

#45
post #9

Can someone put this in some context for me? It's an IDE as a service, or what?

Sourcegraph CEO here. It is for reading code. It gives you the full power of an editor (jump-to-def, hovers, find references, advanced search, symbol search, cross-repo references, etc.) for any repo at any commit on GitHub. It supports Go and Java right now, with some more languages in beta. If you find yourself reading code on GitHub a lot, or cloning repos to open and read in your editor, you'll find it useful. If…

This is really cool. I might need to build a IDE soon, and I briefly looked at using VS Code for a base, but determined that it was a bit of overkill for my purposes.

Out of curiosity, what was Sourcegraph running prior to this in-browser VS Code?

Re: Sourcegraph now running on an in-browser VS Code

#46
post #32

Earlier quoted context omitted.

Sourcegraph CEO here. There are indeed some glitches in syntax highlighting, on other languages as well. I hope it doesn't significantly detract from the product value, but I understand it is not good. Here's why it's happening: We're using TextMate syntax bundles, which require the Oniguruma regexp engine, which only has partial pure-JavaScript implementations that can run in the browser. We use https://github.com/b…

I've been summoned :p We use Atom's syntax highlighter for syntax highlighting on npmjs.com -- I originally wrote onigurumajs, because I was seeing if we could viably remove the website's only compiled dependency (oniguruma) ... I wrote it over vacation, and then had to put the work down. I would love help to see the library over the finish line; on a grammar by grammar basis it would be great to figure out what the…

Oniguruma was a big roadblock for me on Chromebooks too.

Ideally, I'd have liked to have a version of VS Code that could be released to the Chrome Web Store, but regex is so labyrinthine in its edge cases that dropping in any other implementation was just inciting hatred from the editor.

Ultimately I looked at cross-compiling Oniguruma to WebAssembly to see how far I could get with this, and if that didn't work, NaCl.

I didn't get too far down this road as it was taking me away from the core goal of the project, and there's one of me.

Re: Sourcegraph now running on an in-browser VS Code

#48
post #45
post #9

Earlier quoted context omitted.

Sourcegraph CEO here. It is for reading code. It gives you the full power of an editor (jump-to-def, hovers, find references, advanced search, symbol search, cross-repo references, etc.) for any repo at any commit on GitHub. It supports Go and Java right now, with some more languages in beta. If you find yourself reading code on GitHub a lot, or cloning repos to open and read in your editor, you'll find it useful. If…

This is really cool. I might need to build a IDE soon, and I briefly looked at using VS Code for a base, but determined that it was a bit of overkill for my purposes. Out of curiosity, what was Sourcegraph running prior to this in-browser VS Code?

Before this, we were using a little bit less of VS Code. Before that, we had a much more minimal but custom frontend.

Re: Sourcegraph now running on an in-browser VS Code

#50

Anyone have any suggestions for a map view extension for VS Code? I like how it looks in sourcegraph, wouldn't mind having it locally but haven't been able to find one.

It's now builtin as an option.

https://code.visualstudio.com/updates/v1_10#_preview-minimap

Post reply on HN