Re: [Kicad-developers] OSX dev environments

2017-12-26 Thread Mark Roszko
>I tried CLion. After a ~10 minute-long freeze (indexing the code) it crashed
due to lack of memory. With a 6 GB java heap the project loaded, but the
editor was veeery slow.


CLion works fine for me on Windows with MSYS2 for KiCAD. Was it a long time
ago you tried? They've made many performance improvements in the last year
that would affect all platforms.

On Sun, Dec 24, 2017 at 8:37 PM, Tomasz Wlostowski <
tomasz.wlostow...@cern.ch> wrote:

> On 25/12/17 02:03, Jeff Young wrote:
> > I was going to ask you guys for an Xcode project file for Christmas, but
> I’ve come to the conclusion that I absolutely hate Xcode.
> >
> > I’ve used Eclipse before, and was no big fan of it either.  I did really
> like IntelliJ, though, and I see they’ve got a C version too (CLion).  Has
> anyone used it to build KiCad?
> >
> Hi Jeff,
>
> I tried CLion. After a ~10 minute-long freeze (indexing the code) it
> crashed due to lack of memory. With a 6 GB java heap the project loaded,
> but the editor was veeery slow.
>
> IMHO Get Atom if you need something easy to use on a Mac or Visual
> Studio (if you like "big" C++ IDEs).
>
> Cheers,
> Tom
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Mark
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] wxStaticBox bug

2017-12-26 Thread Adam Wolf
Ah, I saw you already updated a bug on the tracker--ignore my last question :)

Adam

On Tue, Dec 26, 2017 at 5:01 PM, Adam Wolf
 wrote:
> I would suggest making a patch for wxwidgets and sending it to the
> list.  There are other macOS specific wxwidgets patches.  I have
> always created the patch manually, and included the upstream bug/patch
> in the email to the list here.
>
> Let me know if you need step by steps, and thanks for tracking this
> down!  Does this fix any particular macOS bugs?
>
> Adam Wolf
>
> On Tue, Dec 26, 2017 at 4:55 PM, Jeff Young  wrote:
>> I got a reply back from Igor Korot that wxWidgets 3.1.0 is scheduled for
>> mid-January.  The fix being tagged 3.1.0, however, is no guarantee that it
>> will make it in.
>>
>> How often do we roll our wxWidgets version?  Should I just go ahead and
>> create another wxWidgets patch for it?  (If so, is there a cheatsheet
>> anywhere on how to do that?)
>>
>> Thanks,
>> Jeff.
>>
>>
>> On 26 Dec 2017, at 21:00, Jeff Young  wrote:
>>
>> I just tracked down a bug in OSX where tabbing doesn’t work within a
>> wxStaticBox.  The bug was in include/wx/osx/statbox.h, which failed to
>> inherit from wxStaticBoxBase.
>>
>> I checked on master, and that bug was fixed by vadz two years ago:
>> https://github.com/wxWidgets/wxWidgets/blame/master/include/wx/osx/statbox.h
>>
>> I’m on 3.0.3, which is far more recent that that.  Fearing I had somehow
>> bungled my git clone, I double-checked the WX_3_0_3_BRANCH only to discover
>> that statbox.h’s commit history there stops at July 26, 2013:
>> https://github.com/wxWidgets/wxWidgets/commits/WX_3_0_3_BRANCH/include/wx/osx/statbox.h
>>
>> Digging deeper, I see that the commit has a 3.1.0 tag, which I assume is the
>> release it is planned for?
>> https://github.com/wxWidgets/wxWidgets/commit/e9b379fe2abb579fc1c334cc3e642e66c0a5d158
>>
>> Why is it not in earlier releases, since it’s a relatively old fix?
>>
>> Thanks,
>> Jeff.
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] wxStaticBox bug

2017-12-26 Thread Adam Wolf
I would suggest making a patch for wxwidgets and sending it to the
list.  There are other macOS specific wxwidgets patches.  I have
always created the patch manually, and included the upstream bug/patch
in the email to the list here.

