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.
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.
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.
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.
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.