I have been using Kicad since v4 and never needed this feature even opening multiple Kicad windows.
This feature does not work fine and this thing always annoys me. I end up deleting the lock every time with the popup, so what is the point?
This feature also prevents opening/viewing the design before answering the stupid popup.
This time the issue is with the “DRC > Check against schematic”, if the schematic is not already opened and if this lock exists… Kicad stays processing something that never ends, but it just waiting for the lock to be removed or ignored but nothing is presented to the user.
Ah, forgot to add the version. The post is updated. I am using 7.0.7 which I thought was the last one.
But it looks like It was not the last one on this computer. Thanks, dude, I am going to update it to check.
The first item on the Kicad 7.0.9 is exactly this. @mf_ibfeew thanks, I was not using the version I thought I was since I had to format the machine a couple of days ago.
I noticed yesterday that I was almost adding the lock file by accident in git commit to repo as I had forgotten to add *.lck files to my git project .gitignore file. That could have then created locking error later, if I would have closed the editor and then used “git reset --hard” to return to previously committed version. (That would have restored the lck file even if the editor is not open and thus caused problems later)
I do not know would it be possible to get the .gitignore with proper entries created automatically for new kicad projects by using some plugin?
No need for a plugin. You can create a template and put the .gitignore file in the template directory. It will then be automatically added to all projects using that template. Unfortunately there’s currently no way to specify a default template: #11370 - Select a custom template to use with all new projects
You can create an alias to download the current version from github:
alias create-gitignore-kicad="wget -O .gitignore 'https://raw.githubusercontent.com/github/gitignore/main/KiCad.gitignore'"
Heads up - recent versions of KiCad don’t copy dotfiles in templates, so your .gitignore won’t get copied. My best suggestion is to call it gitignore in the template and do a quick rename when you create the project from the template.