Skip to content
AlbertCode SWE

Module 12 · 8 min

When something goes wrong

A health check, the fixes for the usual problems, and how to report one without giving away keys or code.

By the end of this module you can

  • Run a health check of AlbertCode SWE, your model and your build tools
  • Fix the usual problems: a stuck service, tests that don't run, a refused acceptance
  • Report a problem without sharing keys, tokens or private code

Most problems have a short fix, and the guide's Troubleshooting page lists them. Start with a health check.

The health check

Terminal
albertcode --version
albertcode status
albertcode doctor
albertcode models test
  • albertcode status says whether the service is running here, and which version.
  • albertcode doctor shows which build tools AlbertCode SWE can find.
  • albertcode models test checks that your model can drive AlbertCode SWE.

The usual problems

What you see What to do
albertcode: command not found Open a new terminal. The installer added the command to your PATH, and only new terminals pick that up
The service seems stuck Run albertcode stop, then albertcode again
Tasks stall early The model may not handle tool calling well. Run albertcode models test
Tests don't run Run albertcode doctor to see which build tools AlbertCode SWE can find. Install the missing one, or put it on your PATH
Acceptance is refused A file the change touches was edited after the task started. Look at your edits, then run the task again
Your provider isn't connected after an update Saved keys are cleared when a new version first starts. Run /connect again
Every step is slow Each step is one request to your model. Try a faster model, or the fast pace, which skips the two reviews

Installing and uninstalling

  • PowerShell won't run the install command. Your organisation may block scripts. Download the .cmd installer from the release and double-click it instead.
  • Windows says "Access is denied". AlbertCode SWE was still open somewhere: another terminal, VS Code, or its service. Close every terminal and VS Code window using AlbertCode SWE, or run albertcode stop, then run the installer again.
  • The uninstall script fails. Run albertcode uninstall instead. It needs nothing from the internet.
  • You want to see what an installer did. Everything an installer run did is written to its log: ~/.local/share/albertcode-installer/install.log on macOS and Linux, and %LOCALAPPDATA%\AlbertCode\install.log on Windows.

Reporting a problem

Report a bug in the public repository's Issues, with albertcode --version and your operating system. Never include keys, tokens or private code.

If you find a security problem, report it privately, as the security policy describes. Don't open a public issue (FAQ).

Practise

Match the symptom to the fix

These are the problems people meet most. Match each to what the guide says to do.

A health check

Run these whenever something seems wrong, and before you report a problem.

  1. 1

    Which version is installed, and whether the service is running here (albertcode status):

    albertcode --version
  2. 2

    Which build tools AlbertCode SWE can find:

    albertcode doctor
  3. 3

    Whether your model can drive AlbertCode SWE:

    albertcode models test
  4. 4

    Practise the stuck-service fix: stop it, then start albertcode again.

    albertcode stop
  5. 5

    To report a bug, open an issue with albertcode --version and your operating system. Never include keys, tokens or private code, and report a security problem privately, not in an issue.

Check your understanding

6 questions. Answer 5 correctly to complete the module. Checked here, in your browser.

  1. 01The service seems stuck. What does the guide suggest first?
  2. 02pytest works in your own terminal, but albertcode doctor can't find it. What is the likely cause?
  3. 03Does AlbertCode SWE work offline?
  4. 04PowerShell refuses to run the install command on a work computer. What does the guide suggest?
  5. 05Where does an installer run write what it did, on macOS and Linux?
  6. 06You found a security problem in AlbertCode SWE. How should you report it?