Planned unavailability of Java and PHP language servers on Sourcegraph.com

By Quinn Slack on November 29, 2018


Code intelligence for Java and PHP (and other experimental languages) will be temporarily unavailable for public code on Sourcegraph.com starting Friday, November 30, as we transition to a new, more extensible way of adding language support using Sourcegraph extensions.

Only public code on Sourcegraph.com is affected; self-hosted instances of Sourcegraph are not affected. In addition to Java and PHP, the affected experimental languages are Bash, Clojure, C++, C#, Ruby, Lua, OCaml, Rust, and R.

Go, TypeScript/JavaScript, and Python continue to work and are not affected. In fact, those languages now have better, faster support because they use the new architecture.

We will also enable basic code intelligence on Sourcegraph.com, which provides best-effort (heuristic- and parser-based) code intelligence for all languages. To use it, enable the extension, select Fuzzy (not Precise) in the file header, and then hover on a token to go to definition or find references.

Why are these languages being temporarily removed from Sourcegraph.com?

Temporarily removing these languages lets us fully switch over to the new Sourcegraph extension-based architecture for language support. The new scheme makes it much easier for us (and others) to add more and better language support using existing language servers.

We apologize to users who used code intelligence for the affected languages on Sourcegraph.com for open-source code, and we commit to bringing them back better than before. Because Sourcegraph is open source and you can run your own self-hosted Sourcegraph instance, there is a free and open-source workaround to still get support for these languages.

How do I get code intelligence for the affected languages?

The basic code intelligence extension may suffice for your needs. You can enable it and use it on Sourcegraph.com for all languages.

Otherwise, you can run a self-hosted instance of Sourcegraph 2.13 to get language support for the removed languages. You'll just need to add repositories to your instance and ensure it is running the language servers for your desired languages. To get code intelligence on your code host (e.g., GitHub), connect your Sourcegraph browser extension to your Sourcegraph instance.

When will these languages be re-added to Sourcegraph.com?

In the coming weeks and months, depending on the language. Our top priorities are Java and PHP (as well as introducing Swift support).

See the Sourcegraph roadmap for a timeline of when these languages will be added back. If you don't see a language listed yet, we don't have a date to re-add it. If you'd like to contribute language support, let us know. We are hiring software engineers, or we can sponsor you as a part-time contributor.


Look out for the Sourcegraph 3.0-preview announcement next week, which will let you use the new language extensions on your own self-hosted Sourcegraph instance. File an issue or contact @srcgraph on Twitter with questions.