Skip to content

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 20 Nov 22:38
· 88 commits to main since this release

T-Code v0.5.1: A Testing Panel, Terminal Tabs, Mercurial and Subversion, and Plugins

t-code 0.5.1 is 0.5.0 with one fix: 0.5.0 could crash when a plugin command ended at once, and
did so often on a busy machine (for example during a build). Everyone on 0.5.0 should upgrade.
Coming from 0.4.2, everything below is new.

t-code 0.5 adds a Testing panel, shells as tabs, Mercurial and Subversion next to git, debuggers
for Python, Go and Rust, a versioned plugin API with a Plugins window and plugins for Java, MATLAB
and Octave. The window is smaller than in 0.4.2 on the same system.

Fixed in 0.5.1

  • No crash when a plugin command ends at once: t-code read the program's pid after GLib had
    already reaped it. Under full CPU load the old code crashed in 71 of 100 test runs; the fix in
    none of them. t-code also never signals a pid of 0 any more, which would have reached its own
    process group.

Testing Panel (new)

  • CTest, pytest, go test, cargo test and JUnit (Maven, Gradle, through the Java plugin);
    GoogleTest cases are listed one by one.
  • Run or debug a test from the panel or from the ▶ in the editor gutter; ✓ / ✗ show which
    passed, a click goes to the test's source.

Debugging (changed)

  • Python (debugpy), Go (Delve), Rust (F5 finds the executable from Cargo) and lldb-dap as
    another C / C++ debugger next to gdb.
  • Logpoints: a breakpoint that prints a message instead of stopping.
  • Attach to a running process, open a core dump (from coredumpctl or a file; t-code says
    why the program crashed).
  • Memory View: the bytes at an address, beside the variables.

Terminal (new)

  • Several shells as tabs in the Terminal panel (Ctrl+Shift+T). Build and Run use the first one.

Source Control (changed)

  • Mercurial and Subversion next to git: status, the gutter, blame, commit, conflicts, switching
    and creating branches, hg shelve as stash, svn changelists.
  • Initialize Repository offers all three; repositories nested in a project show too.

Plugins (new)

  • Plugin API tapi_1: socket commands for editing, asking, diagnostics and terminal tabs. Plugins
    can bring language servers, Run, debuggers, color themes, language specs and snippets.
  • Plugins window, panel and menu: switch plugins off, uninstall them, install from the registry.
    The registry index is signed; unreviewed plugins warn before they install.
  • Java: jdtls, Run with errors and exceptions as diagnostics, JUnit tests, debugging through
    java-debug, library classes as read-only sources.
  • MATLAB and GNU Octave, also as the packages t-code-matlab and t-code-octave.
  • More plugins, written in C, C++, Go, Rust, JavaScript and Perl: CMake, ShellCheck, Format on
    Save, LaTeX and Typst, Spell Check, Make / just / Task / npm targets, a commit message helper,
    GitHub / GitLab permalinks, TODO Finder, Word Count, Pomodoro and Text Tools.
  • Closing t-code ends the programs that plugin terminal tabs started, and only those (MATLAB is
    sent exit first).

Editor and Window (new)

  • Process Monitor (Help menu): every language server, plugin and terminal t-code started, with
    its CPU and memory.
  • A welcome window when there is no folder to open.
  • File templates: save a file as a template; it is offered again for new files.
  • t-code's own SVG icons for files and the interface: no Nerd Font needed.
  • Panels give way when their side narrows; drag an edge to open a side.
  • Completion: Tab takes the proposal, Enter starts a new line.
  • Objective-C (.m, .mm) goes to clangd; a .m file is MATLAB unless Objective-C sits next
    to it.

Performance

  • Big repositories: a quicker Outline, Source Control lists that are not rebuilt when nothing
    changed, quicker conflict and semantic token scans. Every step of a 20,000-file test repository
    takes under 700 ms.
  • Memory (25 C files, PSS, Fedora 45): 445–495 MB in all, the window 70–76 MB. 0.4.2, measured
    the same day: 487–625 MB, the window 89–90 MB.

Fixes

  • First run: the Files and Terminal panels no longer start hidden in a small window (the known
    issue of 0.4.2).
  • Ctrl+J no longer brings back the side Ctrl+B hid.
  • Big Markdown files no longer freeze the preview.
  • CMakeLists.txt and Makefile are colored again.
  • The Outline shows the new tab's symbols after a tab switch.
  • Search results stay sorted by path when grep does the search.
  • Debian package: recommends build-essential, so clangd finds the C headers.

