yaqwsx / KiKit

Automation tools for KiCAD
https://yaqwsx.github.io/KiKit
MIT License
1.49k stars 200 forks source link

Kikit not listing layer names in VCuts #675

Closed CreativeRobotics closed 3 months ago

CreativeRobotics commented 4 months ago

Prerequisites

KiKit version

1.5.1

KiCAD version

8.0.1

Operating system

Windows 10

Description

In the option for VCuts, the layer option does not list layer names, just layer numbers from 0-58. It defaults to layer 0 (Top copper) but I can't identify what layer number corresponds to Edge.Cuts

Steps to Reproduce

Clean installed KiCad 8.0.1 and Kikit as per Kikit instal instructions. Open standalone PCB Editor, open Kikit pannelisation tool.

yaqwsx commented 4 months ago

Could you be more specific about the instructions for reproduction and, e.g., provide a screenshot? I just

Screenshot from 2024-04-18 14-05-17

CreativeRobotics commented 4 months ago

KikitErr I recently reinstalled Kicad from scratch because the previous install of version 8.0.1 resulted in Kikit and other plugins not working at all. Everything seemed to be OK with the installation until I tried to make up some pannels with Kikit.

yaqwsx commented 4 months ago

Ok, it could be Windows-related.

CreativeRobotics commented 4 months ago

I've just reinstalled kicad AGAIN, now it won't load any of my footprint libraries ... I'll keep trying and see if I can ever get kicad to install properly, then check Kikit to see if its finally working and get back to you ...

CreativeRobotics commented 4 months ago

So, this is a different issue, but one I encountered with Kikit the other day. I performed a clean install of Kicad 8.0.1, then uses the command line to do pip install kikit. It installs OK, but with these warnings.

WARNING: The script markdown2.exe is installed in 'C:\Users\bbigg\OneDrive\Documents\KiCad\8.0\3rdparty\Python311\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts kikit-info.exe and kikit.exe are installed in 'C:\Users\bbigg\OneDrive\Documents\KiCad\8.0\3rdparty\Python311\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

If I do 'kikit --help' in the kicad command line it says

'kikit' is not recognized as an internal or external command, operable program or batch file.

CreativeRobotics commented 4 months ago

OK, just quit Kicad and its command prompt and restarted the command prompt - now 'kikit --help' works - so is this some weird issue to do with windows and possibbly the one drive?

I will reinstall the front end of Kikit and see what happens.

CreativeRobotics commented 4 months ago

Ok. I have reinstalled Kikit fully, and the same problem exists. I don't know if this is a windows thing or not, but I never had any issues with Kikit and Kicad before I updated to Kicad 8.

For the sake of anyone else encountering this issue and ending up here, if you open up a Kicad PCB file in a text editor it will list the layer names and numbers, so you can at least identify the number of the layer you want.

mikhailmihalkov commented 3 months ago

\OneDrive\ try not to use network and cloud solutions for file location

FractalEngineer commented 3 months ago

Came to post about it, same issue here; layers show as numbers, but also even when selecting the right number it won't render the V-Cut lines. Kikit 1.5.1, Kikad 8.0.2, Win11 image

pajasry commented 3 months ago

This issue is not windows related. I am experiencing same behavior with KiCad 7.0 and Fedora 40. I got the correct number from .kicad_pcb file (44 for Edge.Cuts), try panelize and got "Cannot perform: Error in section cuts: '44'" message.

CreativeRobotics commented 3 months ago

\OneDrive\ try not to use network and cloud solutions for file location

How can I avoid it when this is the default install for Kicad on Windows 10?

FractalEngineer commented 3 months ago

This issue is not windows related. I am experiencing same behavior with KiCad 7.0 and Fedora 40. I got the correct number from .kicad_pcb file (44 for Edge.Cuts), try panelize and got "Cannot perform: Error in section cuts: '44'" message.

Might be; I've just tried on the Linux version of Kicad 8.0.2 under WSL and while it does list the layers by their names there, it still won't render the V-Cuts on any of the selected layers.

image

edit: disregard the User.1 / user/comments discrepancy; just didn't select the right one after trying a bunch of layers. All relevant layers being set to show should be the relevant part

yaqwsx commented 3 months ago

This should be fixed in 551e670.

gwideman commented 1 month ago

I just installed the "current" version 1.5.1 of Kikit today (July 12 2024), and this fix is not in it. I don't know if that's intentional, but the fix is from over 2 months ago, so I was a little surprised. I guess this is because the doc-recommended command: pip install kikit ... relies on pip fetching kikit from Pipy, where the latest version of Kikit is indeed 1.5.1, of March 15th, which does indeed predate this fix.

yaqwsx commented 1 month ago

You have to install the upstream version. The fix is not present in a released version yet (there should be release in a week or so).