This is going to be long – I wanted to detail the problem as best I could, and outline what’s been done so far in the attempts to correct it, but without success.
This issue came up in another thread that was started for a completely different issue. As the title of that thread is not relevant, and this issue is buried deep under the original thread’s chatter, I figured it would be wise to start a new thread in hopes that more eyes will be on the problem and perhaps we can home in on a solution quicker.
I’m running 5.0.2 on a 64 bit Windows machine. I’m not sure if this is relevant or not but last year I had installed version 4 on the same machine, never really did much to start learning KiCad, and then late last year decided to install 5.0.2. I’m not sure if I uninstalled the version 4 properly, but I do recall a bit of fussing around and library tables causing me issues, however I thought I had all that sorted out until now. In fact, I have been happily designing my first PCB with 5.0.2 and even created a little personal library.
I then changed the libraries over from the installed ones, to a github clone on the pc, and then set up the environment variables to point to these libraries. All seemed to work fine, but ….
I did notice that when setting the environment variables in the Preferences>Configure Paths, I got this message that said “Warning! Some of the paths you have configured have been defined externally to the running process and will be temporarily overwritten.” More details box revealed “The next time KiCad is launched, any paths that have already been defined are honored and any settings defined in the path configuration dialog are ignored. If you did not intend for this behavior, either rename any conflicting entries or remove the external environment variable definition(s) from your system”
I blindly proceeded and then exited out of KiCad altogether, and sure enough, when I relaunched Kicad, the environment variables are all pointing back to the installation locations and not my github repo clones…
So, off I went to the Windows settings and deleted the kicad related environment variables once I was instructed by others that they are being set external to Kicad and that’s why they were greyed out in the dialog box for them inside KiCad.
Back into KiCad – the environment variables are no longer greyed out, which is a good sign, and I re set them to point to the github repo clone locations.
Everything works – UNTIL – I power off the machine, then power it up again, and go back into Kicad. They’ve been changed back to greyed out, pointing to the original installation locations again !
Wait – there’s more - If I then go out to the Windows settings and go into the environment variable settings – there are no kicad related environment variables there – makes sense, as I deleted them earlier. BUT – if I then exit that, and go back into Kicad – the environment variables are now back to pointing to the github repos as I want them to be !!! WTF ???
Some very helpful people with far more knowledge on this than me, have suggested that perhaps there are some remnants in the Windows registry, but looking in there just made me very afraid I was going to end up bricking my computer so I quickly left.
So, sorry for the long winded explanation, but that’s where I am – No Kicad environment variables in the Windows environment variable dialog setting, but Kicad is being reset back to the original installation values when the PC is powered off and then on again. Simply going into the Windows environment variable dialog and “looking” and then exiting, results in the right environment variables being present in KiCad when Kicad is then launched……
Help !