Let me know if you need step by steps, and thanks for tracking this
down!  Does this fix any particular macOS bugs?

Adam Wolf

On Tue, Dec 26, 2017 at 4:55 PM, Jeff Young  wrote:
> I got a reply back from Igor Korot that wxWidgets 3.1.0 is scheduled for
> mid-January.  The fix being tagged 3.1.0, however, is no guarantee that it
> will make it in.
>
> How often do we roll our wxWidgets version?  Should I just go ahead and
> create another wxWidgets patch for it?  (If so, is there a cheatsheet
> anywhere on how to do that?)
>
> Thanks,
> Jeff.
>
>
> On 26 Dec 2017, at 21:00, Jeff Young  wrote:
>
> I just tracked down a bug in OSX where tabbing doesn’t work within a
> wxStaticBox.  The bug was in include/wx/osx/statbox.h, which failed to
> inherit from wxStaticBoxBase.
>
> I checked on master, and that bug was fixed by vadz two years ago:
> https://github.com/wxWidgets/wxWidgets/blame/master/include/wx/osx/statbox.h
>
> I’m on 3.0.3, which is far more recent that that.  Fearing I had somehow
> bungled my git clone, I double-checked the WX_3_0_3_BRANCH only to discover
> that statbox.h’s commit history there stops at July 26, 2013:
> https://github.com/wxWidgets/wxWidgets/commits/WX_3_0_3_BRANCH/include/wx/osx/statbox.h
>
> Digging deeper, I see that the commit has a 3.1.0 tag, which I assume is the
> release it is planned for?
> https://github.com/wxWidgets/wxWidgets/commit/e9b379fe2abb579fc1c334cc3e642e66c0a5d158
>
> Why is it not in earlier releases, since it’s a relatively old fix?
>
> Thanks,
> Jeff.
>
>
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] wxStaticBox bug

2017-12-26 Thread Jeff Young
I got a reply back from Igor Korot that wxWidgets 3.1.0 is scheduled for 
mid-January.  The fix being tagged 3.1.0, however, is no guarantee that it will 
make it in.

How often do we roll our wxWidgets version?  Should I just go ahead and create 
another wxWidgets patch for it?  (If so, is there a cheatsheet anywhere on how 
to do that?)

Thanks,
Jeff.


> On 26 Dec 2017, at 21:00, Jeff Young  wrote:
> 
> I just tracked down a bug in OSX where tabbing doesn’t work within a 
> wxStaticBox.  The bug was in include/wx/osx/statbox.h, which failed to 
> inherit from wxStaticBoxBase.
> 
> I checked on master, and that bug was fixed by vadz two years ago:
> https://github.com/wxWidgets/wxWidgets/blame/master/include/wx/osx/statbox.h 
> 
> 
> I’m on 3.0.3, which is far more recent that that.  Fearing I had somehow 
> bungled my git clone, I double-checked the WX_3_0_3_BRANCH only to discover 
> that statbox.h’s commit history there stops at July 26, 2013:
> https://github.com/wxWidgets/wxWidgets/commits/WX_3_0_3_BRANCH/include/wx/osx/statbox.h
>  
> 
> 
> Digging deeper, I see that the commit has a 3.1.0 tag, which I assume is the 
> release it is planned for?
> https://github.com/wxWidgets/wxWidgets/commit/e9b379fe2abb579fc1c334cc3e642e66c0a5d158
>  
> 
> 
> Why is it not in earlier releases, since it’s a relatively old fix?  
> 
> Thanks,
> Jeff.

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] wxStaticBox bug

2017-12-26 Thread Jeff Young
I just tracked down a bug in OSX where tabbing doesn’t work within a 
wxStaticBox.  The bug was in include/wx/osx/statbox.h, which failed to inherit 
from wxStaticBoxBase.

I checked on master, and that bug was fixed by vadz two years ago:
https://github.com/wxWidgets/wxWidgets/blame/master/include/wx/osx/statbox.h 


