Skip to content

kiutils (v1.4.8) doesnt save KiCad Schematic properly (hidden property fields become unhidden) #120

@brian-geicp

Description

@brian-geicp
  • kiutils-1.4.8.dist-info
  • Schematic Generated by 'KiCad Schematic Editor x86_64 on x86_64'
    • Version: 8.0.4-8.0.4-0~ubuntu24.04.1, release build

Hitting an issue where opening/saving a schematic file would not save the 'hide' text effect in symbols.
This is not an issue for symbol libraries.

Schematic File version according to the top of the offending schematic file

(kicad_sch
	(version 20231120)
	(generator "eeschema")
	(generator_version "8.0")

Minimum Test Script

#!/usr/bin/env python3
import kiutils
from kiutils.symbol import SymbolLib
from kiutils.schematic import Schematic

import os
from os import path

import argparse
from pathlib import Path

# Arg Parsing
parser=argparse.ArgumentParser(description="Open Then Save and Close To Test Bug Replication")
parser.add_argument("src", type=Path)
p = parser.parse_args()
src_file = p.src.resolve()
base_path = path.dirname(path.realpath(__file__))

# Offending Lines
kicad_container = Schematic().from_file(src_file)
kicad_container.to_file(src_file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions