GNU TeXmacsUser manualReferenceAboutEnglish
Troubleshooting
The agent does not start the server, or says that it has no tools

Run the command by hand (see Installing and connecting an agent, “Checking that it works”). On macOS check the quotes around the path with spaces, and that the path exists. Look at system/mcp.log in the home folder.

The agent cannot open a file

The path must be absolute, and inside one of the folders of TEXMACS_MCP_ROOTS if it is set. A path with .. or with a colon is refused. The agent sees the real path of a file, after symbolic links.

The agent cannot see the document that I have open

The files must be shared (Edit\(\rightarrow\)Preferences\(\rightarrow\)Other\(\rightarrow\)Share files open in several TeXmacs windows), in the home that both programs use; then the agent opens the same path. The list of documents says which files are open elsewhere.

The edits are refused

The answer of the agent says why. If the rule is “read only”, look at Tools\(\rightarrow\)Agents and at TEXMACS_MCP_READONLY. If it is one of the rules of content, see What an agent may not do: the definitions of the document cannot be changed by an agent, and links and files have to be plain. A “conflict” means that you changed the node after the agent read it: it must read it again.

No proposals appear

Proposals exist when you have the file open and the mode is Propose edits (I accept or reject them). In the mode “direct” the edit is applied; if nobody has the file open, it is applied to the file in the agent's own copy, and the agent saves. The menu Tools\(\rightarrow\)Agents shows up only once an agent has joined the file.

Tools\(\rightarrow\)Agents is not in the menu

The menu appears only while an agent is joined to the document of the current window, and only in the window that hosts the file: the first one that opened it. A second window of the file (another TeXmacs process, which joined the first) never shows it. To check, ask the agent for list_documents and look at the entry of the file:

The agent cannot save

When you have the file open and the mode is not direct, you save the file. When the agent could not join your window (read-only, “not joined”), its save is refused whatever the mode: the file is yours, and it must close the document and open it again.

The server keeps running, or uses a lot of the processor

It ends when the agent closes its end. An idle server uses about 1.5 per cent of a processor (a few per cent at most). Use the process list to stop a program which has outlived its agent.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".