Introducing Sourcegraph Server 2.6: Symbol search for 75+ languages

By Quinn Slack on March 13, 2018


We’re excited to announce Sourcegraph Server 2.6, with tons of new features and improvements to help your team build better software. Search for and jump directly to symbols, search for the code you need more quickly, and set up Sourcegraph to search across all of your code--all available now. This release also comes with big improvements to configuration and authentication.

Sourcegraph gives your team code search and intelligence across all of your code--even up to 10,000s of repositories. It runs securely in your own network, takes 5 minutes to install, and is free to use (with paid upgrades starting at $5/user/month).

Ready to install or upgrade? Install Sourcegraph Server 2.6

Key highlights of Sourcegraph Server 2.6:

Symbol search for 75+ languages

Symbol search is now available in Sourcegraph for over 75 languages. Use the type:symbol filter to search for symbol results, which makes it easier to find specific functions, variables, and more. Symbol results also appear in typeahead suggestions, so you can jump directly to symbols by name.

Symbols3

You can also browse all symbols in a repository with the symbols sidebar. Click the Symbols tab in the sidebar while viewing a repository to see a list of all symbols. Click on a symbol to go to its definition.

SymbolSidebar

Improved configuration flow

Changes to most site configuration options are now automatically detected and no longer require a server restart. After pressing Save on the site admin configuration page, the changes will take effect immediately (for most settings--if you need to restart to apply the changes, you'll see a notice). This makes it easier to configure Sourcegraph to search repositories on your code hosts (GitHub, GitHub Enterprise, GitLab, Bitbucket Server, AWS CodeCommit, and any other Git-based code host) without restarting the server.

See the changelog for a complete list of improvements we’ve made to configuration.

Language search filter

Now, you can filter search results by programming language with the lang: filter. For example, use test lang:yaml for files containing test in YAML files, or import lang:python for import statements in Python files.

Search filter suggestions

Filtering with search scopes is now smarter and dynamic. After executing a search, the Filters bar below the search area will suggest up to 12 file: and repo: filters based on the result set to help narrow your search query.

Filters2

More documentation for scaling and deployment

We’ve added tons of information to the Sourcegraph Data Center documentation to better help you use Sourcegraph at your company. See the scaling documentation for information on managing scaling your deployment.

Improvements to built-in authentication

It's now much easier to control access to your code on Sourcegraph. When using auth.provider == "builtin", two new important changes mean that a Sourcegraph Server instance will be locked down and only accessible to users who are invited by an admin user (previously, we advised users to place their own auth proxy in front of Sourcegraph servers).

  1. When auth.provider == "builtin" is set, Sourcegraph will now by default require an admin to invite users instead of allowing any visitor to the site to sign up. Set auth.allowSignup == true to retain the old behavior of allowing anyone who can access the site to sign up.
  2. When auth.provider == "builtin", Sourcegraph now respects a new auth.public site configuration option (default value: false). When auth.public == false, Sourcegraph will not allow anyone to access the site unless they have an account and are signed in.

Bitbucket Server support

We’ve added native integration for Bitbucket Server so you can get powerful code search over all your Bitbucket Server projects in minutes. Click Add Bitbucket Server repositories in the site config area, fill in the generated fields, and select which repositories to enable. See the documentation for full instructions.

As always, in addition to natively supported code hosts (GitHub, GitLab, Gitolite etc.), repositories from any code host can be added with the repos.list configuration option.

Better Phabricator integration

We now display a View on Phabricator link rather than a View on other code host link if you are using Phabricator and hosting your code on GitHub or another code host with a UI. Commit links will now also point to Phabricator.

Read the documentation to integrate Sourcegraph Server with Phabricator.

Safari extension (beta)

We’re bringing our browser extension for GitHub to Safari! Get code intelligence and code search on GitHub code files and PRs in Safari. The extension is currently in beta, but we invite our Safari users to try it out. Download it now.

Additional improvements:

  • Slack notifications for saved searches may now be added for individual users (not just organizations).
  • Added SSH cloning support to GitLab, GitHub, and GitHub Enterprise.
  • Upgraded the JavaScript and TypeScript language server to use TypeScript 2.7.

For a complete list of changes, see the changelog.

Ready to install or upgrade? Install Sourcegraph Server 2.6