Install

Distribution / Format Command
Fedora 43, 44, rawhide sudo dnf copr enable suacayipkisi/t-code-ide && sudo dnf install t-code-ide
Ubuntu (PPA) sudo add-apt-repository ppa:suacayipkisi/t-code-ide && sudo apt install t-code-ide
Snap Store sudo snap install t-code-ide (optional: sudo snap alias t-code-ide t-code)
Fedora 44 (file) sudo dnf install ./t-code-ide-0.5.1-1.fc44.x86_64.rpm
Arch Linux sudo pacman -U t-code-ide-0.5.1-1-x86_64.pkg.tar.zst
Debian 13 sudo apt install ./t-code-ide_0.5.1-1_amd64.deb
Void Linux t-code-ide-0.5.1_1.x86_64.xbps (glibc) or t-code-ide-0.5.1_1.x86_64-musl.xbps (musl), with xbps-rindex -a and xbps-install
Flatpak flatpak install --user ./t-code-0.5.1-x86_64.flatpak
Snap (file) sudo snap install --dangerous ./t-code-ide_0.5.1_amd64.snap

Check the downloads with sha256sum -c SHA256SUMS. Upgrading from 0.4.2 or 0.5.0 needs nothing
special.

Known Issues

  • Lines with inlay hints look spaced out in the minimap.
  • "No LSP" although the language server is installed, when t-code is started from the desktop's
    menu.
    A server, debugger or test runner installed through nvm, pyenv, asdf, mise, volta or a
    Node.js / Go / JDK unpacked in the home folder is on the PATH that ~/.bashrc sets, which only
    terminals get. This affects TypeScript / JavaScript (typescript-language-server, also YAML and
    JSON servers installed with npm), Go (gopls, dlv with a custom GOPATH or GOBIN), Rust
    (rust-analyzer with a custom CARGO_HOME or RUSTUP_HOME), Python (pylsp, debugpy from
    pyenv), Java (JAVA_HOME) and plugins that run on Node.js. Check where it is with
    which typescript-language-server (or gopls, pylsp, ...) in a terminal, then one of:
    • start t-code from a terminal (t-code);
    • link the server, and for npm servers node too, into /usr/local/bin, which every session has
      on PATH (this works whatever your shell is):
      bin=$(dirname "$(which typescript-language-server)")
      sudo ln -sf "$bin/typescript-language-server" "$bin/node" /usr/local/bin/
    • or put the folder (and variables such as GOPATH) in ~/.config/environment.d/tools.conf,
      which GNOME and KDE read at login, then log out and in again:
      mkdir -p ~/.config/environment.d
      echo "PATH=$(dirname "$(which typescript-language-server)"):\${PATH}" >> ~/.config/environment.d/tools.conf
    The next release asks the login shell for its PATH and toolchain variables at start-up.
  • A language server installed while t-code runs only starts after t-code is restarted. The
    "No LSP" notice goes at the next click, but the open files get no server until then: quit t-code
    and start it again after installing a server (or linking it as above).
  • typescript-language-server 6 needs Node.js 22.22 or newer. With the distribution's older
    Node.js (Debian 13 has 20) the server installs with an EBADENGINE warning and never starts.
    Install the version that matches your Node.js (node --version):
    sudo npm install -g typescript-language-server@5 typescript@6   # Node.js 20
    sudo npm install -g typescript-language-server@4 typescript@6   # Node.js 18
    TypeScript 7 has no tsserver.js: keep typescript@6.
  • "typescript-language-server: starting" never ends. The server found no TypeScript it can use,
    most often because npm install -g typescript installed TypeScript 7, and t-code does not show its
    error. Check with npm ls -g --depth=0, then sudo npm install -g typescript@6 (or
    npm install -D typescript@6 in the project) and restart t-code. A project whose TypeScript is
    in a subfolder (web/node_modules/typescript) is not found either: open that subfolder as the
    project.
  • Snap: language servers installed outside the snap are not seen. The strictly confined package
    sees only its own files, so servers installed with npm, pipx, go install or cargo install stay
    "not installed" there (clangd comes inside the snap). Use the Copr, PPA, .deb, Arch or Void
    package for other languages.

What's Next (0.5.2)

  • A performance release: saving big files, the remaining big repository stalls, and memory
    measured for Java and Python projects next to C.

Full Changelog: v0.4.2...v0.5.1