I’m on 3.0.3, which is far more recent that that.  Fearing I had somehow 
bungled my git clone, I double-checked the WX_3_0_3_BRANCH only to discover 
that statbox.h’s commit history there stops at July 26, 2013:
https://github.com/wxWidgets/wxWidgets/commits/WX_3_0_3_BRANCH/include/wx/osx/statbox.h
 


Digging deeper, I see that the commit has a 3.1.0 tag, which I assume is the 
release it is planned for?
https://github.com/wxWidgets/wxWidgets/commit/e9b379fe2abb579fc1c334cc3e642e66c0a5d158
 


Why is it not in earlier releases, since it’s a relatively old fix?  

Thanks,
Jeff.___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


[Kicad-developers] Ratsnest local ratsnest display option wackiness

2017-12-26 Thread Andy Peters
I am working in GAL mode, with yesterday’s nightly. I have reported this as bug 
1740156.

There are three controls for ratsnest display: left-hand-side toolbar’s (LHS) 
Hide/Show Board Ratsnest button, Visibility Render tab’s Ratsnest checkbox, and 
the right-hand-side (RHS) toolbar’s Display Local Ratsnest button.

Toggling the LHS Board Ratsnest button toggles the visibility of the whole 
board’s ratsnest, as expected. The icon in this button changes so subtly that 
it’s not at all obvious that it changes! However, the tooltip for this button 
changes correctly. That is, when the ratsnest is visible, the tooltip reads 
“hide board ratsnest,” and when the ratsnest is invisible, it reads “show board 
ratsnest.” This is good — the tooltip should show what will happen if you press 
the button. Also, toggling this button toggles the checkmark in the ratsnest 
visibility option in the render thing. This too is good.

In the visibility window render tab, toggling the Ratsnest checkbox toggles the 
whole board ratsnest, as expected. When the checkbox is off, the ratsnest is 
gone; when on, the ratsnest appears. Also, the LHS toolbar board ratsnest 
button changes tooltip and (very subtly) its icon appropriately. So far so 
good. 

(However, the tooltip for the visibility checkbox always says “show unconnected 
nets as a ratsnest,” so it explains the feature, but doesn’t explain the effect 
of the checkbox toggle. The layer options in the visibility area are different: 
the checkboxes all have tooltips that say “enable this for visibility” and the 
items themselves have tooltips that are descriptive. This is an inconsistency, 
not really a bug.)

Now the really useful feature, the “local ratsnest.” It seems to work when it 
wants! Toggling it when the board ratsnest is enabled has no effect. The whole 
board ratsnest remains visible, the tooltip does not change from  “Display 
local ratsnest” and its icon very subtly changes until you either click on 
something or hit M with the cursor over a footprint, at which point it reverts 
to its previous state.

After some experimentation, it seems as if the only way to enable local 
ratsnest display is to toggle the ratsnest visibility to off, so all ratsnest 
lines vanish, then hover the mouse over a footprint and hit “M," at which time 
the nets connected to that footprint will appear and move as you move the part. 
The ratsnest doesn’t appear when you click on a part to select it, you must hit 
“M.” BUT — this does not hold true for the LHS Board Ratsnest button, that is, 
if you turn board ratsnest off with that button and select and move a part, no 
local ratsnest is displayed. Thus the visibility checkbox and the LHS toolbar 
button are not redundant.

If in that mode, you place the part (left-mouse-button click), the ratsnest 
lines vanish, and press the LHS Board Ratsnest button, the whole board ratsnest 
does not appear until you select or move a footprint. But, if you toggle the 
ratsnest visibility checkbox, the board ratsnest appears immediately.

Finally, it is clear that the RHS Local Ratsnest toolbar button does absolutely 
nothing.

My guess is that the logic should work the following way:

a) LHS ratnest button should toggle ratsnest on and off, with its icon state 
showing the current state and make it obvious.
b) RHS local ratsnest button should toggle between board and local ratsnest
c) Eliminate render tab visibility option for ratsnest entirely.

