custom Environment variables are not used immediately
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Medium
|
Jeff Young |
Bug Description
Hi!
I'm using 64-bit KiCAD Nightly 2017-12-21 (7586afd53) on win7-64bit. As a library maintainer I'm using customized environment variable to make KiCAD use libs that I checked out somewhere on my system.
I set them using the KiCAD menu entry "Preferences | Configure Paths". They point to checkouts of the KiCAD libs that I made below D:\KiCAD. I.e. ${KICAD_SYMBOL_DIR} = "D:\KiCAD\
Now I'm doing the following:
1. Start KiCAD, with the last project I used (sometimes I'm using a local sym-lib-table sometimes not, the global sym-lib-table is emotied, The sym-lib-table always references using environment vars, e.g. "${KICAD_
2. Opening the library editor, I see a full list of all libs in
3. Now I see a list of all the libs that are currently referenced by the currently used sym-lib-table, but when I try to open the libs in the "Search Tree" the nodes are empty, i.e. the libs do not expand and show NO entries. This is true for all libs that not part of the default libs installed with the nightly (remember I'm a lib maintainer, so I'm working with cutting-edge versions and PRs that cannot yet be part of the nightly package). I can though expand libraries that are part of the standard installation and then see the contents in the installed libraries, NOT in the downloaded.
4. Now I go to the KiCAD main screen, click on "Preferences | Configure Paths", click OK and reopen the library editor. After it reloads the libs, I can now expand a lib and its contents from the checkout is shown.
To me this looks like KiCAD does not use the values for the environment variables set in its dialog "Preferences | Configure Paths", but only after the dialog has been opened. Until then it seems KiCAD uses the system environment variable, as it was generated during Install, which points to the installed libs.
This behaviour is a bit unexpected ... True, I can easily fix it by setting the system environment variables, but since I CAN set them in KiCAD, I would expect KiCAD to use these right away.
BTW: Would it be possible to set these environment variable on a per-project basis? That would be great for library review (I could have a project for libs in state 1 and another projet for libs in state 2 ... but I also see that that's maybe a special request that not many people will profit from ;-)
Would be great to see this fixed. Unfortunately I currently don't have enough time to look into the code myself and propose a patch :-(
PS: To all that do celebrate it: Merry christmas!
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Could you please try the latest nightly? The configure paths dialog was added to eeschema after your build. Maybe this fixes it. Keep in mind that no libs bare bundled with that install, but it seems you are managing the libs youself han have them elsewhere anyways. :)