X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1540215553; bh=txuE/vNa+T3uB3V//0hnstdnjQsQy6NXr7aSgjfbH4s=; h=From:Date:Subject:To:From:Subject; b=eNFdFVtFflpDdGeRDbkIJXGNwmfiwOjCTCb1EV+LMJnu7eCKjJqvMdC/UPJWo2kTQRQj/eYbZoNiVITwJLkgpta9PYY5PA+YzA1mq/yIeLpjIuyejlS8pImJtCc/WqEdQTW6r+zHzNqJjgOGNBj6MAPi99avCbLPEZxcYlhV1S/ko8FG9oArZ4rq6oHs+6KHWxAHeMNiy/9n7hT76tKue7YugyeeVa0WcNqE1l+oeqADjfZ4sOnUG2A3cZ50wu1gMO9Usj24BuFLUjNT7+CvEZ1geXxw3CS3ifPtHLtoHgTPntm1Wt8TWOY7tKv+4rh+K1k/rFe8896WyPtS/1WmyA== X-YMail-OSG: oFGJRMwVM1km2MT1T9iNnqmeFDlVnboY7JcBtiNXKoS8dCtkCB4iYigdjEf4UXP uZc_JAjjzVf.ATfKlsvb8YDP4suvze8KCt1P7Z3yUQgeBCumHqApmPKe9k14iNfwDIoDm_EgQb4C DeyYk_Ntw9vrZMmatXKd2_FsqwjMxuRmyVksUXQ05z9VOb3Z6HhfFqCOMn9H5WzpCZFOh9o6Taxa wptrYm9DgYQ_CPHYd1vv.LVLSM1N3I42_kuA8vB4vIez_6o0d._MECmsdt9JANCnTAeWGOkDzMZ_ p2pb4pmwDcs5OmH_XXPEKIPnDUrTyPxi8zj_K9hFyR5tZ1G2hDNUAtaasxdWT82hXz0uezdPXP2a 7C9LA6Sx.OD47KqwoU1Vfz_lZ0s4L7EV87k2IG2AUIO_AH34dJyELk2kMdbkBmiMPIaNudVyrdCn meQzQkYn8TCOv7ESw1AP7SYdYdBlMQOv1ECMRR0gp2ea.ThGOd6_CztN68ZB61G3B7JBtVUgiV5D fidnBnUic2WinzG6lCAgkjUNCzPxn5GuynbVc5Szj0HdnHfrNqbANc38onBalYNaNMTt0x2RIity h8Y0sQuW5bwAFKB773GOu_mqnm7nvH_Wz2H1wtCWMB9J2IfjcqiZtMJHsX1eqFzMXHtWE0HZpDvb A.LhVBnU_et6EfHD4B0m8_aYPmyT6qkmWbG3FUJDeT.65qpQCVrF4TKlwMxYTUcPcBIkfeU1_hVk 6KRx3Uhw2WMqcr574lCfp5Esy7kuYHg3zVvmgWILSg4EEh10x0Cg59KU_uEeCkE5WzEDPFWUYLIc S5N.szbHhcAvAwZaXcnfVG8keqg0BUEbhHV0dH9CYpRoLJ0dlFvh1OCy0Laf0wW14ssYDK.pMz6N cCkOGTd.Kq8_SY4PVErzcc3AeNrdDOWv_lkYErAIdFOqMxcFM4qgzXPB1koY42LIfY7ZGawKP53I oscZXzUoo2RC.lZe_OPzCVwBn9tp8KHw59bKidM9MZu4XdEeJUTUjyeA_Cm3B9mlAtUfTqpW_EHn fSqk2BZXh2OQoJg75t6hzC2lWRSH8ew-- X-Gm-Message-State: ABuFfoiOIm1wy9uHSjZIxZcfZQgWvoRk/qLDPmeDuGnwBVV2V3wzcog6 A1u0W0MoEj09Z6YbOTeW8cYRV567i4V86KnnhZ8= X-Google-Smtp-Source: ACcGV60ExBpyJBmHk4r+ZtIEIgMRzbWytyf81F8ZzG4TWJ4gQkHjUwtgHdAXGUxlU4YO0wQqmWOJaJGopI4/8OwYIVs= X-Received: by 2002:a50:86fd:: with SMTP id 58-v6mr14180270edu.15.1540215550816; Mon, 22 Oct 2018 06:39:10 -0700 (PDT) MIME-Version: 1.0 From: "Edward Comer (ecomer AT yahoo DOT com) [via geda-user AT delorie DOT com]" Date: Mon, 22 Oct 2018 09:39:39 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: [geda-user] gschem error To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary="000000000000c8b97a0578d160ed" Reply-To: geda-user AT delorie DOT com --000000000000c8b97a0578d160ed Content-Type: text/plain; charset="UTF-8" *FYI:* I have used gschem for years and I encountered a bug that cost me an embarrassing amount of time to resolve. After a schematic editing session I closed the schematic. When I next tried to reopen it, it failed to open with an error of "failed: Tried to attach a non-text item as an attribute." The error was hard to catch in the 27 part schematic. The problem is the "2" in the last character of the last "T" line of the part. The "2" means that the next "2" lines are text - except that that is wrong. There is only one text line and gschem failed when it encountered the "}". It would certainly have been nice if gschem had displayed the offending line, part or a useful error. Also what would have been nice, but is absent, would be a --verbose option that printed each part just before it was parsed. *BAD part:* C 52700 49100 1 90 0 resistor_generic.sym { T 52780 49580 5 8 1 1 180 4 1 refdes=R5 T 51500 49200 5 8 0 1 90 1 1 device=RESISTOR T 52500 49400 5 8 1 1 180 1 1 value=1k/2W T 51200 49200 5 8 0 1 90 1 1 footprint=2512.fp T 50800 49200 5 8 0 1 90 1 1 symversion=1.1 T 52700 49100 5 8 0 0 0 0 1 vendor=mouser T 52700 49100 5 8 0 0 0 0 1 vendor_part_number=279-CRGH2512J1K0 T 52700 49100 5 8 0 0 0 0 1 manufacturer=TE T 52700 49100 5 8 0 0 0 0 *2* manufacturer_part_number=CRGH2512J1K0 } *GOOD part:* C 52700 49100 1 90 0 resistor_generic.sym { T 52780 49380 5 8 1 1 180 4 1 refdes=R5 T 51500 49200 5 8 0 1 90 1 1 device=RESISTOR T 52500 49300 5 8 1 1 180 1 1 value=1k/2w T 51200 49200 5 8 0 1 90 1 1 footprint=2512.fp T 50800 49200 5 8 0 1 90 1 1 symversion=1.1 T 52700 49100 5 8 0 0 0 0 1 vendor=mouser T 52700 49100 5 8 0 0 0 0 1 vendor_part_number=279-CRGH2512J1K0 T 52700 49100 5 8 0 0 0 0 1 manufacturer=te T 52700 49100 5 8 0 0 0 0 1 manufacturer_part_number=CRGH2512J1K0 } --000000000000c8b97a0578d160ed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
FYI:
I have used gs= chem for years and I encountered a bug that cost me an embarrassing amount = of time to resolve.
After a schematic editing session I closed th= e schematic. When I next tried to reopen it, it failed to open with an erro= r of "failed: Tried to attach a non-text item as an attribute."

