${KICAD_TEAM_LIBRARIES}/acme/3dmodels/R_0603_1608Metric.step
KiCad Nightly Reference Manual
Copyright
This document is Copyright The KiCad Documentation Contributors. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later.
All trademarks within this guide belong to their legitimate owners.
Contributors
Seth Hillbrand
Feedback
The KiCad project welcomes feedback, bug reports, and suggestions related to the software or its documentation. For more information on how to submit feedback or report an issue, please see the instructions at https://www.kicad.org/help/report-an-issue/
Software and Documentation Version
This user manual is based on KiCad 10.99. Functionality and appearance may be different in other versions of KiCad.
Documentation revision: 99698456.
Introduction
The Design Workspace connects KiCad to a server that holds the libraries and designs of a team. With it, a team can share symbol and footprint libraries and release parts as numbered revisions. Designers can see who is editing a part, and release a design as a fixed set of files and part revisions.
The Design Workspace helps a team answer these questions:
-
Which version of a part is approved for use?
-
Who is changing this part now?
-
Which part revisions went into the boards that we sent to the factory?
-
Which parts in my design are not approved yet?
KiCad talks to the server through a backend. KiCad includes the Git backend, which uses an ordinary Git repository as the server. The repository can be on any Git host, or in a shared folder, and KiCad needs no other server software. A company can also install a backend for its product lifecycle management (PLM) system. Refer to Features that need a PLM backend.
The Design Workspace is off by default. When it is off, KiCad shows none of its controls, and team libraries work as ordinary libraries.
What the Design Workspace does not do
The Design Workspace does not control access, and it does not replace version control for your projects.
-
KiCad has no roles such as librarian or designer. Every person who can push to the team library repository can check in and release parts. To control who does what, use the permissions of your Git host. Refer to Roles and permissions.
-
An editing claim is advisory. It tells your teammates that you are editing a part, but it does not lock any file.
-
The Design Workspace does not commit or push your projects for you, except as one step of a design release. Use the version control tools of KiCad, or another Git program, for daily project work.
-
There is no review or approval step before a release with the Git backend. Some PLM backends add one.
If your company needs roles, approvals or a connection to its PLM system, you can have them customized. Refer to Custom workflows and PLM backends.
Where to start
This manual uses three roles. In a small team, one person can have all three.
| Role | Task | Read |
|---|---|---|
Administrator |
Makes the team library repository, gives access, and decides the team rules. |
Design Workspace concepts, Planning a Design Workspace, Administrator tasks |
Librarian |
Makes, checks and releases parts, and marks old parts Obsolete. |
Design Workspace concepts, Working with team libraries, Adding a new part, Changing a released part |
Designer |
Places parts, gets library updates, and releases designs. |
Design Workspace concepts, Designer tasks, Your first hour, Releasing designs |
The KiCad manual, the Schematic Editor manual and the PCB Editor manual describe what each program shows when the Design Workspace is on:
Design Workspace concepts
Save, check in and release
When you save a part in KiCad, you are saving locally and only your copy of the team library changes. This allows you to edit the part again or discard the change without affecting other team members.
By checking in the part, you make the part generally available to the rest of your team. Your teammates will get the updated part with their next library update and can place and use it even before it is approved. Even after checking in the part, you are still allowed to edit the part.
The initial "release" records the content of Rev 1 on the remote. Once you release a part, you can no longer edit that release. Any further edits will be part of Rev 2.
When working with designs and not libraries, the same procedure applies. You save the schematic and board, then commit and push them to the server. Releases for designs should generally be the version that goes to fabrication.
Team libraries
A team library is a set of symbol and footprint libraries that the team keeps in one Git repository.
The backend finds every .kicad_sym file, .kicad_symdir folder and .pretty folder in the repository, also in subfolders.
It ignores files and folders whose names start with a dot, for example .git.
Each designer sets up the team library once on each computer. KiCad then copies the repository to the computer and adds each library to the global symbol and footprint library tables. You edit the parts in your copy with the Symbol Editor and the Footprint Editor, as with any other library.
The library nicknames get a nickname prefix, for example acme_.
The team library acme that holds passives.kicad_sym gives the symbol library acme_passives.
The prefix can be empty.
Then the nickname is the file name without its extension, for example passives.
Every designer must use the same prefix.
A placed symbol stores the nickname of its library, for example acme_passives:R.
The footprint field of a team symbol stores a nickname too, for example acme_passives:R_0603.
If one designer sets up the team library with the prefix team_, KiCad on that computer cannot find either library.
KiCad records the prefix in the project file, and uses it when a teammate sets up the team library from the project.
The copies are in the team-libraries folder of your KiCad documents folder, one folder for each team library.
The path variable KICAD_TEAM_LIBRARIES points to this folder.
Refer to path variables.
Part lifecycle
Every part in a team library has one of five lifecycle states. The state controls whether KiCad will keep your edits to the part, and whether a design that uses the part can be released. You can see the state in the part infobar, in the Lifecycle column of the library tree, and in the symbol chooser.
| State | Can you edit it? | Can a design that places it be released? |
|---|---|---|
Not checked in |
Yes. The part only exists in your copy until you check it in. |
Only with an exception. |
Editable |
Yes. Anyone can edit the part and check in their changes. |
Only with an exception. |
Released |
Only after you click Revise. |
Yes. |
Not for New Designs |
Only after you click Revise. |
Yes, but KiCad will show a warning. Existing designs can keep the part, but you should not place it in new designs. |
Obsolete |
Only after you click Revise. |
Only with an exception. |
When you first make and save a part, it is Not checked in. Checking it in for the first time makes it Editable, and releasing it makes it Released at Rev 1. After that, the part stays Released, and each new release raises the revision number. When a part should no longer be used, you can mark its newest revision Not for New Designs, or Obsolete if no design should use it at all. You can switch between Released, Not for New Designs and Obsolete at any time. The remote keeps a record of each change along with your name.
Revisions
The first release for a part is always Rev 1, followed by Rev 2, Rev 3 and so on. Revisions are immutable, meaning that once you release a revision, you cannot change it or undo the release. If Rev 1 has the wrong pad then every design with the Rev 1 footprint has that wrong pad.
To fix the error, your first step is to revise the part and edit it. The infobar always shows if your copy still matches Rev 1. However, until you release the fix as Rev 2, your teammates will still see Rev 1 as the footprint.
To determine if the copy matches, KiCad compares the content of the footprint with its last revision. Any change to the content of the footprint including properties like value and keywords will make the footprints differ. But changing the file date will not affect the matching. When the content still matches the latest release, KiCad hides the part’s Release… link.
The combination of library file and part name together identify a part. This means that if you rename the part or move it to a different library, the part is considered as new and will have no release history. Its next release is therefore Rev 1.
Revise a part or make a new part
When making a new revision, keep in mind that the part will replace the existing versions in use in existing designs when updating. Therefore, it is important to ensure that releases match both land patterns and functionality with existing releases.
The following table will help you to decide if you should make a new revision or create a new part.
| Revise the part | Create a new part |
|---|---|
Correct a field, a description or a datasheet link |
Change the pin numbers or pin functions |
Correct the symbol graphics (not pins) |
Change the number, size or position of footprint pads |
Add a 3D model or correct its position |
Change the MPN to a non-direct replacement |
When you make a new part that is intended to replace the use of the old one in your organization, mark the old one Not for New Designs or Obsolete.
Editing claims
When you revise a part, KiCad takes an editing claim on it. The claim tells the other designers that you are editing the part. For them, KiCad shows the part as being edited by you and does not keep their edits to it. KiCad removes the claim when you release the part or cancel the revision.
With the Git backend, claims are advisory. Only KiCad respects them, and a Git program can still push a change to a claimed part. If a designer leaves a claim in place and is not available, another designer can release the claim and give a reason. KiCad tells the holder who released the claim and why.
A team library has one branch, the default branch of its repository. All check-ins go to that branch. Two designers can edit different parts of the same library file at the same time. KiCad merges their changes when they get library updates. If they change the same part, KiCad asks the second designer how to resolve the conflict. Refer to Resolving library conflicts.
You can also claim the files of a project, for example a board that you route. These claims are advisory too. Refer to Claims on project files.
How library changes reach a design
When you place a symbol or footprint, KiCad copies it into the schematic or the board. From then on, the design keeps its own copy and does not follow changes in the library. For example, if Rev 3 of a resistor is released while your board uses Rev 2, the board will keep Rev 2 until you update it. This applies to both released and unreleased designs. To use Rev 3 in the design, follow these steps:
-
Get library updates, so that the copy of the team library on the computer has Rev 3. Refer to Getting library updates.
-
Update the symbols with Update Symbols from Library in the Schematic Editor, and the footprints with Update Footprints from Library in the PCB Editor.
-
If the symbol change affects the board, run Update PCB from Schematic.
Design release
To find which files and part revisions went to the factory months ago, read the baseline for that board. Each design release adds a numbered baseline to the project repository. It records the project commit in Git and the revision of each placed team part, along with your release note and any exceptions.
Before KiCad writes the baseline, it checks each placed symbol and footprint from a team library against the released revisions. If a part has no match, it blocks the release.
To resolve this, you must either release the part or record an exception with a short reason that details why you should use the part as placed.
An exception is useful in that it can allow a team to tag a release before all parts are approved, for example, when placing a prototype or small run order. You want to have an immutable revision for the boards that you are testing and your process may include testing a footprint on board before it is approved for wider usage. Before production, check the exceptions in the last baseline for parts that still need work.
Projects in one repository share the same sequence of baseline numbers. Baseline 1 can belong to one project and Baseline 2 to another. If each project must start at Baseline 1, give each its own repository.
Roles and permissions
KiCad has no roles. With the Git backend, the permissions of your Git host decide what each person can do.
| Git host permission | What the person can do |
|---|---|
Read the team library repository |
Set up the team library, get library updates, and place team parts. |
Push to the default branch of the team library |
Check in parts. |
Push tags that start with |
Release parts, and mark parts Released, Not for New Designs or Obsolete. |
Push references that start with |
Revise parts, cancel revisions, and release the claims of other designers. |
Push to the project repository, including tags that start with |
Release the design. |
Many Git hosts can protect tags by a name pattern.
For example, a team can let all designers check in parts, but let only the librarians push tags that start with kicad/rel/.
When the host refuses a push, KiCad shows the message of the host.
How you configure the protection depends on your Git host.
Refer to Giving access on the Git host.
Planning a Design Workspace
Make the decisions in this chapter before you set up the team library. Some of them are difficult to change later. For example, a part that you rename or move after its release starts again at Rev 1.
Choosing a workflow
The Design Workspace works for one designer and for a large organization. The difference is in who may check in and release, and how strict the release rules are.
| Team | Typical rules | Workflow |
|---|---|---|
One designer |
You do all the tasks. The team library gives you a history of each part and a record of each board that you release. |
|
Small team, where all designers make parts |
All designers check in and release parts. A second designer checks a new part before its release. Prototypes are released with exceptions. |
|
Organization with librarians |
Designers check in new parts, but only librarians release them. The Git host enforces this. Production releases have no exceptions. |
|
Organization with a PLM system |
Change orders and approvals come from the PLM system. |
Features that need a PLM backend, Custom workflows and PLM backends |
You can change from one workflow to another later. For example, a small team that grows can protect the release tags and name librarians. Refer to Roles and permissions.
Custom workflows and PLM backends
Some companies need more than the Git backend supplies. Examples are roles that KiCad enforces, an approval step before a release, or a connection to a PLM or ERP system.
KiCad Services Corporation and KiCad Europe OÜ make these backends, roles and workflows for companies under contract. They can customize them for the systems and the procedures of your company. Refer to Professional support.
Number of team libraries
Each team library is one Git repository. One team library for the whole team is the easiest to use. Each designer sets up each team library once on each computer.
Use more than one team library in these cases:
-
Different groups own different parts, for example a connector group.
-
Different people need different access, for example a contractor who may read only some parts.
-
A customer gives you a library that you must keep separate.
A project can use parts from several team libraries.
Library layout
Put the libraries anywhere in the repository, also in subfolders.
Group the parts into library files by category, for example passives.kicad_sym, connectors.kicad_sym and passives.pretty.
Note that the nickname only comes from the file name, and KiCad ignores the folder.
This means that power/passives.kicad_sym and rf/passives.kicad_sym will both become acme_passives, and KiCad will only add one of them to the library tables.
To avoid this, give each library file a name that is unique in the repository.
A symbol library can be a .kicad_sym file or a .kicad_symdir folder.
A .kicad_symdir folder keeps each symbol in its own file.
Refer to the Schematic Editor manual.
Decide the file names and part names before the first release. KiCad identifies a part by its library file and its name. Refer to Revisions.
Nickname prefix and name
Each team library has a nickname prefix and a name. Use the same prefix and the same name on every computer.
The prefix is the start of each library nickname.
Use a short prefix that no other library uses, for example acme_.
A prefix prevents a clash with the libraries that come with KiCad.
Use an empty prefix only to keep the nicknames of libraries that your designs use already.
Refer to Moving existing libraries to a team library.
The name is the folder name of your copy, for example acme.
The paths to 3D models include it.
3D models
Keep the 3D models in the team library repository, for example in a 3dmodels folder.
Every designer then gets them with the libraries.
In each footprint, use a model path that starts with the path variable KICAD_TEAM_LIBRARIES and the name of the team library:
This path works on every computer where the team library has the name acme.
KiCad checks in only library files. Add, change and remove 3D models with a Git program, and push them to the default branch. Designers get them the next time that they get library updates.
Projects and repositories
Keep each project in its own Git repository with a remote. A design release puts a tag in the repository of the project. Do not put projects in the team library repository.
Baseline numbers count up for each repository. Refer to Design release.
Team rules
Write down the rules of your team, and give them to each designer before they start. Answer these questions:
-
Who may release parts?
-
Must a second person check a part before its release? What do they check? Refer to Checking parts before release.
-
When may a design be released with exceptions? A typical rule allows exceptions for prototypes, but not for production.
-
How does a designer ask for a new part?
-
Who may mark parts Not for New Designs or Obsolete?
-
How long may a claim stay in place? Who may release the claim of another designer?
-
How does a baseline relate to the revision of the board?
Baseline numbers are counters. They do not replace the board revision that your company uses, for example Rev A or Rev B. Write the board revision in the release note, and in the title block of the schematic and the board.
Setting up a Design Workspace
Do the setup in this sequence:
-
Plan the team library and write the team rules. Refer to Planning a Design Workspace.
-
The administrator makes the team library repository and adds the existing libraries.
-
The administrator gives each person access on the Git host.
-
Each designer sets up the team library on each computer.
| Try the Design Workspace with a test repository first. Releases and baselines are permanent, and the history of the team library keeps every test part. |
Requirements
To use the Design Workspace with the Git backend, you need:
-
The Git backend,
kicad-mdw-git, installed next to the KiCad programs. The KiCad installers include it. If the Backend list offers no Git entry, the backend is missing. -
A Git repository for the team library that every designer can read. The designers who check in parts must be able to push to it.
-
Your name and email address in Git. KiCad records check-ins, releases and claims under them. Refer to Setting the commit author.
-
To release designs, a project in a Git repository with a remote. Refer to Putting a project under version control.
Administrator tasks
Making the team library repository
-
Make an empty repository on your Git host, for example
acme-library. On a shared folder, make a bare repository with the commandgit init --bare acme-library.git. -
Clone the repository with a Git program.
-
Copy the library files and the 3D models into the repository. Refer to Library layout and 3D models.
-
Commit the files and push them to the default branch.
You can also start with an empty repository. The designers then make the parts in KiCad and check them in.
KiCad saves library files in its current format. When it saves a file from another program or an older KiCad version for the first time, it rewrites the whole file. The first check-in of that file can show many changed lines in Git, though only one part changed. To prevent this, convert the libraries before you commit them:
kicad-cli sym upgrade --force passives.kicad_sym kicad-cli fp upgrade --force passives.pretty
The same commands convert libraries from other programs, for example Altium or EAGLE libraries.
Use the --output option to write the converted library into the repository.
Refer to the Command-Line Interface manual.
If the designers already use the team library, a librarian upgrades its symbol libraries from the Symbol Editor instead. Refer to Upgrading the file format of a team library.
Moving existing libraries to a team library
When you move libraries that your designs use already, do two tasks:
-
Put the libraries in the team library repository. Refer to Making the team library repository.
-
Make sure that the existing designs and the symbols still find their parts.
A placed symbol stores a library nickname, for example passives:R.
The footprint field of each symbol stores a nickname too.
KiCad does not change these links when you move libraries.
Select one of these methods.
Keeping the old nicknames
Use an empty nickname prefix, so that each team library keeps the nickname of the old library. The existing links then work without a change.
-
On each computer, click Preferences → Manage Symbol Libraries… and remove the rows of the old libraries.
-
Click Preferences → Manage Footprint Libraries… and remove the rows of the old footprint libraries.
-
Set up the team library with an empty Nickname prefix. Refer to Setting up a team library.
KiCad does not replace a library table row that has the same nickname as a team library. It does not add that team library, and it tells you which nicknames clash. If all the nicknames clash, KiCad cancels the setup and tells you to set it up again with a nickname prefix.
Using new nicknames
Use a nickname prefix, and change the links to the new nicknames:
-
Before the first check-in, change the footprint field of each symbol in the team library to the new footprint nickname.
-
In each existing design that you continue to change, use Tools → Edit Symbol Library Links… in the Schematic Editor. Refer to Updating and exchanging symbols.
-
In the PCB Editor, use Edit → Change Footprints… to change the footprint links. Refer to Updating and exchanging footprints.
Old designs that nobody will change again do not need to be relinked. Each schematic and board holds its own copy of every placed part, so it will still open without the old libraries.
Releasing the moved parts
After the move, every part will be Editable and will have no revisions. You should check each part as described in Checking parts before release before you release it.
If you have many checked parts, you can release them in one step. Select them in the library tree of the Symbol Editor or the Footprint Editor, right click, and click Lifecycle → Release…. However, leave out any part that nobody has checked yet, because a release cannot be undone.
Giving access on the Git host
Each person needs an account on the Git host. The access that they need depends on what they will do with the team library. Refer to Roles and permissions for the permissions that each task needs.
| Person | Access on the Git host |
|---|---|
Places parts only, for example a contractor |
Read access to the team library repository is enough. |
Checks in parts |
Needs write access to the team library repository. |
Releases parts, when your team lets only librarians do that |
Needs write access to the team library repository, and permission to push the protected tags. |
Releases designs |
Needs write access to the project repository. |
If only librarians are allowed to release parts, protect the tags that start with kicad/rel/ and kicad/state/, so that only librarians can push them.
Designers need to be able to push directly to the default branch of the team library. KiCad pushes each check-in straight to that branch, so if the branch requires merge requests, every check-in will be refused.
Note that many Git hosts do not accept an account password over https://, and require a personal access token instead.
You should tell each designer how to create a token on your host.
Designer tasks
Each designer needs to do these steps once on every computer where they plan to use the Design Workspace.
-
Install KiCad.
-
Set your name and email address in Git, so that KiCad can record who made each check-in and release. Refer to Setting the commit author.
-
Turn on the Design Workspace, as described in Turning on the Design Workspace.
-
Set up the team library, as described in Setting up a team library. If you already have a project open that uses the team library, KiCad will offer to set it up for you. Refer to Opening a project that uses team libraries.
Turning on the Design Workspace
-
Click Preferences → Preferences… and select the Design Workspace page.
-
Select Enable workspace integration.
-
Optionally, select a Default backend. KiCad will offer this backend first whenever you connect a project or a team library. If you would rather choose each time, leave it at (none).
-
Click OK.
There is no need to restart KiCad. An infobar in the project manager will confirm that the Design Workspace is on. Once a project is open, you will also see a Design Workspace line at the top of the Version Control panel. Refer to The Design Workspace line.
If you want to turn the Design Workspace off again, clear Enable workspace integration. KiCad will stop the backends and remove the Design Workspace controls. However, it keeps your team library copies and your library table rows.
Setting up a team library
Before you start, get the location, the name and the nickname prefix of the team library from your team rules. These three values need to be the same on every computer. Otherwise, the library nicknames and the 3D model paths in your designs will not match between computers.
-
Open a project in the project manager.
-
In the Version Control panel, click ⋯ → Connect Team Library….
-
Fill in the fields of the Set Up Team Library dialog, using the table below as a guide.
-
Click Test Connection. If KiCad can reach the repository, it will show "Connected to Git as name (email)."
-
Click Set Up.
| Field | What to type |
|---|---|
Backend |
Select Git. |
Location |
The address of the repository, in the same form that you would give to |
Name |
A short name such as |
Nickname prefix |
The text that KiCad adds in front of every library nickname, such as |
Username, Password |
You only need these if the server asks you to sign in. Some hosts want a personal access token in place of a password, so type the token in the Password field. A folder path does not need either. |
While KiCad copies the repository, it shows "Getting acme…".
Once the copy finishes, the libraries will appear in your global symbol and footprint library tables.
For example, with the prefix acme_, the files ics.kicad_sym, passives.kicad_sym and passives.pretty become the symbol libraries acme_ics and acme_passives and the footprint library acme_passives.
Your copy is stored in the team-libraries folder of your KiCad documents folder, which is Documents\KiCad\10.99\team-libraries\acme on Windows.
You should only change those files with KiCad.
Refer to Using Git programs with a team library.
KiCad will not set up the same location twice.
If you typed a different prefix for a location that is already set up, KiCad tells you which prefix it already uses.
If another team library already has the name that you typed, you will see "A source named 'name' already exists."
If the team-libraries folder already contains a folder with that name, KiCad asks you to move that folder first.
KiCad stores passwords and tokens in the password store of your operating system.
For SSH addresses, it uses your SSH agent and the keys in your .ssh folder.
Note that KiCad never stores the passphrase of an SSH key.
Refer to Credentials and SSH keys.
Opening a project that uses team libraries
When you save a schematic or board that uses team parts, KiCad writes the location, name and nickname prefix of each team library into the project file. This means that a teammate who opens the project on a computer without the team library will see one of these prompts:
| Where | What KiCad shows |
|---|---|
Design Workspace line |
"1 team library not set up", and a Set Up Libraries… button if the project is connected. |
Schematic Editor and PCB Editor |
"Team libraries this project uses are not set up on this computer", with a Set Up… link. |
Schematic Editor and PCB Editor, with the Design Workspace off |
"This project uses team libraries. Turn on Design Workspace integration to use them.", with a Preferences… link. |
Both Set Up Libraries… and Set Up… use the values from the project file. Your teammate does not need to type anything, and will get the same nicknames as you. KiCad shows its progress and then lists each team library under "Team libraries set up on this computer:". The Set Up Team Library dialog will only open if the server needs a sign-in, or if a team library with that name is already set up.
Workflows
The workflows in this chapter connect the procedures of the later chapters. Change them to agree with the rules of your team. Refer to Team rules.
Your first hour
The first requirement is read access to the team library.
-
Turn on the Design Workspace in the preferences (Turning on the Design Workspace).
-
Open a team project. If your computer lacks the team library, both the Schematic Editor and the PCB Editor will show a Set Up… link. Click the link to copy the library with the settings from the project. Refer to Opening a project that uses team libraries.
-
Test this in the Schematic Editor by opening the Choose Symbol dialog. Then, find a symbol marked Released in the Lifecycle column and try to place it.
-
Save the schematic. The project file should now list the team library.
-
Commit and push the project, as in Committing and pushing. Teammates who open the project without a copy of the library will see the same Set Up… link.
-
Run the ERC. For each placed part that doesn’t match a released revision, the ERC reports Team library part is not released.
Small team workflow
In a small team, all designers make, check in and release parts. What follows is an example workflow although it is not the only option.
-
Alice needs a part that is not in the team library. She makes it in the team library and checks it in. Refer to Adding a new part.
-
Bob checks the part. Refer to Checking parts before release.
-
Either Alice or Bob then releases the part.
-
Charlie can then place the part and will get library updates when either Alice or Bob release parts.
-
For a prototype, Alice releases the design. Parts that are not released yet get an exception with the reason, for example "Footprint not checked against the prototype". Refer to Releasing a design.
-
After the prototype, Alice corrects the parts and releases them. She updates the placed parts and releases the design again, without exceptions, for production.
Alice, Bob and Charlie coordinate with editing claims. Before revising a part, they look at the part infobar to see whether another designer is editing it. The Editing column of the Workspace page shows who is editing each part of the team libraries. Refer to The Workspace page.
Organization workflow with librarians
In an organization, librarians own the team library. Designers propose parts, and only librarians release them.
Setup:
-
The administrator protects the tags that start with
kicad/rel/andkicad/state/on the Git host, so that only librarians can push them. Refer to Giving access on the Git host. -
The team rules say how designers ask for a new part, for example with an issue in the issue tracker of the team library.
Daily work:
-
Alice asks for a part. If the team rules allow it, Alice makes the part and checks it in. The part is Editable, and Alice can place it at once.
-
Louis (a librarian) checks the part, corrects it, and releases it. If Alice clicks Release…, the Git host refuses the push of the release tag, and KiCad shows the message of the host. Alice can still check in, because the host refuses only the tag.
-
Alice gets library updates and updates the placed part. Refer to Getting library updates.
-
Alice releases a prototype with exceptions for the parts that are not released.
-
Before a production release, the lead engineer reads the exceptions of the last baseline and makes sure that no part is blocked. To show the exceptions, run
git show kicad/design-rel/nin the project folder.
KiCad does not prevent a production release with exceptions. If production releases must have no exceptions, you will need to write that in your team rules.
Adding a new part
-
Get library updates, so that you do not make a part that a teammate made already. Refer to Getting library updates.
-
Make the footprint in the Footprint Editor, in a library of the team library. Save it.
-
Make the symbol in the Symbol Editor, in a library of the team library. In the footprint field, use the nickname of the team footprint library, for example
acme_passives:R_0603_1608Metric. Save it. -
Check in the footprint and the symbol. Refer to Checking in parts.
-
When the part is checked, release the footprint first, then the symbol. KiCad warns when you release a symbol whose footprint was never released. Refer to Releasing a part.
Checking parts before release
It is critical to check a part before release as a revision cannot change and once that part is released, any errors will stay with that revision forever. You will always want to fully check each part against the manufacturer’s datasheet before releasing it. Many teams have as part of their workflows, a second designer to review a part before release.
When checking the symbol, make sure that the pin numbers and pin names agree with the datasheet.
The electrical type of each pin also matters, because the ERC uses it and will give wrong results if a type is wrong.
For the footprint, compare the pads with the land pattern that your company uses.
The 3D model should sit on the pads, and its path needs to start with ${KICAD_TEAM_LIBRARIES}.
Finally, check that the footprint field of the symbol names a footprint from the team library.
Every field that your team requires, such as the manufacturer part number, should also have a value.
For a revised part, it is easiest to start with what changed. Open the History dialog, select a version and click Compare to see differences between the current and previous versions. Refer to Viewing the history of a part. Before releasing a change to a part, it can be useful to see where the part is used in your system. Select the part on the Workspace page and click Find in the Where used row to see where the open project uses it. Refer to Details and actions.
Changing a released part
-
Decide whether the change needs a new revision or a new part. Refer to Revise a part or make a new part.
-
Get library updates.
-
Open the part and click Revise in the part infobar. KiCad takes an editing claim. Refer to Revising a released part.
-
Change the part and save it.
-
Release the part. Write what changed in the comment.
-
Tell the designers who use the part. Each designer gets library updates and decides whether to update the placed parts in their designs.
Released designs do not change. A designer updates a placed part only in a design that they continue to change.
Retiring a part
Retire a part in two stages. In the first stage, existing designs continue to use the part, but new designs move to the replacement. In the second stage, no design can be released with the part unless the designer records an exception.
-
If there is a replacement part, make it first.
-
Open the old part, and click More → Mark Not for New Designs in the part infobar. A design that places the part can still be released, but the ERC and the Release Design dialog warn about it.
-
Tell the designers the name of the replacement. The Git backend cannot store a comment with a change of state, so the state alone does not tell them what to use.
-
When no design may use the part any more, click More → Mark Obsolete.
A design keeps its placed copy of the old part until a designer replaces it. Refer to Marking a part Not for New Designs or Obsolete.
Changing a released design
A design release does not lock the project. You continue to change the design, and the next release gets the next baseline number.
To see a released design, open the Advanced Git window and look at the tag kicad/design-rel/n on the Tags page.
Refer to Tags page.
To change an old release while new work continues, make a branch from its tag.
Working with a contractor
Give the contractor read access to the team library. Refer to Giving access on the Git host. The contractor sets up the team library and places released parts.
If the contractor needs a new part, they make it in a project library and send it to you. A librarian adds it to the team library, checks it, and releases it. The contractor then gets library updates and changes the placed part to the team part.
Working without a connection
When KiCad cannot reach the Git host of a connected project, the Design Workspace line changes to "Git · Offline · last connected time". KiCad continues to try to connect.
Offline, you can still edit and save your designs and place parts from your copy of the team library. You can also edit and save team parts that are not released, and parts that you revised before you went offline.
These tasks need a connection:
-
Check in parts.
-
Release parts, and change their state.
-
Revise a part, cancel a revision, or release a claim.
-
Get library updates.
-
Release a design.
If one of these tasks fails while you are offline, KiCad does not try it again later. Do the task again when the connection is available.
The claims that KiCad shows while you are offline are the claims that it saw last. A teammate can start to revise a part that you are editing, and KiCad cannot show that until it connects again. Get library updates before you check in.
Working with team libraries
You check in, release and revise parts in the Symbol Editor and the Footprint Editor. The commands are the same in both editors.
Getting library updates
Your copy of the team library changes only when you get library updates. Get them before you start work on a part, and when an editor tells you that updates are available.
-
Open the Symbol Editor or the Footprint Editor.
-
In the library tree, right click a library of the team library, then click Get Library Updates.
KiCad updates every library of that team library, also the libraries that you did not click. The library tree and any open part reload, and you do not need to restart. The status bar tells you what changed, for example "acme updated. Symbol libraries: 3, footprint libraries: 1, parts changed: 2".
In the project manager, ⋯ → Get Library Updates on the Design Workspace line does the same for the team libraries that the project uses. The Schematic Editor and the PCB Editor show "Library updates available" with a Get Library Updates link when a team library has new check-ins.
KiCad does not update while an editor has unsaved changes. It names those editors in "The following editors have unsaved changes" and leaves the files on disk as they are. Save or discard the changes, then try again.
An update keeps the changes that you saved but did not check in. If a teammate checked in a different change to the same part, KiCad asks you which version to keep. Refer to Resolving library conflicts.
Your schematics and boards still hold the old copies of their placed parts after an update.
If a schematic or a board of the project is open, KiCad offers Review Placed Part Updates….
It opens Update Symbols from Library in the Schematic Editor, or Update Footprints from Library in the PCB Editor.
For each footprint, the report shows the revision change, for example [Rev 2 → Rev 3].
Resolving library conflicts
A conflict occurs when you saved a change to a part that you did not check in, and another designer checked in a different change to the same part. For each conflict, the Resolve Conflict dialog shows the part, for example "'acme_passives:C' was changed both here and in the team library (1 of 1)."
Select one of these options, then click OK:
-
Open the merge tool combines the two versions field by field. It is available for symbols when KiCad has all three versions of the part. KiCad merges changes to different symbols of a library by itself and does not ask.
-
Keep my version keeps your part. You can check it in later.
-
Use the team library’s version replaces your whole part with the part from the team library. The dialog warns you that all your changes to the part are discarded.
The version that you do not keep goes into a backup folder under .kicad/backups in the team-libraries folder.
When KiCad finishes, a message says which version it kept of each part, for example "Kept your version of acme_passives:C. The team library’s version is saved.", and names the backup folder.
In a library file that still uses an older file format, resolving a conflict saves your copy of that file in the current format, as your first save of it would. You then check in all the changes in that file together. A released part whose only change is the file format stays released. Refer to Upgrading the file format of a team library.
If the part was deleted or added on only one side, the dialog says so and offers two options:
-
If you deleted the part and the team library changed it, select Keep it deleted or Use the team library’s version.
-
If you changed the part and the team library deleted it, select Keep my version or Delete it, as in the team library.
-
If the part exists only in the team library, select Leave it out or Use the team library’s version.
-
If the part exists only in your copy, select Keep my version or Leave it out, as in the team library.
The part infobar
When you open a part of a team library, an infobar above the canvas shows its state and the commands that apply to it. The infobar text has the part name, its state and its relation to the last revision, separated by dots.
| Infobar | Links |
|---|---|
R · Not checked in |
Check In… |
74LS125 · Editable · never released |
Check In… when the part has changes that are not checked in, Release…, History… |
R · Released · matches Rev 1 |
Revise, More |
R · Released · matches Rev 1 · revising |
Cancel Revision, More |
R · Released · differs from Rev 1 · revising |
Check In… when the part has changes that are not checked in, Cancel Revision, Release…, More |
R · Released · matches Rev 2 · Alice is editing this part |
Release Alice’s Claim…, More |
R · Obsolete · matches Rev 2 |
Revise, More |
The More menu holds the state changes and History…, when there is more than one of them. For a released part, it has Mark Not for New Designs, Mark Obsolete and History….
If a link is missing, the backend does not allow that action right now. The infobar will show the reason on a second line, for example "You may not check it in: The library’s server refused your last push". If a release fails because your copy of the team library is out of date, the infobar will offer Get Latest….
In the library tree, the Lifecycle column repeats the state and adds "revising (you)", "name editing" or "modified". "modified" marks a part with unsaved changes in the editor. Right click a part for the same commands under Lifecycle. There, Change State… lists the states that you may select, and the claim command has the name of the designer, as in Release Bob’s Claim…. To check in or release several parts at once, select them all in the tree first.
Checking in parts
To share a new or changed part:
-
Save the part. The infobar of a new part reads "R · Not checked in".
-
In the library tree, right click the library, then click Check In Team Library Changes…. You can also click Check In… in the part infobar. If the library has unsaved changes, KiCad asks whether to save them first.
-
The Check In dialog lists your changes that are not checked in. The Change column says New, Modified, Deleted or Moved to file. Clear the check box of each change that you do not want to check in.
-
Type a Comment that says what you changed.
-
Click Check In.
The dialog then shows the result of each change, for example "R Checked in", and a summary such as "1 checked in.". Click Close. The part infobar no longer says "Not checked in".
The Check In dialog lists the changes in every library of the team library. Only the changes in the library that you clicked are selected. Select other changes to check them in too. If there is nothing to check in, KiCad says "'acme' has no changes to check in."
If another designer checked in after your last update, the dialog offers Get Library Updates and Check In Again. Click it to get their changes and check in yours on top. If their check-in changed the same part as yours, the button reads Get Library Updates. Click it, resolve the conflict, and check in again. Refer to Resolving library conflicts.
| The first check-in of a library file from another program can show many changed lines in Git. Refer to Making the team library repository. |
Upgrading the file format of a team library
When a symbol library of a team library uses an older file format, the Symbol Editor offers to upgrade it. The command is available only if you can check in to the team library.
-
Save or revert your changes to the library.
-
In the library tree, right click the library, then click Upgrade Team Library Format….
-
KiCad warns that KiCad versions older than this one cannot read the upgraded files. Click Upgrade.
KiCad saves every symbol of the library in the current file format and checks that in as one change. No part is revised, and released parts stay released. The other designers get the upgrade with Get Library Updates, without conflicts.
If you already saved a library file in the current format, the command is not offered for it. Check In lists the file as Formatting only. Check it in together with the other changes in that file to upgrade it for the team.
KiCad does not check in a library file in an older format than the team library. If a teammate upgraded the library with a newer KiCad, get the library updates with a KiCad version that reads the new format.
Footprint libraries need no format upgrade, since each footprint is its own file.
Releasing a part
Release a part when someone has checked it and designs may use it. Refer to Checking parts before release. The part must already be in the team library, so check in a new part before you release it. Changes that you saved after the last check-in go into the release, and KiCad checks them in for you.
-
Open the part.
-
In the part infobar, click Release…. The Release Parts dialog shows the revision that the part will get, for example Rev 1.
-
If you want to say what the revision contains, type a Comment.
-
Click Release. If the part has unsaved changes, the button reads Save and Release, and KiCad saves the part first.
After the release, the infobar reads "R · Released · matches Rev 1", with "Released R as Rev 1" on a second line. It now offers Revise and More, and the Lifecycle column of the library tree shows Released.
When you release a symbol, KiCad also looks at the footprint that the symbol names. If that footprint is a team part with no release, the dialog tells you. When the dialog needs your confirmation, its button reads Release Anyway.
KiCad does not release a part from a library file that you saved in a newer file format than the team library. Check in the changes in that file first, then release the part.
To release a group of parts, select them in the library tree, right click, and click Lifecycle → Release…. KiCad releases them one at a time. To end the run early, click Stop After This Part.
Editing a released part
KiCad does not keep edits to a released part that you do not revise. If you change it, KiCad undoes the change and shows "R is released, so the change was not kept. Choose Revise to change it." The file is not changed.
KiCad also refuses to replace a released part when you save a symbol from a schematic into the library, or import a part with the same name.
Revising a released part
KiCad keeps no edits to a released part until you revise it. When you revise, KiCad takes an editing claim, so your teammates can see that you are working on the part.
-
Open the part and click Revise in the part infobar. The infobar changes to "R · Released · matches Rev 1 · revising".
-
Edit the part and save it. The infobar now says "differs from Rev 1 · revising".
-
Click Release…, then click Release in the dialog.
The part becomes Rev 2, and KiCad removes your claim.
Until you release, Rev 1 is still the revision that counts. You can check in your work in progress to share it with teammates. The ERC and the Release Design dialog ignore it, because they compare placed parts only with released revisions.
Cancelling a revision
To abandon a revision, click Cancel Revision in the part infobar. KiCad removes the claim, and the infobar returns to "Released · matches Rev 1".
If the part differs from the release, KiCad asks first: "Discard the changes to R and restore Rev 1?" Click Discard Changes to restore the released part.
Marking a part Not for New Designs or Obsolete
-
Open the part.
-
In the part infobar, click More and then click Mark Not for New Designs or Mark Obsolete.
The new state applies to the newest revision of the part. To undo the change, click More → Mark Released. You can also select the part on the Workspace page and click Change State…. Refer to Details and actions.
A part that is Not for New Designs can still pass a design release. The symbol chooser shows its state, and the ERC and the Release Design dialog warn about each placed part in that state. A part that is Obsolete blocks a design release unless you record an exception.
Viewing the history of a part
Click History… in the part infobar, or More → History… for a released part. The History dialog lists the versions of the part with the author, the date and the message of each. If your copy differs from the newest version, the first row is Working copy. To see what changed, select a version and click Compare, or double click the version. KiCad compares it with the previous version. To compare two versions with each other, select both, then click Compare. Right click a version for Compare with Previous and Save Copy…. If the first row is Working copy, the menu also has Compare with Working Copy.
While KiCad loads and compares the versions, the Compare Files window shows the progress. To stop the comparison, click Cancel.
To save a version to a file, select it and click Save Copy…, or right click it and click Save Copy…. KiCad suggests a file name made of the part name and the version, in the project folder. You cannot save over the library file that you are editing, and KiCad asks before it replaces another file. When the copy is saved, the line below the list says "Saved file".
Editing claims
When a teammate is editing a part
If another designer revised a part, your infobar names them, for example "R · Released · matches Rev 2 · Alice is editing this part". KiCad updates the infobar within about a minute of the claim. KiCad does not keep your edits to the part, and it does not offer Revise.
Wait until they release the part or cancel the revision, then get library updates. If you cannot wait, ask them first, then release their claim.
Releasing another designer’s claim
-
Open the part.
-
In the part infobar, click Release Alice's Claim….
-
Type the reason, then click OK.
KiCad removes the claim from the remote and records who released it and why. Your infobar says "Released Alice’s claim on R." and offers Revise. The next time Alice’s KiCad checks the remote, her infobar no longer shows the part as revising, and KiCad tells her who released the claim and the reason.
Alice keeps her saved changes in her copy. If she then checks in, her check-in and your revision can conflict. Refer to Resolving library conflicts.
Claims on project files
When the Design Workspace is on, the Advanced Git window has a Workspace page. For a connected project, it lists the files of the project and who is editing each. It also lists the parts of the team libraries, but you claim a part with Revise in the part infobar. To open it, click the gear button in the Version Control panel, click Open Advanced Git Window…, and select Workspace. Refer to The Workspace page. Select a file and click Start Editing to tell your teammates that you are editing it. Click Stop Editing when you are done. The same commands are in the Version Control submenu when you right click a file in the project files tree.
When you commit files that you are editing, the Version Control panel shows Stop editing after push. Select it to stop editing those files when the push finishes. If you commit a file that a teammate is editing, KiCad warns you that sharing the change may require a merge, and offers Commit Anyway or Remove from Commit.
Releasing designs
Connecting a project
Connect a project to release its design. You do not need to connect a project to use team libraries.
With the Git backend, the project must be in a Git repository with a remote. The design releases go to that remote.
-
In the Version Control panel, click Connect Project… in the Design Workspace line. The Configure Design Workspace dialog opens.
-
In Backend, select Git. The dialog shows the remote that the project uses, for example "Uses this project’s git remote: origin (…)".
-
If the remote asks for a sign-in, type your Username and Password or token. For an SSH remote, KiCad uses your SSH agent and your SSH keys. To use a different key, select SSH private key and the key file, and type the SSH key password.
-
Click Test Connection.
-
Click OK.
The Design Workspace line reads "Design Workspace Git · Connected as name (email)". KiCad stores the connection in the project file. After you commit and push the project file, each teammate who opens the project is connected too.
Releasing a design
You should always release the design before sending it for manufacture. This includes prototypes. Before you start, connect the project and make sure that it has a Git remote. Note that team parts that are not released will block the release. You can either release those parts first, or record exceptions for them in the dialog.
-
Click ⋯ → Release Design… in the Version Control panel. The Release Design dialog will open and check each placed team part against its releases.
-
If an editor still has unsaved changes, the dialog will show "The design has unsaved changes, so it is not committed yet. Save it, then commit and push it." In that case, click Save All.
-
If the project has changes that are not committed yet, you will see "The design has changes that are not committed yet. Commit and push them before releasing." Click Commit and Push… to fix this. Once you confirm, KiCad commits all of the changed project files as "Prepare release of project" and pushes them.
-
Look through the list of placed parts. The summary line shows you how many parts are blocked from release. E.g. "Releasing revision 977fc611 with 3 placed parts. 1 blocked part needs an exception."
-
Blocked parts have an error icon.
-
A warning icon means that the part will not stop the release.
-
-
For each blocked part, you must either release it or record an exception. Refer to Recording an exception.
-
Type a Release note and click Release Design.
While the dialog is open, you can still fix the design in the Schematic Editor and the PCB Editor. The dialog will check the design again when you return to it. However, the project manager is not available while the dialog is open, so use Commit and Push… in the dialog to commit your fixes.
When the release finishes, KiCad shows "Released the design as Baseline 1." and pushes the tag kicad/design-rel/1 to the remote of the project.
The status bar of the project manager will then read "Released · Baseline 1".
If you want to see what the baseline contains, run git show kicad/design-rel/1 in the project folder.
For each placed part, the Status column shows one of these results:
| Status | Blocks the release | Meaning |
|---|---|---|
Released, revision n |
No |
The placed part matches revision n. |
Revision n, newer revision m exists |
No, warning |
The placed part matches an older revision. Update the placed part from the library if you want the newer revision m. |
Not from a team library |
No, warning |
The part was placed from a library not managed by the workspace. It is listed in the baseline, but KiCad cannot check it. |
Never released |
Yes |
The library part has not yet been released. |
Differs from revision n |
Yes |
The placed part doesn’t match revision n. This can happen if someone edited it after it was placed or if the library has changes that were not released. |
Revision n is not for new designs |
No, warning |
Someone marked this revision Not for New Designs. |
Revision n may not be used in designs |
Yes |
Someone marked this revision Obsolete. |
'library' is not set up on this computer. Connect it, then open Release Design again |
Yes |
You need to set up the team libraries before KiCad can check parts from that library against designs. |
Recording an exception
Exceptions are generally short statements explaining why a part that would otherwise be blocked was allowed in a release. This can be helpful if you need to release a prototype before every part has been checked. The exception statement can then be reviewed prior to production release. Generally, you would update the parts in a design prior to final checks. This would resolve any exceptions that were based on pre-release parts that had since been released. Remaining exceptions could then be accepted or revised for the final release.
-
In the Release Design dialog, select the row of the blocked part. If several parts share the same reason, you can select all of their rows at once.
-
Click Record Exception….
-
Type the reason why the part may be released as placed, then click OK.
The reason will now appear in the Exception column, and the summary line no longer counts the part as blocked. Once no blocked parts are left, you can click Release Design.
Disconnecting a project
If you do not want the current project to use the workspace features anymore, you can click ⋯ → Disconnect on This Computer. KiCad will save your choice in the local project settings but leaves the shared project file and associated data intact. The Design Workspace status line then reads "Disconnected on this computer". Note that this does not remove the project from the remote server. The only changes are to local-only files.
When you want to reconnect, click ⋯ → Connect on This Computer. The Connect Project… button on the same line opens the Configure Design Workspace dialog with your existing data intact.
If you want to fully remove the connection from the shared files, click ⋯ → Unbind Project for Everyone… and click Unbind.
KiCad will then remove the connection from the .kicad_pro file, and the status line then reads "Not connected".
This will change the project file on your computer and if you push this change to the server, it will be visible to the whole team.
Troubleshooting
Setting up
| Problem | What to do |
|---|---|
The Backend list has no Git entry. |
The |
"There is no repository at location" |
The address is wrong, or the drive or network share is not available. Check the location in the library table options or set up the team library again. |
"These team libraries were not added because the global library tables already have libraries with the same names" |
Your library tables have libraries with the same nicknames. Remove the old rows, then get library updates. Or set up the team library again with a nickname prefix. Refer to Moving existing libraries to a team library. |
"'name' was not set up because libraries with the same names are already in the library tables. Set it up again with a nickname prefix." |
All the nicknames clash with existing libraries, so KiCad did not set up the team library. Refer to Moving existing libraries to a team library. |
"'name' is already set up with the nickname prefix 'prefix'." |
The team library is set up already. Use the prefix that it has, or ask your administrator which prefix the team uses. |
"'folder' already exists. Move it aside to set up 'name'." |
The |
"'name' was not set up because the set-up was cancelled." |
Nothing was set up. Run Set Up again. |
Two libraries in different folders of the repository have the same file name, and only one is in the library tables. |
Each file name gives one nickname. Rename one of the files before you release its parts. Refer to Library layout. |
Connection and access
| Problem | What to do |
|---|---|
The Design Workspace line shows "Git · Offline · last connected time". |
KiCad cannot reach the Git host. It tries again by itself. Refer to Working without a connection. |
"host refused the push. Your account may not have write access, or the branch is protected." |
Ask your administrator for write access. If the default branch of the team library needs merge requests, KiCad cannot check in. Refer to Giving access on the Git host. |
The part infobar says "You may not check it in: The library’s server refused your last push" and has no Check In… link. |
The Git host refused your last push to the default branch of the team library. Ask your administrator for write access. Refer to Giving access on the Git host. |
The part infobar says "Your last check-in to this library was refused". |
A check-in from an earlier session did not reach the team library. Check in again, and ask your administrator for write access if the host refuses it a second time. |
"host refused the push: reason" |
The text after the colon is the reason that the Git host gave. If this happens when you release a part, your team may let only librarians release parts. Refer to Roles and permissions. |
"The workspace backend stopped and has been reconnected." |
KiCad started the backend again. Do the command again. If the backend continues to stop, the line shows Restart. |
KiCad asks for your password each time. |
KiCad keeps passwords in the password store of your operating system. On a computer without a password store, KiCad forgets the password when you close it. For SSH, add your key to your SSH agent. Refer to Credentials and SSH keys. |
Library updates and check-ins
| Problem | What to do |
|---|---|
⋯ → Get Library Updates is not available. |
The project does not use a team library yet, or its team library is not set up on this computer. Save a schematic or board that places a part from it, or get the updates from the library tree of the Symbol Editor or Footprint Editor. |
"The following editors have unsaved changes" |
Save or discard the changes in the editors that are listed, then try again. |
A teammate released a new revision, but your design did not change. |
A library change does not change a placed part. Get library updates, then update the placed parts. Refer to How library changes reach a design. |
The check-in fails with the name of the library location after the server was unavailable. |
Get library updates once, then check in again. |
The check-in does not include your new 3D model. |
KiCad checks in only library files. Add the 3D model with a Git program. Refer to 3D models. |
The 3D models are missing on another computer. |
The model path includes the name of the team library. Make sure that the team library has the same name on each computer, and that the models were pushed. Refer to Nickname prefix and name. |
Team library files have Windows line endings in your copy. |
This is expected on Windows, where KiCad saves library files with Windows line endings. A check-in keeps the line endings of the team library file, and a change of line endings alone is not a change. A system-wide |
The check-in fails with "Check in every change in the file together." |
A library file of your copy uses a newer file format than the team library, and you selected only some of its changes. Select every change in that file, then check in again. Refer to Upgrading the file format of a team library. |
The check-in fails with "Revise part, then check in every change in the file together." |
The file uses a newer file format than the team library and holds an edit to a released part. Revise that part, then check in every change in the file together. |
The check-in or release fails with "… is in an older file format than the team library. Get Library Updates first, which may need a newer KiCad to open the team’s format." |
A teammate saved the library in a newer format. Get library updates, with a newer KiCad if yours cannot open the files. |
The release fails with "… is in a newer file format than the team library. Check in the changes to … first." |
Check in the changes to that library file, then release again. |
The format upgrade fails with "… is already in a newer file format than this KiCad writes" |
The team library was upgraded by a newer KiCad. Use that KiCad version, or get library updates instead. |
"Team libraries are already being updated. Try again once that finishes." |
Another library update is still running or waiting for your answer in another window. Finish it, then try again. |
Parts and releases
| Problem | What to do |
|---|---|
"R is released, so the change was not kept." |
Click Revise first. Refer to Revising a released part. |
"R is being revised by Alice, so the change was not kept." |
Wait for Alice to release the part, or release her claim. Refer to Releasing another designer’s claim. |
The part infobar has no Release… link. |
The part matches its last revision, or it is not checked in yet. If it is not checked in, check it in first. |
A part that you renamed or moved has no releases. |
KiCad treats it as a new part. Release it again. Refer to Revisions. |
You released a part with an error. |
A release cannot be undone. Revise the part, correct it, and release the next revision. If designs must not use the wrong revision, tell the designers to update their placed parts. |
Design release
| Problem | What to do |
|---|---|
The ERC reports "Team library part is not released". |
Release the part, or update the placed symbol to a released revision. Refer to the Schematic Editor manual. |
"Release Design…" is not available. |
Connect the project. Refer to Connecting a project. |
"The project has no remote to share a release through." |
Add a remote to the project’s repository. Refer to Configuring the default remote. |
The baseline number is higher than you expected. |
Baseline numbers count up for each repository. Another project in the same repository, or a teammate, released first. Refer to Design release. |
Reporting a problem
To report a problem, include a trace of what KiCad sends to the backend.
On Linux and macOS, start KiCad from a terminal with the environment variable WXTRACE=KICAD_MDW,KICAD_GIT.
Reference
The Workspace page
When the Design Workspace is on, the Advanced Git window has a Workspace page. To open it, click the gear button in the Version Control panel, click Open Advanced Git Window…, and select Workspace. In a connected project, you can also right click a file in the project files tree and click Version Control → Show in Design Workspace…. The page then opens with that file selected. If the project is not connected, the page says "This project is not connected to a design workspace."
The tree shows the files of the project in their folders. The Editing column shows who is editing each file or part, and the Last Change column shows the date of the last change of each file. When the backend keeps lifecycle states, a State column shows the state of each item. The Git backend keeps states for the parts of a team library, but not for the files of a project. Type in the Search files field to show only the rows whose names match. The search finds the parts of a team library only after you expand that library once in the window.
The team libraries that are set up on this computer are under Team libraries, with one row for each library, for example "acme_passives (symbols)". They also show when the project is not connected. Expand a library to list its parts. Until KiCad has read the library, it shows the row "Not listed yet". To set up another team library, click Connect Team Library… below the tree.
Details and actions
Select a row to see its details at the right:
| Row | Shows |
|---|---|
Lifecycle |
The state of the item, when the backend keeps states. |
Editing |
Who is editing the item, or "nobody". |
Content |
"Modified" when your copy differs from the newest version, otherwise "Current". |
Version |
For a file, the newest version. |
Folder |
For a file, its folder, or "(top)". |
Last change |
For a file, the date and time of the last change. |
Release |
For a part, how your copy compares with its releases, for example "Released, revision 2" or "Differs from revision 2". |
Where used |
For a part, the references of the symbols or footprints in the design that use it. Click Find to read the saved schematic and board. The list reads "Not placed in this design" when no symbol or footprint uses the part. After you save the schematic or the board, the list is empty until you click Find again. |
The buttons below the details act on the selected item. The same commands are in the menu when you right click a row.
-
Open opens the file, as the project files tree does. For a part, it opens the part in the Symbol Editor or the Footprint Editor. The project file has no Open.
-
Start Editing and Stop Editing tell your teammates that you are editing a file of the project. When a teammate is editing the file, Release name's Claim… releases their claim. On a backend with locks, Break name's Lock… removes their lock. Refer to Claims on project files.
-
Check Out and Check In… take and return a file, for backends that keep the files of the project on the server.
-
Change State… changes the lifecycle state, for backends that allow it. With the Git backend, it is available for a released part. It offers the same states as More in the part infobar.
-
Show in Folder opens the folder of the file.
You claim a part with Revise in the part infobar, so a part has no editing commands on this page. When a command is not available, a line under the buttons and its item in the right-click menu say why, for example "Change State (Reading states…)". When a teammate is editing a file, Start Editing names them in its own label, for example "Start Editing (Bob is editing)".
Versions and preview
The Versions list under the details shows the versions of the selected item with the author, the date and the message of each. If your copy differs from the newest version, the first row is Working copy.
When you select one version, the preview below the list shows what that version changed. A schematic or a board appears side by side with the version before it, and colors mark the added, removed and modified items. A text file shows only the changed lines. Nothing comes before the oldest version, so KiCad compares it with an empty side named "Added". The Working copy row compares your copy with the newest version. A text file that is too large shows "This file is too large to preview." A schematic or a board that is too large shows "This drawing is too large to preview. Double click the file to open its comparison." Libraries and parts have no preview. For them, the preview says "Double click the file to open its comparison."
To open the full comparison, double click a version, or select it and click Compare. The Compare Files window shows the progress while KiCad loads and compares the versions. To stop the comparison, click Cancel. The right-click menu of a version and Save Copy… work as in the History dialog of a part. For a file of the project, KiCad suggests the folder of the file. Refer to Viewing the history of a part.
What the Git backend stores on the remote
The Git backend stores its data on the remote as plain Git commits, tags and references.
You can read these records with git log, git show and git ls-remote.
| Record | When KiCad writes it and what it holds |
|---|---|
Commit on the default branch of the team library |
A check-in writes a commit. So does a release of a part with changes that are not checked in. Only the library files for those parts change. The commit uses your Git identity for the author and your comment for the message. |
Annotated tag |
KiCad writes this tag when you release revision n. Its message has your comment and a record of what you released. |
Annotated tag |
Each time revision n changes to Not for New Designs, Obsolete or Released, KiCad adds a tag. The newest such tag gives the current state. |
Reference |
Revise creates this reference. KiCad deletes it when you release the part or click Cancel Revision. |
Reference |
If you release another designer’s claim, this reference records your name and the reason. |
Annotated tag |
At design release, KiCad tags the project commit. The tag holds the release note, any exceptions and the revision of each placed part. |
For <part>, KiCad uses the library file name and the part name, escaped for Git.
Rev 1 of the symbol R in passives.kicad_sym has the tag kicad/rel/passives%2Ekicad_sym%23R/1.
Run these commands in a terminal. The first lists the releases of a team library, and the second lists the open claims.
git ls-remote <team library address> 'refs/tags/kicad/*' git ls-remote <team library address> 'refs/kicad/checkouts/*'
| Do not move or delete these tags and references with a Git program. KiCad keeps a copy of each release tag and treats a change to the tag on the remote as tampering. |
Using Git programs with a team library
You can use an external Git program to modify a workspace that is managed by the Git backend. This allows you to add, change or remove 3D models and push your changes. The same applies to other files that are not libraries. For model files, refer to 3D models.
You can also clone the repository to another folder for a backup or for library checks in a CI system.
You should not use an external program to edit, commit or modify the library files. Instead, use the Symbol Editor and the Footprint Editor for library modifications.
Do not push library changes from another clone. This will bypass any editing claims on the backend. If a push changes a released part, the part will no longer match its revision. It is always safest to use the KiCad interface to work with library files.
Do not force-push to the default branch or rewrite its history.
We store the release records for all files in the tags under kicad/ and the references under refs/kicad/.
Creating, modifying or deleting them will interfere with your ability to use the backend for collaboration.
Features that need a PLM backend
The Git backend supports team libraries, part revisions and states, editing claims and design releases. These features need a backend for a PLM system:
-
Change orders and reviews before a release. If the server of a PLM backend does not offer change orders, ⋯ shows the menu item "Change orders (needs backend PLM)" as unavailable. With the Git backend, the menu does not show this item.
-
A Workspace page in the Symbol Fields Table, which compares the design with the workspace bill of materials.
-
A search for workspace parts in the symbol chooser, and Assign Part….
-
Open Project from Workspace… and Add to Workspace, for backends that keep design files on the server.
KiCad does not include such a backend. The commands appear only when a backend that provides them is installed and connected. To get a backend for your PLM system, refer to Custom workflows and PLM backends.