Skip to main content
Version: Next

Troubleshooting

What you see, what causes it, and what to do. A finding with a code has a page of its own: see Validation.

kq: command not found​

kq is not installed, or npm's global folder is not on your PATH; your shell may word it differently. Install it as Install says. If it is installed, npm prefix --global prints the folder npm installs into: add its bin folder (on Windows, the folder itself) to PATH, and open a new terminal.

No Kanoniq commands in the Command Palette​

The extension is not installed, or VS Code is older than it needs: the extension needs VS Code 1.101 or later. Check the version under Help > About (Code > About Visual Studio Code on a Mac), and see Install.

kq init refuses and writes nothing​

A repository never holds another, so kq init refuses a folder that is a repository, is inside one or holds one, and names the kanoniq.repository.json in the way:

kq init: my-model/kanoniq.repository.json already marks a repository; one cannot hold another

It also refuses a folder that already has a model/ or a portal/, as kq init: x/model already exists. Either way it exits with 1. Run it in a folder of its own. See kq init.

kq build says to run kq init​

The path is not inside a repository: there is no kanoniq.repository.json at or above it. kq build, kq prune, kq arrange and kq portal:build need one, KB060. Run kq init in the model's folder, or point the command at the repository.

A .kq file has one error and is ignored​

The file is in a repository but outside its model/ folder, KB055. Move it under model/: only the files there are the model.

kq validate says 1 failed​

The model has a mistake, and kq validate exits with 1. Each error names its file, line and column, then the rule's code and what is wrong. A connection that names a component instead of its API prints, after the banner:

models/my-model/model/my-model.kq:15:5 error KQ022 Connection from Component "Web Shop" (my-model/storefront/web-shop) lands on Component "Order Service" (my-model/storefront/order-service); name the Interface or Channel it uses
models/my-model/model/my-model.g.kq:12:3 lint KQ103 Interface my-model/storefront/order-service/orders-api is derived but nothing names it any more; reference it or run kq prune
validated 1 model, 1 failed

Open the code's page, here KQ022, for what it checks and how to fix it. A lint, such as KQ103 here, is reported but fails nothing unless you run with --strict.

kq validate fails in a new repository​

A repository kq init makes checks the recommended policies, and a policy finding at error makes kq validate exit with 1. The findings are listed under policy findings:, each with the policy it breaks. State what the policy asks for, such as a call's auth, or set how strictly the policies are checked. See Govern the landscape.

The viewer says to sign in instead of drawing​

Seeing the diagram needs you to be signed in to Kanoniq, on the free plan or a paid seat. Run Kanoniq: Sign In from the Command Palette: it shows a short code and opens the Customer Hub page where you confirm it. With no seat assigned to you, you are on the free plan, which draws the diagram. See Your license.

No Show Kanoniq Viewer on the menu​

It is offered on a .kq file or the model/ folder in the Explorer, so right-click one of those, not another file or folder. On an open .kq file, the Kanoniq button in the editor's title bar opens the viewer too.

The viewer shows an old picture under a banner​

The model does not build. The viewer keeps its last picture, and the banner says how many errors stop the build; each error opens its position. Fix the errors in the Problems panel, and the picture follows. See When the model does not build.

kq svg says it comes with a paid seat​

kq svg, kq png and kq portal:build need a license, and exit with 3 without one. Sign in with kq login to the seat assigned to you, or, in a pipeline, use a CI license.

The site was opened from disk. A page links to another by its folder, which a browser opens as that folder's index.html only over HTTP. Serve the site from a web server instead. See kq portal:build.

A rename lost what was bound to an element​

The Code was changed by hand, and the build could not match the element to its previous Id; it printed what it could not match. Rename with Rename (F2) in VS Code, which keeps the Id. See Change a model safely.

© 2026 Extenza Works. All rights reserved.