Troubleshooting

This chapter helps when code intelligence, builds or file access do not work as expected.

A Language Server Does Not Start

When Aember cannot find a language server, it shows an alert named after the server, with the commands that install it. Aember shows the alert once per server for each project window.

ServerInstall
sourcekit-lsp (Swift)Install Xcode, or run xcode-select --install
clangd (C, C++, Objective-C)brew install llvm, or xcode-select --install
rust-analyzer (Rust)brew install rust-analyzer, or rustup component add rust-analyzer
pylsp (Python)brew install python-lsp-server, or pip install python-lsp-server
tsc (TypeScript, JavaScript)brew install typescript, or npm install -g typescript (version 7 or later)
intelephense (PHP)npm install -g intelephense

Aember looks for servers in the usual install folders first: /opt/homebrew/bin, /usr/local/bin, /usr/bin, ~/.local/bin, ~/.cargo/bin for rust-analyzer, and npm’s global folders for servers installed with npm. Then it looks on the PATH your login shell sets. A server installed anywhere else is not found.

After you install a server, close the project window and open the project again. Its servers start again, and the alert can show again if the server is still missing.

Also check that Enable Language Server Protocol is selected in the Code Tools pane of Settings. The Server Status line in that pane shows which languages have a running server. When it says No active servers, open a file of your project’s language and look again.

If a server stops unexpectedly, Aember starts it again after a short wait. After five stops within a short time, Aember stops trying. Opening another file of that language, or opening the project again, starts a new server.

Wrong or Missing Results from a Language Server

When completion, definitions or diagnostics are wrong or missing, the language server usually lacks the project’s build settings.

  • C, C++ and Objective-C: Aember makes .aember/compile_commands.json when the project opens and when its build file changes. Make sure the build tool (cmake, ninja, make or xcodebuild) runs, and that the build environment sets what the build needs. To make the database again, save the build file, or close the project window and open the project again. Each time clangd starts, Aember clears clangd’s index cache in .cache/clangd, so clangd indexes the project again.
  • Xcode projects: install xcode-build-server for the best results. Aember keeps an existing buildServer.json in the project folder. If it is wrong, for example after you change schemes, delete it, then close and open the project.
  • Swift packages: sourcekit-lsp reads Package.swift directly. Make sure Package.swift is in the project folder, not in a subfolder.
  • Rust: rust-analyzer needs Cargo.toml in the project folder.

To restart all of a project’s language servers, close the project window and open the project again.

Edit > Find Symbol… works only while a language server runs. Open a file of the project’s language first.

A Build Tool Is Not Found

When a build or test run cannot find its program, it does not start, and the build log says which program is missing.

Aember looks for build tools in these folders, then in the PATH your shell’s configuration sets:

  • /opt/homebrew/bin and /opt/homebrew/sbin
  • /usr/local/bin and /usr/local/sbin
  • /usr/bin and /bin
  • /opt/local/bin and /opt/local/sbin
  • ~/.local/bin
  • /Applications/CMake.app/Contents/bin

If your tool is somewhere else, give its full path in .aember/build.json, for example "build": ["/Users/me/tools/bin/make"]. A path relative to the project folder works too, such as "build": ["scripts/build.sh"]. See Customize Build Commands.

When Aember does not know the project’s build system, a build stops with a message that asks for a build command in .aember/build.json. A test run asks for a test command.

When a build is already running, Aember does not start another. The status bar says so. Stop the first run, or wait for it to end.

The Code Graph Is Out of Date

Aember updates the code graph when files change and checks every file again each time the project opens. Files whose contents did not change are skipped. When the installed language grammars change, Aember indexes every file again.

If an agent still gets old or missing results:

  1. Check that the files are not left out by .gitignore or .codegraphignore. Build folders, node_modules and similar folders are always left out.
  2. Close the project window.
  3. Delete .aember/codegraph.db in the project folder.
  4. Open the project again. Aember builds the graph from your source. The status bar shows its progress.

The code graph is separate from the language servers. Deleting it does not change completion, diagnostics or anything else in the editor.

Files and Folders Cannot Be Opened

Aember is not sandboxed. It opens files and runs tools with the permissions of your user account.

macOS protects some folders, such as Desktop, Documents, Downloads and removable volumes. The first time Aember opens a file in one of them, macOS can ask whether Aember may access it. If you answer no, Aember cannot read the files there. You can change your answer in System Settings, in Privacy & Security.

Aember remembers recent projects with bookmarks. When a recent project cannot be opened, for example because it moved or its volume is not mounted, the status bar says Failed to access recent project. Aember removes it from the list. Open the folder again with File > Open Folder… (⌘⇧O).

Build and test runs, and the language servers, run as your user account too. If one of them cannot read or write a file, its message appears in the build log or as a diagnostic.

Find Logs and Error Messages

Aember does not write a log file. It shows problems where they happen:

  • The status bar shows short messages, such as a build outcome, a build file change or code graph progress.
  • The build log shows everything a build or test command printed, with the command line itself. Choose Build > Show Build Log. See Read the Build Log.
  • Alerts show errors that need your attention, such as a missing language server.
  • The Find panel’s status line shows symbol search and rename results, such as LSP not available.

To see a build tool’s full output, run the same command in Terminal, in the project folder. The build log header shows the exact command Aember ran, and the name of the build environment it used.

Start Fresh

Most of Aember’s state for a project is in the project’s .aember folder. These steps reset one part at a time. Close the project window before you delete files.

To resetDo this
The language serversClose the project window and open the project again
The compilation databaseDelete .aember/compile_commands.json, then open the project
Xcode’s build server settingsDelete buildServer.json in the project folder, then open the project
The code graphDelete .aember/codegraph.db, then open the project
The active build environmentChoose Shared Variables Only from Build > Environment
The build environmentsRemove them in the Build Environments dialog
The build commandsDelete .aember/build.json

Deleting these files does not touch your source files or History. History is stored outside the project. See History.

Last updated November 22, 2026