The error was hard to catch in the 27 part schemati= c. The problem is the "2" in the last character of the last "= ;T" line of the part. The "2" means that the next "2&qu= ot; lines are text - except=C2=A0
that that is wrong. There is on= ly one text line and gschem failed when it encountered the "}".

It would certainly have been nice if gschem had dis= played the offending line, part or a useful error. Also what would have bee= n nice, but is absent, would be a --verbose option that printed=C2=A0
=
each part just before it was parsed.


BAD part:

C 52700 49100 1 90 0 resis= tor_generic.sym
{
T 52780 49580 5 8 1 1 180 4 1
refdes=3DR5
T 51500 49200 5 8 0 1 90 1 1
device=3DRE= SISTOR
T 52500 49400 5 8 1 1 180 1 1
value=3D1k/2W
T 51200 49200 5 8 0 1 90 1 1
footprint=3D2512.fp
= T 50800 49200 5 8 0 1 90 1 1
symversion=3D1.1
T 52700 4= 9100 5 8 0 0 0 0 1
vendor=3Dmouser
T 52700 49100 5 8 0 = 0 0 0 1
vendor_part_number=3D279-CRGH2512J1K0
T 52700 4= 9100 5 8 0 0 0 0 1
manufacturer=3DTE
T 52700 49100 5 8 = 0 0 0 0 2
manufacturer_part_number=3DCRGH2512J1K0
}

GOOD part:

C 5= 2700 49100 1 90 0 resistor_generic.sym
{
T 52780 49380 = 5 8 1 1 180 4 1
refdes=3DR5
T 51500 49200 5 8 0 1 90 1 = 1
device=3DRESISTOR
T 52500 49300 5 8 1 1 180 1 1
=
value=3D1k/2w
T 51200 49200 5 8 0 1 90 1 1
footpri= nt=3D2512.fp
T 50800 49200 5 8 0 1 90 1 1
symversion=3D= 1.1
T 52700 49100 5 8 0 0 0 0 1
vendor=3Dmouser
T 52700 49100 5 8 0 0 0 0 1
vendor_part_number=3D279-CRGH2512J= 1K0
T 52700 49100 5 8 0 0 0 0 1
manufacturer=3Dte
=
T 52700 49100 5 8 0 0 0 0 1
manufacturer_part_number=3DCRGH2= 512J1K0
}

--000000000000c8b97a0578d160ed--