Camelia, the Perl 6 bug

IRC log for #padre, 2010-01-18

| Channels | #padre index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:17 teejay joined #padre
02:30 awnstudio joined #padre
02:56 jazzanova joined #padre
03:12 asphere joined #padre
03:29 jazzanova joined #padre
04:05 sjn joined #padre
04:23 n00b1 joined #padre
05:25 cognominal joined #padre
05:39 danlucraft joined #padre
06:20 SvenDowideit joined #padre
06:45 kaare joined #padre
06:49 kaare joined #padre
06:54 marcela joined #padre
06:54 Sewi joined #padre
06:54 Sewi gm
07:19 CSJewell joined #padre
07:34 isec joined #padre
07:39 waxhead hey Sewi
07:51 Sewi Hi waxhead
08:00 waxhead Sewi, know much about the event model in Wx?
08:28 Haarg joined #padre
08:30 danlucraft joined #padre
08:46 submersible ..braaains
08:53 sawyer_ joined #padre
08:54 Sewi waxhead: Nearly nothing, sorry
08:56 waxhead hey sub
08:56 submersible waxhead: hi ! ask me about events later
08:59 waxhead submersible, serious???
08:59 waxhead oh.. I guess so with the swarm stuff..
09:08 submersible waxhead: ok - u still there
09:29 isec joined #padre
09:34 Hyppolit svn: r10143 | submersible_toaster++ | http://padre.perlide.org/trac/changeset/10143
09:34 Hyppolit rearrange stickers on the rubik cube
09:34 Hyppolit trunk/Padre-Plugin-Swarm/lib/Padre/Service/
09:39 Hyppolit svn: r10144 | submersible_toaster++ | http://padre.perlide.org/trac/changeset/10144
09:39 Hyppolit doom lots of swarm code. remove IO::Interface, use wx event to notify components of swarm message arrival.
09:39 Hyppolit trunk/Padre-Plugin-Swarm/ trunk/Padre-Plugin-Swarm/lib/Padre/Plugin/ trunk/Padre-Plugin-Swarm/lib/Padre/Service/ trunk/Padre-Plugin-Swarm/lib/Padre/Swarm/ trunk/Padre-Plugin-Swarm/lib/Padre/Swarm/Message/ trunk/Padre-Plugin-Swarm/lib/Padre/Swarm/Service/ trunk/Padre-Plugin-Swarm/l​ib/Padre/Swarm/Transport/ trunk/Padre-Plugin-Swarm/lib/Padre/Wx/Swarm/ trunk/Padre-Plugin-Swarm/t/
10:20 waxhead submersible, sort of.. been playing little big planet with the kids.. man it's a riot!
10:21 waxhead I think what I need to do is read up on the navigate thing...
10:21 waxhead it passes events to other parts of the program...
10:54 cognominal joined #padre
11:21 submersible waxhead: which navigate thing ? the project directory ?
11:23 waxhead submersible, nah.. Wx::Window
11:23 waxhead what I want to do is have a crtl-tab bring up a dialog with a list of the open tabs, bit like visual studio and notepad++ does..
11:24 waxhead but what I need to do is first capture the CRTL-Tab event and then I I'm guessing here, pass the event along to the dialog to handle it's visibility and moving through the list it shows
11:24 waxhead So I'm getting the crtl-tab event fine, and a naieve approach brings up the dialog.. but you can't do anything more from there
11:25 Hinrik joined #padre
11:26 waxhead oh.. it might be simpler than I thought...
11:30 submersible waxhead: I would recommend building the dialog first ... then worry about driving it with an event handler.
11:31 submersible and do you really want a dialog jump up - or more a 'hold control - and tab around the open documents from a list'
11:32 Sewi waxhead: There is a good key_up - sample in Padres Wx(Main.pm
11:37 Hyppolit svn: r10145 | submersible_toaster++ | http://padre.perlide.org/trac/changeset/10145
11:37 Hyppolit use a different bogus way to decorate the _correct_ bottom tab for Chat
11:37 Hyppolit trunk/Padre-Plugin-Swarm/lib/Padre/Wx/Swarm/
11:37 waxhead submersible, yeha I do want one of those... I like it in both VS and Notepad++
11:38 submersible you'd probably have to trap the whole event too. Is there already a handler for it I wonder
11:42 Hyppolit svn: r10146 | submersible_toaster++ | http://padre.perlide.org/trac/changeset/10146
11:42 Hyppolit small tidy
11:42 Hyppolit trunk/Padre-Plugin-Swarm/lib/Padre/Plugin/
11:42 waxhead I'm testing with a little mock up at the moment...
11:43 waxhead The frame as EVT_KEY_UP set, and when it's CRTL-Tab I call $self->{alttab_win}->ProcessEvent($event);
11:43 waxhead and I have an overridden ProcessEvent method in my dialog...
11:45 submersible waxhead: good stuff mate.
11:46 waxhead you think??? I have NFI what I'm doing!! :)
11:46 waxhead it's going to be a case of persistance rather than brain substance that works this out...
11:47 waxhead at the moment it's not returning right..
11:50 submersible I think my next fun challenge will be a swarm resource tree.
11:50 waxhead how is it all going?
11:52 Haarg joined #padre
11:59 submersible waxhead: ok - but I have a serious issue with finding the correct network interface on various platforms... hence multicast works...maybe
12:00 submersible and the chat window styling does not seem to work on win32 for some reason
12:01 daxim joined #padre
12:01 waxhead submersible,  ouch.. that's frustrating...
12:01 waxhead I'll have to try it out some time.. :)
12:01 submersible yeah - IO::Interface works but utterly borken on windows.
12:02 submersible waxhead: wait for 0.07 .. and only if you have linux :(
12:02 waxhead ok.. it's enables fine here...
12:02 waxhead so I must have everything you need for it..
12:03 submersible u installed it from cpan?
12:03 waxhead nope.. I'm running ./dev..pl -a here
12:03 submersible ah
12:04 waxhead installed all the required deps 'manually'.
12:04 submersible well - if you see a chat window and there is output like 'Anonymous_321 joined chat'
12:04 submersible it works
12:05 waxhead I have a chat windows
12:05 waxhead window
12:05 waxhead nothing in it though
12:06 waxhead now it's there...
12:07 waxhead you fix something up from earlier tonight?
12:08 waxhead submersible, when swarm is running it sets the background task icon in the status bar on...
12:09 waxhead submersible, I also get this in the console: Constant subroutine Padre::Plugin::Swarm::DEBUG redefined at /usr/share/perl/5.10/constant.pm line 115.
12:11 submersible yeah - it probably does not crash now :)
12:11 submersible so the bg thread is a swarm network listening service
12:12 submersible but if there is no output . likely the wrong interface is subscribed to the multicast group
12:12 submersible what platform are you running ?
12:16 waxhead linux
12:19 Hyppolit svn: r10147 | submersible_toaster++ | http://padre.perlide.org/trac/changeset/10147
12:19 Hyppolit remove trace -
12:19 Hyppolit trunk/Padre-Plugin-Swarm/lib/Padre/Plugin/ trunk/Padre-Plugin-Swarm/lib/Padre/Service/
12:19 submersible quash that warning.
12:20 submersible waxhead: how many network interfaces ? wlan0 eth0 and more ..
12:21 waxhead eth0 eth1
12:21 waxhead for some reason wlan0 is mapped to eth1
12:21 submersible funky
12:21 waxhead yep...
12:21 waxhead I could go back and fix it some day..
12:21 waxhead using netmanager to manage it all too
12:22 submersible chances are - the wrong one was picked for the listener.. sending seems to work fine
12:22 submersible if u try 0.06 from cpan .. or perhaps revert to.....
12:22 waxhead eth0 isn't an active interface though.
12:22 waxhead only eth1
12:22 waxhead but it shows up in the ifconfig list
12:23 submersible waxhead: right - I believe the same issue exists for all platforms when there is a zoo of network interfaces to choose from.
12:23 waxhead error message is gone now.. :)
12:24 waxhead submersible, zillions these days..
12:24 submersible I know.
12:24 submersible somewhere around @9663
12:25 waxhead submersible, Use of uninitialized value in sprintf at /home/pete/Programming/Perl/padre/trunk/Pad​re-Plugin-Swarm/lib/Padre/Wx/Swarm/Chat.pm line 266.
12:25 cognominal joined #padre
12:25 submersible but no document opens ?
12:25 waxhead nope
12:26 submersible can you do a 'netstat -gn'
12:26 submersible and see if 239.255.255.1 appears
12:27 waxhead it does when I'm running Padre: eth1            1      239.255.255.1
12:27 submersible and ur wireless is the currently connected interface?
12:27 waxhead yep...
12:28 waxhead so it's got the right interface
12:28 submersible crap
12:28 submersible blows that theory
12:28 submersible are you on a managed or adhoc network
12:28 waxhead managed
12:29 waxhead I see the leaked scalars have been reduced lately
12:29 submersible I think swarm has no more .. i think
12:30 waxhead OK.. I'm going to bed... tired...
12:30 waxhead night!
12:59 n00b1 Hello all. Today I try padre, I like. But I have one problem. Space of drive named 'C' too small to deploy strawberry perl. Is it possible to get a strawberry perl windows installer (wix?) script?
13:11 garu n00b1, have you tried portable padre? or portable strawberry for that matter?
13:12 garu as for a wix script, sorry, you'll have to wait for windows users to wake up
14:59 PacoLinux joined #padre
15:01 Haarg joined #padre
15:03 asphere joined #padre
16:40 Hinrik joined #padre
16:54 tsee joined #padre
17:34 dan joined #padre
18:58 n00b1 garu, No portable, full installer. Padre installer include strawberry perl and install to drive 'C' without asking neither destination path nor drive.
19:00 garu I believe this (installing only into 'C') is a known Strawberry issue, not Padre related. But using the portable version should provide a workaround, being it works (or should work) under any drive/path combination
19:01 bricas if anyone has some tuits, it'd be great if you could 1) test out the latest perltidy plugin and/or 2) check the source to see if it matches the latest and greatest way of doing things.
19:01 n00b1 garu, Thanks, I understand that, because ask for strawberry perl installer sources.
19:54 Sewi n00b1: Newer (from Visa?) Windows versions should be able to "mount" a directory into another one.
19:54 Sewi You could mount  D:\perl\strawberry as C:\strawberry. It would be reachable through c:\strawberry but still life on D:
19:57 Corion joined #padre
19:58 Corion Hi all! I want to write a Padre part/plugin that displays a "to do" list extracted from the document source. Can I do that from within a ::Plugin or do I start off better by just writing the module directly into Padre?
19:59 Corion I'm planning to clone Padre::Wx::FunctionList for the functionality/UI , but I wonder how to best integrate it into Padre while I'm testing, preferrably without needing to restart Padre too often ;)
20:02 Corion Oh. And on Win32, using Padre 0.54, a right click on a file in the "directory" pane, then "open in file browser", opens the directory containing that file (correct) but crashes Padre (not so nice)
20:02 Corion ... but not reproducible. Sorry for the false alarm.
20:08 bricas Corion: i think you can initially develop it in the MY plugin, which you can reload inside Padre.
20:08 bricas Corion: then extract it out when you're ready.
20:08 Corion bricas: Cool - that's what I'm trying at the moment ;)
20:09 bricas s{MY}{My}
20:13 Corion What "kind" of editor is Padre? Does it store positions in a file as line/column or as offset from the start? Or is there a premade "position" class that I can use to "bookmark" a location?
20:14 Corion Hmm - there is Padre::DB::Bookmark, but I don't need to persist these bookmarks ...
20:15 Corion ... but Bookmarks are line oriented, not buffer oriented. That's good to know :)
20:15 * Corion shuts up to not disturb the quiet further
20:20 danlucraft joined #padre
20:22 Sewi Hi Corion
20:22 Corion Hi Sewi :)
20:23 Sewi Did you enable the developer plugin?
20:24 Corion I'm not sure - where would I find it? It's not in the Plugin Manager...
20:24 Sewi Sure, it should. It has Options for "Run document in Padre" (redefines any packages within Padre which are defined in the document)
20:24 Sewi Run selection in Padre
20:25 Corion Duh - "Padre Entwickler Werkzeuge" :)
20:25 Sewi Ja, genau das :-))
20:25 Corion How do I get at the "main" Padre object where the ->{functions} FunctionList lives in, from my plugin?
20:26 Sewi use Padre;
20:26 Sewi Padre->ide->wx->main
20:26 Corion Thanks!
20:26 Sewi The Padre/Document/Perl.pl has some samples for dealing with positions.
20:26 Sewi Padre usually uses a byte-counter and could get the line from it.
20:27 Corion Ow - so it's buffer-oriented and not line oriented like its bookmarks :-)
20:27 Sewi Look at the autocomplete methods in the Perl.pm (not pl - sorry), they're playing around with char and line counters
20:27 Corion Cool!
20:35 tsee joined #padre
20:36 Sewi Corion: Do you have a trac account for Padre?
20:36 Corion No - it's always been too much hassle for me to sign up
20:36 Sewi Got a minute?
20:36 Corion Yeah - I'm writing that plugin, but otherwise, I'm here :)
20:37 Sewi trac?
20:37 Hyppolit trac is http://padre.perlide.org/trac and also http://padre.perlide.org/trac/register
20:37 Sewi Click on the registration link, enter three values and you're done.
20:38 Corion Indeed :)
20:40 Sewi done?
20:40 Corion Yep
20:40 Sewi thanks, reg closed
20:46 Corion Yay! My panel shows up. Now I "just" have to fill it with the information I want :)
20:46 cognominal joined #padre
20:47 cognominal joined #padre
20:49 Sewi Happy parsing :-)
20:49 Corion That's just a grep /TODO|XXX/ :-)
20:50 Sewi /TO[\- ]?DO
20:50 Corion Yeah - I plan on making the regex(es) configurable, later :)
20:51 Corion For Perl, maybe even /#\s*todo\W+(.*)/i ...
20:52 Sewi A plugin could add pages to the preferences dialog.
20:52 Sewi Pader/Wx/Preferences/*.pm
20:52 tsee Don't forget FIXME
20:52 Corion Cool, but first I have to hack it to show my hardcoded list of items :)
20:52 tsee (and "this is not the right way to do it" ;)
20:52 Corion I wonder how I can get a cross-file todo list, but likely Padre::Project will help there :)
21:07 Corion Oh. The list should obviously also include /# Ticket #\d+/ :-))
21:08 Sewi good idea
21:09 Corion Except that means I should think about a secondary "link" method, not only jump to the relevant line in the file, but also jump to an URL... Later :)
21:14 Corion Cool - the basics work already :)
21:23 Corion Yay! And navigation also works. I have to stop now - where can I upload the modules (300 lines) so others can play with it?
21:26 * Corion is amazed of Padre and himself :)
21:26 submersible :)
21:27 Sewi Corion: Because you just signed up, you don't got commit bit until now (I can't give it to you).
21:27 Corion Ah - well, it's not really ready for committing, because there is almost no UI and the TODO list does not refresh/change if you change the text yet :)
21:27 Sewi Please either tell me a URL where you uploaded it or send it to me via email and I'll add it to Padre's repository
21:27 Sewi Everything is ready for commit as long as others should see it.
21:28 Corion I'll upload it somewhere, so others can play too. Or do people here have github accounts? Then I'll upload to github instead
21:28 Sewi It might not be ready for release :-)
21:28 Corion I hope that when I get up tomorrow, others will have finished it :-))))
21:32 submersible Corion: if you're signed up to trac you could attach to a new ticket and prompt one of the devs to commit from there
21:32 Corion Ah - if other people can see it that way as well then I won't upload it to github, as people seem to use Trac+svn here?
21:34 Sewi yes, they do, but trac has a attachment file-size limit and I'm unsure if you're module would fit.
21:34 Sewi If it does, it would be the best way
21:34 Corion It's two files with 300 lines in total
21:34 Sewi Try it out
21:37 Hyppolit #824: Dynamic To-do list per document/project (new enhancement) [ http://padre.perlide.org/trac/ticket/824 ]
21:38 Corion Ticket created.
21:39 Sewi cool, thanks
21:40 cognominal joined #padre
21:43 Corion Comments etc. are welcome, patches too, but I guess they better go into the code itself than to me ;)
21:46 Corion Maybe in the long run, the common functionality between FunctionList.pm and Todo::UI.pm can be abstracted out, as I simply cloned FunctionList.pm
21:52 waxhead joined #padre
21:59 patspam joined #padre
22:06 Corion Oh - and if I could make one request for Padre - having a $main->refreshables , that get called from Padre::Wx::Main::refresh , would be really cool, instead of that hardcoded list.
22:07 Corion Or "refresh_listeners" , as is currently the more PC name ;)
22:07 tsee Corion, not to spite your suggestion, but I am under the impression that you have commit access :)
22:07 tsee (Sounds sane to me, at least
22:07 tsee )
22:07 Corion tsee: As far as I know I only have Trac access, not svn access. Also, I only have git-svn here and I don't know if that's enough to push to SVN :)
22:07 tsee Ah.
22:08 tsee Sorry, then.
22:08 Corion No worries :)
22:08 tsee But I guess if you catch szabgab, he'd be more than happy to fix that situation.
22:08 Corion I'm just playing with my plugin and see now that I'd have to patch Padre itself, which shouldn't be necessary IMO :)
22:08 tsee Also, git-svn will do nicely.
22:08 Corion Good to know
22:09 tsee Corion, it's the typical fast-track to getting lured in.
22:09 Corion Gabor tried that already :)
22:09 tsee When's the next GPW again?
22:09 Corion June or July I think
22:09 Corion I had three hours of time today and thought that I'd implement this nice feature, and there it is already :)
22:09 tsee Hmm. It's *almost* within comfortable daily driving distance, too.
22:10 tsee (beer bribes)++
22:10 Corion Ugh - I prefer staying at the place, as its less stressfull to me. And I can drink then ;)
22:10 tsee I agree.
22:11 tsee If it was *in* Stuttgart, I could just take the train at virtually any time of the night.
22:11 Corion tsee: Heh ;)
22:11 Corion Ugh - running my "todo" plugin on Padre::Wx::Main creates a loong list :)
22:11 tsee Then again, I didn't commute to Frankfurt either.
22:56 CSJewell2 joined #padre

| Channels | #padre index | Today | | Search | Google Search | Plain-Text | summary