| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
| X-Recipient: | geda-user AT delorie DOT com |
| X-Mailer: | exmh version 2.8.0 04/21/2012 with nmh-1.7+dev |
| X-Exmh-Isig-CompType: | repl |
| X-Exmh-Isig-Folder: | geda |
| From: | "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
| To: | geda-user AT delorie DOT com |
| Subject: | Re: [geda-user] lepton/geda: problem with () in fp name |
| In-reply-to: | <20210705121938.854E483B0DD5@turkos.aspodata.se> |
| References: | <20210705121938 DOT 854E483B0DD5 AT turkos DOT aspodata DOT se> |
| Comments: | In-reply-to "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> |
| message dated "Mon, 05 Jul 2021 14:19:38 +0200." | |
| Mime-Version: | 1.0 |
| Message-Id: | <20230511150713.CDEB08615752@turkos.aspodata.se> |
| Date: | Thu, 11 May 2023 17:07:13 +0200 (CEST) |
| X-Virus-Scanned: | ClamAV using ClamSMTP |
| Reply-To: | geda-user AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | geda-user AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
I am still getting this annoying error message with lepton-sch2pcb:
cX1: can't find PCB element for footprint "05)_b.fp(Hirose_FH41-28S-0.5SH(05)_b.fp" (value=FH41-28S-0.5SH(05)
See:
https://www.delorie.com/archives/browse.cgi?p=geda-user/2021/07/05/08:21:06
Same patch, just other line numbers.
$ git diff
diff --git a/liblepton/src/sch2pcb.c b/liblepton/src/sch2pcb.c
index 1eae007fe..44acc2db8 100644
--- a/liblepton/src/sch2pcb.c
+++ b/liblepton/src/sch2pcb.c
@@ -906,6 +906,13 @@ pcb_element_pkg_to_element (gchar *pkg_line)
|| (s = strchr (pkg_line, (gint) '(')) == NULL)
return NULL;
+ {
+ gchar *tst;
+ if ( (tst = strstr(pkg_line, ".fp(")) != NULL) {
+ s = tst+3;
+ }
+ }
+
args = g_strsplit (s + 1, ",", 12);
if (!args[0] || !args[1] || !args[2]) {
fprintf (stderr, "Bad package line: %s\n", pkg_line);
$
Regards,
/Karl Hammar
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |