Camelia, the Perl 6 bug

IRC log for #padre, 2010-07-22

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

All times shown according to UTC.

Time Nick Message
00:07 Limbic_Region joined #padre
00:07 Limbic_Region left #padre
00:17 teejay joined #padre
00:33 |Sno| joined #padre
00:51 patspam joined #padre
02:29 jazzanova joined #padre
02:50 mib_v2b85o joined #padre
03:15 PerlJam joined #padre
03:21 PerlJam joined #padre
03:34 PerlJam joined #padre
03:44 pece joined #padre
03:53 Sno| joined #padre
03:59 [Sno] joined #padre
04:33 kanishka joined #padre
05:51 Hyppolit #970: Switching language removes plugin menus (new defect) [ http://padre.perlide.org/trac/ticket/970#comment:1 ]
06:01 danlucraft joined #padre
06:05 jazzanova joined #padre
06:30 Jagdwurst joined #padre
06:31 Alias_ joined #padre
07:09 daxim joined #padre
07:20 marcela joined #padre
07:28 rindolf joined #padre
07:41 Sewi joined #padre
07:41 Sewi gm
07:42 rindolf Sewi: top of the morning.
07:42 Sewi Alias_: Padre is at ~160 MB memory and 4-6% CPU time when idle now, which is ok :-)
07:53 Steffen joined #padre
08:38 Alias_ Sewi: After you changed the directory root?
08:40 rindolf Alias: hi. So what about this patch: https://rt.cpan.org/Public​/Bug/Display.html?id=54214 ?
08:42 daxim 4-6% WTF
08:44 Alias_ It will be the stupid background polling
08:44 * Alias_ has to run
08:48 Sewi Alias_: After you changed the default
08:49 Sewi BooK, bricas, El_Che, garu, jjore, jq, sjn, szbalint: Could one of you please op Hyppolit? Thanks
08:50 Sewi thanks
09:09 mj41 joined #padre
09:50 cognominal joined #padre
11:01 danlucraft joined #padre
11:04 rindolf joined #padre
11:40 Hyppolit svn: r11918 | zenogantner++ | http://padre.perlide.org/trac/changeset/11918
11:40 Hyppolit fix #969
11:40 Hyppolit trunk/Padre/ trunk/Padre/lib/Padre/Wx/
11:42 Hyppolit #969: crash when switching language after using Ack (closed defect) [ http://padre.perlide.org/trac/ticket/969#comment:1 ]
12:33 Alias_ joined #padre
13:05 rindolf joined #padre
14:10 zenog I think the l10n of the menu is somewhat broken in trunk ...
14:17 Alias_ Some of it is, I broke it
14:17 zenog Alias_: I am looking into part of it, let's see what I can do ;-)
14:17 Alias_ As part of the Action refactoring
14:17 Alias_ Every time you changed locale, we used to destroy the entire Action database and rebuilt it from scratch
14:19 Steffen Is that a problem? How often do you change locales?
14:20 Alias_ Building up the action database takes 3,000-4,000 lines of code
14:20 Alias_ If we do it once, we can optimise it, index it, and then remove that code
14:20 rindolf joined #padre
14:20 Alias_ Also, right now plugins can't add actions
14:21 zenog locale changes are really really seldom for actual users, I think.
14:22 Alias_ Yep
14:22 zenog Alias_: I don't really understand how the translation works w/o rebuilding the Action library.
14:23 zenog Does it have something to do with the _T() functions?
14:23 Alias_ Yes
14:23 Alias_ Wx::gettext('Foo') translates immediately
14:23 Alias_ my $foo = _T('Foo'); translates later
14:23 Alias_ _T('Foo') eq 'Foo'
14:24 Alias_ _T does nothing at all
14:24 Alias_ It's there so the translation tools see 'Foo'
14:24 zenog Alias_: but the string is translated somewhere else?
14:24 Alias_ And then later you can Wx::gettext($foo)
14:24 Alias_ Before, we used to translate before we created the Action
14:24 Alias_ Which meant they had to all be destroyed
14:25 Alias_ Now we flag them for translation, but do the ACTUAL translation when we pull the strings from the action
14:27 zenog Alias_: Do you know where this is?
14:28 Alias_ # Translate on the fly when requested
14:28 Alias_ sub label {
14:28 Alias_ Wx::gettext($_[0]->{label});
14:28 Alias_ }
14:28 zenog Because this may also be the spot where we would handle the special case of the language strings themselves ...
14:29 Alias_ _T gets the string into messages.pot
14:29 Alias_ That does the translation from whatever language is active
14:29 Alias_ No
14:29 Alias_ The special casing is an artifact of that specific menu, in my opinion
14:30 Alias_ Well, maybe...
14:30 Alias_ But I wouldn't want to see other special cases accumulate
14:30 zenog We could also put those menu strings where the language descriptions are.
14:30 zenog Problem is we cannot use _T, because we do not handle literal strings here.
14:31 zenog Padre::Locale
14:33 zenog With an additional key "menu_label" in the hash %RFC4646 or so
14:33 Alias_ That could work
14:34 Alias_ Padre::Locale would certainly be a topical place to do it
14:34 Alias_ And we can pull from there and ignore the normal action label
14:34 zenog e.g. menu_label => _T('German - Deutsch'),
14:34 Alias_ no no
14:34 Alias_ You just store it as _T('German')
14:35 Alias_ Then you pull the label, change the local to the target language, pull the label again, and change it back
14:35 zenog But as I understood, in Action.pm the complete label is translated on the fly.
14:35 Alias_ Right, but it translate to the current active Wx-level locale
14:36 Alias_ The menu code used to switch active language for every menu item
14:36 Alias_ We could do essentially the same thing here
14:37 zenog So handle the "View->Language" menu as a special case in ActionLibrary ?
14:37 Alias_ Yep
14:37 Alias_ It's a completely different situation than everywhere else
14:38 zenog But having the additional key-value pair (and the corresponding translations in the .po files) in Locale.pm would save us from even that.
14:38 zenog You are right, this will not happen anywhere else.
14:39 Alias_ I'm happy to live with this one special case, rather than complicating translation
14:40 zenog So you mean the "View->Language" menu is re-created when the interface language is changed?
14:40 Alias_ All the menus are anyway
14:40 Alias_ You have to
14:40 Alias_ We're just not recreating the action database underneath it
14:40 zenog That's what I meant.
14:41 Alias_ yes
14:42 mib_jm7426 joined #padre
14:42 zenog Hi mj41
14:42 mib_jm7426 Mmm
14:43 zenog That was fast. Maybe (s)he was hurt because I addressed them with the wrong name ...
14:44 zenog Alias_: If you tell me where the menu is recreated, I would try to implement that ...
14:44 Alias_ Padre::Wx::Menu::View
14:45 zenog Alias_: thx
14:46 mib_5btbgh joined #padre
14:46 zenog Alias_: Okay, will try and commit if successful.
14:47 zenog Alias_: Will then tell you to have a look at it ;-)
14:47 Alias_ I'll be around all weekend as well
14:47 Alias_ Hopefully can repair some of the things I broken
14:47 Alias_ broke
14:51 zenog I'll be there most likely on Sunday - see you around ;-)
14:51 zenog There are so many things to be done ...
14:51 Alias_ It's an IDE, there's ALWAYS so many things to be done
14:51 Alias_ That's why we give commit to anyone :)
14:51 Alias_ More contributors or you die
14:52 Alias_ night
14:56 mib_gt71ep joined #padre
14:56 mib_gt71ep bla
14:57 moghar joined #padre
14:57 moghar Hello, I'm having a problem with find all in the editor
14:58 moghar when I close a findall window with results
14:58 moghar all my other screens still have the find all results
14:58 moghar anyone online/know a fix?
15:00 GabrielVieira joined #padre
15:13 Hyppolit svn: r11919 | zenogantner++ | http://padre.perlide.org/trac/changeset/11919
15:13 Hyppolit first attempt to fix language switching menu
15:13 Hyppolit trunk/Padre/ trunk/Padre/lib/Padre/Wx/ trunk/Padre/lib/Padre/Wx/Menu/
15:13 zenog Alias_: Just change it if you think it is sub-optimal, or tell me ...
15:13 zenog (or anyone else here ;-)
15:27 Hyppolit svn: r11920 | zenogantner++ | http://padre.perlide.org/trac/changeset/11920
15:27 Hyppolit language switching via menu: nicer explaining message
15:27 Hyppolit trunk/Padre/lib/Padre/Wx/
15:34 Hyppolit #680: Make readonly files visually distinct via different background (new enhancement) [ http://padre.perlide.org/trac/ticket/680#comment:1 ]
15:37 zenog enough for today ... &
15:37 Hyppolit #971: Ack always finds something in .padre/config.db (new defect) [ http://padre.perlide.org/trac/ticket/971 ]
15:49 toi joined #padre
15:54 azawawi joined #padre
15:55 * azawawi pops his kunckles :)
16:01 rindolf joined #padre
16:10 Hyppolit #972: [Perl6] - it would be nice to have a configuration option for RAKUDO_DIR (new enhancement) [ http://padre.perlide.org/trac/ticket/972 ]
16:11 azawawi sure
16:12 Hyppolit #973: Ack: search by file type is in UI, but not supported (new defect) [ http://padre.perlide.org/trac/ticket/973 ]
16:14 zenog Just ran my first Perl 6 program inside Padre ;-)
16:14 azawawi zenog: cool
16:20 zenog Is it a known issue that syntax highlighting does not really work well for Perl 6?
16:21 azawawi what platform are u using...?
16:21 zenog (a) Scintilla is default, which does nothing, (b) STD.pm's highlighting looks strange.
16:21 zenog Linux / Ubuntu
16:21 zenog I got this output on the console: Padre::Plugin::Perl6::Perl​6Document=HASH(0x8fc0cb0)
16:23 azawawi i will investigate soon
16:23 azawawi im trying to figure out what im going to do next over the weekend :)
16:23 azawawi refreshing my mind :)
16:24 zenog Great - good to have the developers immediatly at hand in the channel ;-)
16:25 zenog azawawi: I guess it would be great to improve/polish the Perl6 plugin, so that Padre could profit from the Rakudo Star release.
16:25 azawawi it takes time for me to switch from Java-Javascript coding to Perl :)
16:25 zenog hehe.
16:26 zenog azawawi: If you need a helping hand with any of the Perl 6 plug-in stuff, I will join the Hackathon on Sunday...
16:27 azawawi zenog: cool... there is a Perl 6 heckathon? where?
16:27 zenog azawawi: There is a Padre Hackathon.
16:27 zenog 2 years of Padre!
16:28 zenog Virtual Hackathon, on IRC.
16:28 zenog http://use.perl.org/~Alias/journal/40441
16:28 zenog Maybe this should be in the topic ...
16:31 azawawi oh i read it before but forgot the date :)
16:31 azawawi thanks for posting it again
16:33 zenog sent a reminder to the mailing list ...
16:34 Steffen joined #padre
16:34 rindolf joined #padre
16:40 azawawi nice
16:55 patspam joined #padre
17:00 Hyppolit svn: r11921 | azawawi++ | http://padre.perlide.org/trac/changeset/11921
17:00 Hyppolit Description field is hidden by default in the regex editor dialog. A checkbox now optionally toggles its visibility.
17:00 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
17:44 Hyppolit svn: r11922 | azawawi++ | http://padre.perlide.org/trac/changeset/11922
17:44 Hyppolit Added forgotten accelerator and Perl tidies the code
17:44 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
18:46 toi joined #padre
19:16 pece joined #padre
19:44 rindolf joined #padre
20:21 GabrielVieira joined #padre
21:05 Haaarg joined #padre
21:25 chorny joined #padre
21:53 kanishka joined #padre
22:08 oznux joined #padre
22:24 danlucraft joined #padre
23:15 Sewi joined #padre

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