Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 29 Nov 2026. What's built · Install 0.6.0
jadpo
ReferenceErrors

ErrorsTools · rule

cli.rename_arguments

On this page

A jadpo rename command names a declaration or field the project doesn't have, one it doesn't rename, or a new name that is taken or isn't one.

Area 14, Tools; not declinable; the next step is usually the agent's.

Why Jadpo refuses it

jadpo rename gives one declaration or field a new name everywhere code names it, and keeps what is stored under the old one. A name means one thing in a project, so a new name already in use would make two things of one, and the rename stops before it changes anything.

What it looks like

A new project, whose Visitor type is renamed to Greeting, the name its other type already has:

shell
jadpo new todo > /dev/nullcd todojadpo rename Visitor Greeting
jadpo rename

error Greeting is already declared

reason
Greeting is the type in domains/hello/types/greeting.jadpo, and a private name is unique within hello, so Visitor can't take it.
next
Choose another name, then run jadpo rename Visitor <new-name> (agent)
in use
Greeting  domains/hello/types/greeting.jadpo
rule
cli.rename_arguments
help
https://jadpo.dev/docs/errors/cli.rename_arguments

(agent) at the end of the next: line means your coding agent can make the fix itself.

How to fix it

If the name is taken, choose one the in use list doesn't hold:

shell
jadpo rename Visitor Guest

The list shows the names in use that share the new name's words, so a name that differs from them all can't clash.

If the name isn't one for its kind, write a type's or an entity's in UpperCamelCase and everything else's in lower_snake_case:

shell
jadpo rename greet welcome

The action, its file and every call take the new name.

If it names a field, name the field after its entity or type, and give it a name of its own:

shell
jadpo rename Todo.priority importance

The field takes its new name everywhere, and its column and rows stay where they are.

If it names a copied field, one a type brings in with pick: or include:, rename the field it copies, which the refusal names:

shell
jadpo rename CakeLine.cake dish

Every copy takes the new name with it.

If it names a package's declaration, rename one of your app's own instead, such as the function that calls it:

shell
jadpo rename read_postcode check_postcode

A rename never edits a package: an installed one is read-only, and its names are the ones it publishes.

Markdown for agents: /docs/errors/cli.rename_arguments.md.Built from Jadpo's main branch at commit 9080dc3.