kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #39332
environment checking in plugins (Re: 5.1.0-rc1)
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Carsten Schoenert <c.schoenert@xxxxxxxxxxx>
-
Date:
Sun, 10 Feb 2019 09:06:36 +0100
-
Autocrypt:
addr=c.schoenert@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= mQINBFIDTk4BEACx6disb51q5rTdDmnkOayFDiLgOrZ4InnRmbTsgYJaigcRXjVtjFaxwL0M Qtzrt9srlLBReWD4JvoLP9/8z2C1ORaoOUatApssuKd32Qa80lBlduIQCfaZ6K5Ij0TXeqIb dWXMWSvpaOwt+ecBGSdEepgABtxO9Xel9zqDsAauFxBRHGzJs3bSG8QRtwnQA2+9J8UEtzAc dY69YAkF3Q6HIPP/0mbGiget/1WGR+8tPKlVMYcgZtGIP2J36GkDbfDvdbH5QLn2KtMuGXLv f1CTy+vvQL3mY4caKamCU7tLi8FSufNZpPChguNOHsbuO//ACrTFqGysVFvq25zEb60t9Hoq AXHIMlDJFnR7XBUCyAHV4NROMvGZlFbLuZpUA81Kukj72xifqk9ZFl9sxqKPgheqi+dT8peV LgvgCgMgQjvZgQ5X4AG2kiIezWtjlToCZAZ4ufQ26aofvwZqhBrogQF/+272B9CJuKBLIx+R CEhtW4gTKShY3moc8Aqh8AFH3pWkXILAxEGnvMu8oapAUiRNXNOb/nBlYXH1BEc+Boarm8vj LElQxdI4uNEQsLvZxsL4iYvrbZ5OLZnjkMJjvU7XVFjxAkDAHT8eYH9LWK/VeiK8fm+zsDZU qy2dN77RYlQbO9TkKlJs3CR2lpT7Dr/ObtIqEf4VFOplxTY9kwARAQABtCtDYXJzdGVuIFNj aG9lbmVydCA8Yy5zY2hvZW5lcnRAdC1vbmxpbmUuZGU+iQI3BBMBCAAhBQJSA05OAhsDBQsJ CAcDBRUKCQgLBRYCAwEAAh4BAheAAAoJEIMBYBQlHR2w8DoP/2RO8DOOA/P2B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gp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
Hello Mitja,
Am 10.02.19 um 08:13 schrieb Mitja Nemec:
> As a plugin developer I agree that KiCad is not responsible for third
> party plugins, but as a developer I don't have any sane option to
> detect the parameters of the system the plugin is running on.
and what exactly you are missing?
Sorry but I've seen the behavior of the plugins again and again that
there is no checking of a working condition at all. All plugins I've
seen are just don't do any checks if they can work meaningful.
> If build flags (especially KICAD_SCRIPTING_WX_PYTHON) would be
> accessible to python, I (or any plugin developer) could read it
> before trying to import wx module and could show a meaningful error
> message using tkinter instead.
That's the way to go.
But KICAD_SCRIPTING_WX_PYTHON isn't enough. You will also need to know
which version of python-wxgtk3.0 is used if KICAD_SCRIPTING_WX_PYTHON is
set. Build time information for python-wxgtk3.0 can be found e.g. in
INSTPATH/wx-3.0-gtk{2,3}/wx/build/build_options.py.
On the most of recent Linux distribution versions it will look like
this. OTOH the current stable releases will show here "toolkit=gtk2".
> $ grep WX_CONFIG /usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/build/build_options.py
> WX_CONFIG="/usr/bin/wx-config --toolkit=gtk3 --unicode=yes --version=3.0"
I expect that Kicad Python classes can be expanded easily to provide
some built time information of KiCad if they are missing. What kind of
information is needed is probably to discuss.
If plugins can provide some kind of callback function there KiCad can
detect if the plugin is compatible than the plugin can be displayed
grayed out for example in the UI if they are not compatible. And some
more information like version, author ... if the mouse is hovered over
such an entry.
> Should I raise a bug for this wish?
That would be the best as the noise on the list here is rather high.
--
Regards
Carsten Schoenert
Follow ups
References
-
5.1.0-rc1
From: Wayne Stambaugh, 2019-02-05
-
Re: 5.1.0-rc1
From: Carsten Schoenert, 2019-02-06
-
Re: 5.1.0-rc1
From: Wayne Stambaugh, 2019-02-06
-
Re: 5.1.0-rc1
From: Carsten Schoenert, 2019-02-06
-
Re: 5.1.0-rc1
From: Wayne Stambaugh, 2019-02-06
-
Re: 5.1.0-rc1
From: Carsten Schoenert, 2019-02-06
-
Re: 5.1.0-rc1
From: Steven A. Falco, 2019-02-06
-
Re: 5.1.0-rc1
From: Nick Østergaard, 2019-02-06
-
Re: 5.1.0-rc1
From: Wayne Stambaugh, 2019-02-07
-
Re: 5.1.0-rc1
From: Steven A. Falco, 2019-02-07
-
Re: 5.1.0-rc1
From: Vesa Solonen, 2019-02-07
-
Re: 5.1.0-rc1
From: Wayne Stambaugh, 2019-02-07
-
Re: 5.1.0-rc1
From: Steven A. Falco, 2019-02-07
-
Re: 5.1.0-rc1
From: Wayne Stambaugh, 2019-02-07
-
Re: 5.1.0-rc1
From: Marcos Chaparro, 2019-02-08
-
Re: 5.1.0-rc1
From: Wayne Stambaugh, 2019-02-09
-
Re: 5.1.0-rc1
From: Mitja Nemec, 2019-02-10