I understand that c) is where the ratsnest color may be changed, and if the 
user changes the background color to white, then white ratsnest lines become 
invisible. So perhaps the way this all should work is:

a) Eliminate LHS ratsnest toolbar button entirely.
b) Toggle ratsnest visibility with the checkbox in the render tab.
c) RHS ratsnest button toggles between board and local ratnest button. (And its 
tooltip should change with the state.)

I know this is somewhat long-winded but local ratnest display is really 
important when you’re working on a crowded board. 





Application: kicad
Version: (2017-12-24 revision 5708665)-master, release build
Libraries:
wxWidgets 3.0.2
libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
Platform: Mac OS X (Darwin 17.3.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
wxWidgets: 3.0.2 (UTF-8,STL containers,compatible with 2.8)
Boost: 1.61.0
Curl: 7.43.0
Compiler: Clang 7.3.0 with C++ ABI 1002

Build settings:
USE_WX_GRAPHICS_CONTEXT=ON
USE_WX_OVERLAY=ON
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_SPICE=ON


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] OSX dev environments

2017-12-26 Thread Jeff Young
Never mind.  I somehow managed to get a release build built into my debug 
folder and vice-versa.

All good now.


> On 26 Dec 2017, at 11:14, Jeff Young  wrote:
> 
> Thanks for the tips, guys.
> 
> I’ve installed QTCreator and have it up and running on my Kicad project.  It 
> works great browsing the source, etc.
> 
> I had one issue with the runtime configuration: it defaults to wanting to run 
> Kicad out of build/debug/kicad/ rather than out of build/bin/.  But I added a 
> Custom Executable pointing into build/bin/, which seems to work.
> 
> But I still can’t use the debugger.  All my breakpoints show as pending.  (I 
> thought this was because it couldn’t connect the source to my custom 
> executable, but I get the same problem running kicad out of 
> build/debug/kicad/.)
> 
> Any ideas?
> 
> Thanks,
> Jeff.
> 
> 
>> On 25 Dec 2017, at 09:27, José Ignacio > > wrote:
>> 
>> Another +1 for QT creator, I've used it on Linux and works very well with 
>> the kicad codebase
>> 
>> On Mon, Dec 25, 2017 at 2:09 AM, Bernhard Stegmaier > > wrote:
>> For my taste for KiCad the best I tried is QTCreator.
>> Works practically out-of-the-box perfectly with cmake and everything you 
>> would expect from an IDE (like debugging, etc.).
>> 
>> 
>> Regards,
>> Bernhard
>> 
>> 
>>> On 25. Dec 2017, at 03:47, Oliver Walters >> > wrote:
>>> 
>>> I followed this guide to set-up eclipse environment. 
>>> 
>>> https://gist.github.com/johnbeard/895bad60e4716f7f9c77 
>>> 
>>> 
>>> On 25 Dec 2017 12:37, "Tomasz Wlostowski" >> > wrote:
>>> On 25/12/17 02:03, Jeff Young wrote:
>>> > I was going to ask you guys for an Xcode project file for Christmas, but 
>>> > I’ve come to the conclusion that I absolutely hate Xcode.
>>> >
>>> > I’ve used Eclipse before, and was no big fan of it either.  I did really 
>>> > like IntelliJ, though, and I see they’ve got a C version too (CLion).  
>>> > Has anyone used it to build KiCad?
>>> >
>>> Hi Jeff,
>>> 
>>> I tried CLion. After a ~10 minute-long freeze (indexing the code) it
>>> crashed due to lack of memory. With a 6 GB java heap the project loaded,
>>> but the editor was veeery slow.
>>> 
>>> IMHO Get Atom if you need something easy to use on a Mac or Visual
>>> Studio (if you like "big" C++ IDEs).
>>> 
>>> Cheers,
>>> Tom
>>> 
>>> ___
>>> Mailing list: https://launchpad.net/~kicad-developers 
>>> 
>>> Post to : kicad-developers@lists.launchpad.net 
>>> 
>>> Unsubscribe : https://launchpad.net/~kicad-developers 
>>> 
>>> More help   : https://help.launchpad.net/ListHelp 
>>> 
>>> ___
>>> Mailing list: https://launchpad.net/~kicad-developers 
>>> 
>>> Post to : kicad-developers@lists.launchpad.net 
>>> 
>>> Unsubscribe : https://launchpad.net/~kicad-developers 
>>> 
>>> More help   : https://help.launchpad.net/ListHelp 
>>> 
>> 
>> 
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers 
>> 
>> Post to : kicad-developers@lists.launchpad.net 
>> 
>> Unsubscribe : https://launchpad.net/~kicad-developers 
>> 
>> More help   : https://help.launchpad.net/ListHelp 
>> 
>> 
>> 
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers 
>> 
>> Post to : kicad-developers@lists.launchpad.net 
>> 
>> Unsubscribe : https://launchpad.net/~kicad-developers 
>> 
>> More help   : https://help.launchpad.net/ListHelp 
>> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] OSX dev environments

