www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2020/01/20/18:34:46

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 21 Jan 2020 00:13:01 +0100 (CET)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "Girvin Herr (gherrl AT fastmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] gEDA 1.10.0 reading local gafrc and schematics
twice
In-Reply-To: <48311dfc-d6f2-989b-a5cc-6f365363096b@fastmail.com>
Message-ID: <alpine.DEB.2.20.2001202345380.11223@nimbus>
References: <48311dfc-d6f2-989b-a5cc-6f365363096b AT fastmail DOT com>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
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

Hi Girvin,

On Mon, 20 Jan 2020, Girvin Herr (gherrl AT fastmail DOT com) [via 
geda-user AT delorie DOT com] wrote:
> I uninstalled all gEDA and lepton apps, rebuilt and installed gEDA 
> 1.10.0 without setting the GEDADATA* environment variables so that gEDA 
> uses the compile-time default as was suggested.

it may sometimes be necessary to remove ~/.cache/guile/, as well.

> When I run gschem, it seems to be reading my ~/.gEDA/gafrc twice!

That's weird.  "Loaded RC file [/home/gherr/.gEDA/gafrc]" only shows up 
once in the gschem log you attached, but the "Library name [...] already 
in use." messages seem to indicate it was read twice.

> When I load a schematic, the status panel spits out numerous "More than 
> one component found with name [name.sym]"

These are the symbol "name.sym" from the first time the library was 
loaded, and the symbol "name.sym" from the second time the library was 
loaded; i.e., it's the same symbol.

BTW, you can include a whole hierarchy of library directories using 
"component-library-search".

> It also looks by the log that the schematic load is done twice, once 
> right after the "New file" statement for loading the default schematic 
> on startup, and then again after the "Loading schematic..." statement 
> when I loaded the schematic containing the DS-st113.sym symbol.

The last 34 "More than one component found ..." lines are duplicated, as 
are the 37 lines before that.  I'm not sure what's going on here, but 
maybe you can figure out by looking at the symbol names?

Only in the first group:
   E-jumper-3.sym
   Q-2N2222-1.sym
   RP-sip10c-1.sym
   U-74x138-1.sym
   U-74x14-1.sym
   U-74x164-1.sym
   U-74x165-1.sym
   U-arduino_pro_mini-1.sym
   generic-power.sym
   grh-D-2.sym

Only in the second group:
   DS-st1113-1.sym
   S-Grayhill-87BB3-201-1.sym
   TB-Screw_1x12-1.sym
   U-74x05-1.sym
   U-74x240-4.sym
   U-74x244-8.sym
   U-74x374-1.sym
   grh-Dc-2.sym

In both groups:
   DS-led-1.sym
   R-RC07-1.sym
   U-74x175-1.sym
   continuation-1.sym
   ground_d-1.sym

> I seem to remember having the duplicate library problem many years ago 
> and maybe that is why I had to set the GEDADATA* variables to fix it.

In your gafrc file, it says:

;  03/21/18 [...]
;   Found the problem! I copied the old gafrc to my home directory
;   and gschem was also looking there as well as the usual dirs.
;   Thus the duplicates.

Maybe that's a useful clue?

> What could cause gschem to read files twice and how do I fix it?

I'll have to investigate this further.  I you find out anything useful, 
please let me know.

Roland

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019