Skip to content

v0.12.0

Choose a tag to compare

@carlosms carlosms released this 04 Apr 11:17
f685bd7

Breaking Changes

In this release we have changed how Engine stores the gitbase index data. In previous releases we stored this data in ~/.srcd/gitbase. From now on they will be managed as docker volumes.

This change has 2 implications:

  • If you had created any index for your data you will need to recreate them after source{d} Engine is updated.

  • The files in ~/.srcd/gitbase are not used anymore, and you need to clean them manually:

    rm -rf ~/.srcd/gitbase

    Please note that in Linux you may need to run the command as root.

This manual cleanup will not be necessary after you install this version. The srcd prune command will delete volumes containing the gitbase index data.

Components

New Features

  • More friendly and useful error messages (#252, #258, #272, #291, #294, #295, #326).
  • Replace the basic REPL SQL shell with a standard MySQL client (#154).
  • Show the container exposed ports in the srcd components list output (#300).
  • Set delegated consistency mode for mounted volumes on macOS. This improves SQL queries performance (#330).
  • Use volumes for gitbase index data persistence (#373).

Bug Fixes

  • Fix the gRCP ResourceExhausted error for srcd parse uast with big files (#271).
  • In cases where the workdir contains a lot of Git repositories, srcd web sql could open the web UI before gitbase was ready to accept queries (#284).
  • If the daemon container crashed, or was stopped directly by the user, the following srcd commands are able to restart it. But then it would not honor the working directory used when srcd init /path/workdir was called, using instead the current directory. Now Engine stores a file in ~/.srcd/ to solve this (#372).
  • When gitbase was started Engine created unnecessary anonymous volumes that were not attached to any container. These volumes were also ignored by srcd prune (#371).

Known Issues

  • #297: srcd parse does not detect the language automatically for C#, C++, or bash files. For these languages you will need to set --lang manually. For example:
$ srcd parse uast file.cs --lang csharp
$ srcd parse uast file.cpp --lang cpp
$ srcd parse uast file.bash --lang bash