2017-12-26 Thread Jeff Young
Thanks for the tips, guys.

I’ve installed QTCreator and have it up and running on my Kicad project.  It 
works great browsing the source, etc.

I had one issue with the runtime configuration: it defaults to wanting to run 
Kicad out of build/debug/kicad/ rather than out of build/bin/.  But I added a 
Custom Executable pointing into build/bin/, which seems to work.

But I still can’t use the debugger.  All my breakpoints show as pending.  (I 
thought this was because it couldn’t connect the source to my custom 
executable, but I get the same problem running kicad out of build/debug/kicad/.)

Any ideas?

Thanks,
Jeff.


> On 25 Dec 2017, at 09:27, José Ignacio  wrote:
> 
> Another +1 for QT creator, I've used it on Linux and works very well with the 
> kicad codebase
> 
> On Mon, Dec 25, 2017 at 2:09 AM, Bernhard Stegmaier  > wrote:
> For my taste for KiCad the best I tried is QTCreator.
> Works practically out-of-the-box perfectly with cmake and everything you 
> would expect from an IDE (like debugging, etc.).
> 
> 
> Regards,
> Bernhard
> 
> 
>> On 25. Dec 2017, at 03:47, Oliver Walters > > wrote:
>> 
>> I followed this guide to set-up eclipse environment. 
>> 
>> https://gist.github.com/johnbeard/895bad60e4716f7f9c77 
>> 
>> 
>> On 25 Dec 2017 12:37, "Tomasz Wlostowski" > > wrote:
>> On 25/12/17 02:03, Jeff Young wrote:
>> > I was going to ask you guys for an Xcode project file for Christmas, but 
>> > I’ve come to the conclusion that I absolutely hate Xcode.
>> >
>> > I’ve used Eclipse before, and was no big fan of it either.  I did really 
>> > like IntelliJ, though, and I see they’ve got a C version too (CLion).  Has 
>> > anyone used it to build KiCad?
>> >
>> Hi Jeff,
>> 
>> I tried CLion. After a ~10 minute-long freeze (indexing the code) it
>> crashed due to lack of memory. With a 6 GB java heap the project loaded,
>> but the editor was veeery slow.
>> 
>> IMHO Get Atom if you need something easy to use on a Mac or Visual
>> Studio (if you like "big" C++ IDEs).
>> 
>> Cheers,
>> Tom
>> 
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers 
>> 
>> Post to : kicad-developers@lists.launchpad.net 
>> 
>> Unsubscribe : https://launchpad.net/~kicad-developers 
>> 
>> More help   : https://help.launchpad.net/ListHelp 
>> 
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers 
>> 
>> Post to : kicad-developers@lists.launchpad.net 
>> 
>> Unsubscribe : https://launchpad.net/~kicad-developers 
>> 
>> More help   : https://help.launchpad.net/ListHelp 
>> 
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers 
> 
> Post to : kicad-developers@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~kicad-developers 
> 
> More help   : https://help.launchpad.net/ListHelp 
> 
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp