Camelia, the Perl 6 bug

IRC log for #padre, 2010-03-15

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

All times shown according to UTC.

Time Nick Message
00:17 teejay joined #padre
01:06 jazzanova joined #padre
02:27 perlsyntax joined #padre
02:28 perlsyntax How do i remove padre from cpan command line?
02:29 perlsyntax ?
02:31 perlsyntax left #padre
03:57 Sno|Laptop joined #padre
05:08 mohsen joined #padre
05:43 Sewi gm all
06:07 danlucraft joined #padre
06:20 pece joined #padre
06:25 marcela joined #padre
06:43 kaare joined #padre
06:45 SvenDowideit_ joined #padre
06:51 Alias__ joined #padre
07:15 aukjan joined #padre
07:18 SvenDowideit__ joined #padre
07:19 user_3591 joined #padre
07:19 user_3591 hi
07:19 pece joined #padre
07:20 user_3591 i'm a beginner in perl ... i used the following code in padre ... `perldoc -u -f atan2`
07:20 user_3591 i'm getting an error that perldoc is not recognized as a command
07:21 user_3591 could you tell me ..whats the mistake I'm doing
07:21 user_3591 ?
07:23 szabgab that was a short lived and very one sided conversation :-(
07:24 user_3591 joined #padre
07:28 azawawi joined #padre
07:28 szabgab hi azawawi
07:28 szabgab do you also get the sand storm we have ?
07:29 azawawi yeah a bit
07:29 szabgab it is lovely
07:29 azawawi it is a bit refreshing :)
07:29 szabgab anyway I am off to work :-)
07:29 azawawi have fun :)
07:42 Sewi pong azawawi
07:43 azawawi what's the problem with WhereFrom.pm?
07:44 azawawi i remember you asking me to do something about it :)
07:46 azawawi ah i see
07:46 azawawi my advice dont use Padre::Wx::Dialog :)
07:46 Sewi You're the GUI guy, go ahead fixing it :-)
07:47 Sewi The skip button is a big problem...
07:47 azawawi cool
07:47 azawawi will do it in a couple of hours then :)
07:47 * azawawi back 2 work
07:47 * azawawi &
08:05 user_1721 joined #padre
08:05 user_1721 hi
08:06 Sewi hi
08:06 user_1721 i wan ot use pedre as perl IDE
08:06 user_1721 for testing purpose i have installed its windows version
08:07 user_1721 when i run my perl script under this... it gives me an error
08:07 user_1721 no execution mode was define for this document
08:07 user_1721 i didnt understand how to use it...
08:08 user_1721 plz. help me out sorting this problem
08:08 Sewi Do you use the "run" menu function from Padre?
08:09 user_1721 yup
08:10 Sewi I'll try...
08:10 user_1721 wat ???
08:10 Sewi ...running a Perl file from Padre on Win
08:11 Sewi Please go to Help -> About -> Info
08:11 Sewi I'd like to know your ProcessStream version
08:12 user_1721 its .24
08:13 user_1721 r u there
08:13 Sewi I have 0.27 but I don't think this is the problem...
08:14 user_1721 is there any help link from where i could check how to work in pedre
08:15 user_1721 reply a bit fast plz
08:15 Sewi You could look at the wiki pages
08:15 Sewi http://padre.perlide.org/trac/wiki
08:15 user_1721 :(
08:16 Sewi Something special you're looking for?
08:16 Sewi Padre is usually self-explaining
08:19 waxhead joined #padre
08:22 Sewi Hi wax
08:26 danlucraft joined #padre
08:28 user_1721 actualyy i have to use it on linux...
08:29 user_1721 bt i just want to know, is it machine specific or wat
08:29 user_1721 means.. my web site scripts r on server... then where should i install it n how do i connect to it
08:33 dorkfish user_1721: where you install padre doesn't matter
08:34 dorkfish it's basically just a big text editor
08:34 waxhead hey Sewi
08:34 dorkfish use it the same way you use other editors
08:34 dorkfish edit locally, then upload the changed files to the server
08:50 Sewi ...or use the remote file edit feature :-)
09:33 daxim joined #padre
09:45 zenog joined #padre
09:55 reneeb joined #padre
10:31 waxhead joined #padre
10:35 waxhead hmmm... the nic in these laptops is so flakey
10:41 sawyer joined #padre
10:41 Sno|Laptop joined #padre
10:44 zenog Has anyone experience with the mercurial plugin?
10:45 zenog I cannot install it due to test failures.
10:45 waxhead zenog, it's like the plugins for the various VCS's are very rudimentary
10:46 waxhead s/like/likely/
10:46 sawyer left #padre
10:46 user_1721 joined #padre
10:46 Sewi Yeah, we should really add a version control layer and let the plugins provide the backend for this...
10:49 zenog Sewi: Not so trivial because of rather different philosophy/commands ... but of course worth thinking about it.
10:54 zenog I reported my problem to the CPAN BTS: https://rt.cpan.org/Public​/Bug/Display.html?id=55578
10:55 waxhead joined #padre
10:58 burak joined #padre
10:59 waxhead jeez... some days you just can't do the simple things
11:01 burak hi
11:02 burak try my fork for the ::HG plugin: http://bitbucket.org/burak/cpan-padre-plugin-hg/ I've fixed the unit test issues but not sure if the module itself is working correctly since I didn't test it functionality-wise
11:05 waxhead burak, commit the changes back to trunk...
11:07 burak uhm... I don't think it exists on the svn repo that's why I forked it on bitbucket :) I've sent a pull request but no answer yet
11:07 waxhead burak, oh.. sorry.. just assumed it was one of the multitude of Padre-Plugin-* in the repo...
11:07 burak np :)
11:10 Sewi Question to everyone: What about extending the select-to-matching-bracket to select-full-sub (including "sub foo" and the newline after } if the current bracket is the opening(/closing?) bracket of a sub?
11:18 azawawi joined #padre
11:22 zenog burak: Cool. Will try after lunch.
11:23 zenog Sewi: You mean select-full-sub as a new function, or just add the described behavior to the already existing function?
11:24 zenog Sewi: This could be extended to other things as well: loops, blocks for sort, map, etc. It would be select-to-matching-bracket-plus-something.
11:31 SvenDowideit_ joined #padre
11:32 Hyppolit svn: r11116 | azawawi++ | http://padre.perlide.org/trac/changeset/11116
11:32 Hyppolit Initial attempt at fixing Padre survey dialog
11:32 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
11:33 Hyppolit svn: r11117 | zenogantner++ | http://padre.perlide.org/trac/changeset/11117
11:33 Hyppolit completed gettext support for documentation/help menu
11:33 Hyppolit trunk/Padre/lib/Padre/Action/ trunk/Padre/lib/Padre/Wx/ trunk/Padre/lib/Padre/Wx/Dialog/ trunk/Padre/share/locale/
11:37 Hyppolit svn: r11118 | azawawi++ | http://padre.perlide.org/trac/changeset/11118
11:37 Hyppolit Hide the shortcut set/reset sizers until the user has actually selected one.
11:37 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
11:43 waxhead time for bed.. night all
11:52 Hyppolit svn: r11119 | azawawi++ | http://padre.perlide.org/trac/changeset/11119
11:52 Hyppolit Fixed the Padre survey dialog to be a bit more elegant
11:52 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
11:54 Hyppolit svn: r11120 | azawawi++ | http://padre.perlide.org/trac/changeset/11120
11:54 Hyppolit Perl tidy (25 files)
11:54 Hyppolit trunk/Padre/lib/Padre/ trunk/Padre/lib/Padre/Action/ trunk/Padre/lib/Padre/Document/ trunk/Padre/lib/Padre/Plugin/ trunk/Padre/lib/Padre/Task/Outline/ trunk/Padre/lib/Padre/Wx/ trunk/Padre/lib/Padre/Wx/Dialog/ trunk/Padre/lib/Padre/Wx/Menu/ trunk/Padre/t/
11:55 azawawi Sewi: ping
11:55 azawawi Sewi: is that what you needed?
11:57 Hyppolit svn: r11121 | azawawi++ | http://padre.perlide.org/trac/changeset/11121
11:57 Hyppolit The skipping part is now working again. I only enabled it for testing the dialog
11:57 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
12:06 * azawawi &
12:10 ecocode joined #padre
12:28 Hyppolit svn: r11122 | azawawi++ | http://padre.perlide.org/trac/changeset/11122
12:28 Hyppolit Fixed xt author test failure and removed unused role in @ISA
12:28 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
12:34 azawawi joined #padre
12:48 zenog Hm. The Mercurial plugin does not work as good as reported as on http://padre.perlide.org/trac/wiki/Plugins
12:52 zenog I have to correct myself.
12:52 zenog It works, just differently from the SVN plugin.
12:55 zenog There is no context menu for directories, but otherwise it is okay.
13:14 Sewi zenog: We could add a module for all the common stuff (add, commit, diff, update, revert) to reduce the amount of redundant code
13:18 zenog Sewi: I don't have much time to do actual work during the week, but VCI on CPAN seems to be a thing that provides a generic layer for different VCS.
13:19 Sewi I was talking about the GUI side... Maybe we could use this anyway
13:20 zenog okay
13:20 zenog http://vci.everythingsolved.com/
13:27 burak VCI uses Moose. I thought Moose->isa('no-no') in Padre
13:28 zenog burak: also for plugins?
13:29 burak no idea for that :)
13:31 zenog Why is Moose a no-no? Because of the speed, or because of the dependencies?
13:31 burak The main concern is the startup speed I think
13:31 zenog Fair point.
13:35 burak http://use.perl.org/~Alias/journal/39573
13:43 zenog Ah, so Moose is used for the Perl 6 plugin.
13:43 zenog So it is not definitive no-no.
13:48 zenog But that's just theory anyway, because not a single line of code is written yet ...
13:48 azawawi joined #padre
13:48 azawawi zenog: hi...
13:48 azawawi zenog: Perl 6 plugin only needs Moose for Larry's STD.pm :)
14:00 elbergotas joined #padre
14:04 elbergotas left #padre
14:08 Sewi I think it isn't used in the core because of mem usage, startup speed and to keep the source readable for beginners.
14:22 teejay so who has seen http://www.cs.brown.edu/peop​le/acb/codebubbles_site.htm ?
14:22 teejay I'm sure we could do something like that in padre
14:22 teejay even if it's not as pretty
14:22 teejay some kind of annotation associated with files could also be very cool
14:23 teejay a special document that shows only a specific function (or set of functions) rather than a whole file, with the option to unhide the rest could be way cool
14:23 teejay hmm
14:23 teejay it can't be that hard
14:25 pece2 joined #padre
14:28 Sewi looks cool
14:28 Sewi There is a ticket about such a thing for people using a keyboard instead of a mouse for developing :-)
14:29 Sewi #734
14:29 Hyppolit #734: "Read" view of a file (new enhancement) [ http://padre.perlide.org/trac/ticket/734 ]
14:31 teejay wonder if there is a standard for annotating source code in seperate files
14:42 patspam joined #padre
14:43 szabgab_mib joined #padre
14:47 Sewi sounds hard because you don't get a reliable reference
14:49 dapatrick joined #padre
14:51 pece joined #padre
15:00 teejay Sewi, yeah, that's what I was thinking
15:01 teejay kelp seems to do it
15:01 teejay but I don't know how that handles changes to code
15:01 teejay I mean linking to a sub, variable, package, etc is easy enough
15:02 teejay but to a snippet of code would be hard
15:03 Hyppolit #889: Padre saves non-ASCII characters as \x{XXXX} (new defect) [ http://padre.perlide.org/trac/ticket/889 ]
15:07 Sewi We could add "# anchor_12345" comments to the code :-) But changing the code is bad :-(
15:11 teejay zackly
15:11 teejay worth looking at how kelp did it
15:11 teejay I would guess line no and a pattern to match neaer
15:11 teejay like a diff format but 'puter readable
15:12 teejay i.e. near line xxx following line looking like 'for ( x in y ) {'
15:12 Sewi What if the line is changed?
15:12 teejay then it refers back to next largest chunk of code
15:13 teejay i.e. was it within a function or package
15:13 teejay graceful degradation
15:13 teejay prob worth keeping a copy of what it referred to alongside the note
15:13 teejay could be fairly simple
15:14 teejay we need some kind of "misclaneous" viewer to be able to keep snippets, notes, and chunks of subs, docs, etc in
15:15 teejay kind of like code bubbles but in a single window, pos organised as a tree
15:15 teejay that could be quite simple couldn't it ?
15:15 teejay not as pretty, but probably much nicer
15:15 teejay associate it with a document (or set of documents)
15:15 teejay yeah, that would rock my world
15:16 teejay call it an 'in tray" or something
15:16 teejay must be a desktop metaphor for it
15:16 teejay notes?
15:16 teejay notepad?
15:16 teejay jotter!
15:17 teejay rollerdex
15:17 teejay filofax
15:17 teejay pim?
15:17 teejay "2nd brain"
15:18 teejay ah ha.. of course - stash
15:18 Sewi bubble?
15:18 teejay it wouldn't be very bubbly
15:18 teejay stash works for me
15:19 teejay few people will have heard of bubble as a concept, most (english speakers) will know what a stash is
15:20 teejay break it into 3 trees - specific to current document, specific to set of files, specific to project
15:20 teejay then could drag from one to other
15:21 teejay note to self : http://kelp.sourceforge.net/
15:22 azawawi joined #padre
15:23 Hyppolit #889: Padre saves non-ASCII characters as \x{XXXX} (new defect) [ http://padre.perlide.org/trac/ticket/889#comment:1 ]
15:23 Sewi Hi azawawi
15:23 azawawi Sewi: please take a look at #889
15:23 Hyppolit #889: Padre saves non-ASCII characters as \x{XXXX} (new defect) [ http://padre.perlide.org/trac/ticket/889#comment:1 ]
15:23 Sewi I saw it when creating Padre::Staff
15:24 azawawi Sewi: i traced it to encoding_from_string optimization...
15:24 azawawi Sewi: I guess that needs to be tested :)
15:24 azawawi Sewi: even after fixing that. Opening a UTF-8 file contains lots of blocks :)
15:25 azawawi Sewi: return 'ascii' unless $content =~ /[^[:print:]\015\012]/;
15:25 azawawi Sewi: unless should be if i think...
15:27 Sewi maybe
15:30 azawawi ouch
15:30 azawawi no encoding when opening files in Padre::File::Local :)
15:31 Sewi As I keep saying: If anything is broken, blame it to adam or me :-)
15:33 azawawi lol
15:34 Sewi But I think I just copied it out of another place...hope so :-)
15:35 azawawi "Because Encode::Guess is slow and expensive, do an initial fast..." optimization
15:35 azawawi :)
15:35 azawawi evil optimization
15:35 Sewi skip it? :-)
15:35 azawawi returns "ascii"...
15:35 pece joined #padre
15:36 azawawi even when the file is utf-8
15:36 azawawi Alias__: el-pingo
15:36 Sewi open my $logfile,'>>'.$log_file_name;
15:37 Sewi print $logfile "Looking for file\n";
15:37 azawawi so two places Padre::Locale::encoding_from_string(...)
15:37 Sewi strace shows that the file is being opened but I don't see any write :-(
15:37 azawawi and Padre::File::Local::read
15:38 azawawi close it? :)
15:38 azawawi or flush it
15:40 Sewi it is closed some lines later
15:41 Sewi seems it got it. There is a truncate function some lines later which should limit the file to 1k lines - but it uses the first 1k instead of the last :-)
15:41 azawawi cool
15:47 Hyppolit svn: r11123 | azawawi++ | http://padre.perlide.org/trac/changeset/11123
15:47 Hyppolit Turning off Padre::Locale::encoding_from_string optimization to fix ticket:889. Alias please check it out.
15:47 Hyppolit trunk/Padre/lib/Padre/
15:49 Hyppolit #889: Padre saves non-ASCII characters as \x{XXXX} (closed defect) [ http://padre.perlide.org/trac/ticket/889#comment:2 ]
15:49 azawawi Alias__: please check r11123 :)
15:49 Hyppolit Changeset #11123 http://padre.perlide.org/trac/changeset/11123
15:49 * azawawi home &
16:14 Alias__ azawawi: I assume to remove that hack, you made the encoding detection NOT horribly slow?
16:15 Alias__ And by slow I mean that it consumes more than one third of the entire CPU time of Padre
16:16 Alias__ And if it returns "ascii" when it's UTF then you've got a DIFFERENT problem
16:16 Alias__ Being that the regex is bad, rather than useless
16:16 * Alias__ bed
16:21 zenog Is there a particular reason why we have an arbitrary file size limit?
16:22 daxim wtf wtf wtf
16:23 daxim what's the point of Padre::Locale::encoding_from_string?
16:39 daxim garu, git blames you.
16:40 zenog I ask because actually, stats computation is not so slow for all files that fall under that limit.
16:41 mohsen joined #padre
16:41 Sewi zenog: "too big" files make Padre slow and memory eating
16:42 Sewi daxim: Fix of a ticket afair (#889?)
16:42 Hyppolit #889: Padre saves non-ASCII characters as \x{XXXX} (closed defect) [ http://padre.perlide.org/trac/ticket/889#comment:2 ]
16:42 daxim no, the whole damn thing
16:46 zenog Sewi: Ah, I see this can be changed by setting editor_file_size_limit ...
16:48 azawawi joined #padre
16:48 azawawi hi
16:48 azawawi daxim: ping
16:49 daxim pong?
16:49 garu daxim, what did I do?
16:49 azawawi daxim: did my fix cause  Padre to be slower?
16:49 daxim write Padre::Locale::encoding_from_string, apparently
16:49 garu not my doing
16:49 * garu hides
16:50 daxim ok, who did it?  actually I just want to know why these gyrations were deemed necessary
16:51 Sewi ask trac
16:51 garu iirc, Padre::Locale was something of a joint effort between Alias and... jq?
16:51 garu yup, svn and trac should know better
16:51 azawawi http://padre.perlide.org/trac/browser/trunk/Padre​/lib/Padre/Locale.pm?annotate=blame&rev=11123
16:51 garu unless they keep saying it was be :)
16:52 jagd joined #padre
16:52 daxim history kill due to perltidy
16:52 azawawi :)
16:52 daxim no, I'm not happy.
16:52 azawawi daxim: about?
16:53 daxim about useless commits like these
16:55 Sewi Seems to be really old: http://padre.perlide.org/trac/browser/trun​k/Padre/lib/Padre/Locale.pm?rev=2184#L147
16:57 garu daxim, http://padre.perlide.org/trac/changeset?old_​path=%2Ftrunk%2FPadre%2Flib%2FPadre%2FLocale​.pm&old=1745&new_path=%2Ftrunk%2FPad​re%2Flib%2FPadre%2FLocale.pm&new=11123
17:00 zenog one question not related to the current discussion: Does it make sense to provide some statistics for the selected text under the menu entry "File->Document statistics"?
17:01 * azawawi fixing...
17:02 daxim r1719 indicates that ::Locale came from someplace else
17:02 Hyppolit Changeset #1719 http://padre.perlide.org/trac/changeset/1719
17:03 Sewi azawawi: What did I say about breaking... :-)
17:05 azawawi Sewi: hehe :)
17:05 azawawi Sewi: break what?
17:05 azawawi Sewi: it was already broken :)
17:06 azawawi Sewi: [:print:] seems to match also unicode characters...
17:07 Sewi Maybe /^[\x00-\x7f]*$/ ?
17:07 Sewi (as ascii)
17:07 azawawi or [:ascii:]
17:08 Sewi :-)
17:20 Hyppolit svn: r11124 | azawawi++ | http://padre.perlide.org/trac/changeset/11124
17:20 Hyppolit A better fix to r11123 and ticket:889.
17:20 Hyppolit trunk/Padre/lib/Padre/
17:22 azawawi Sewi: :)
17:24 azawawi Alias__: Running make test 'No tests defined for App::cpanminus extension.' ... ?
17:25 azawawi does App::cpanminus switch off its tests for win32?
17:25 azawawi or on all platforms?
17:27 azawawi Alias__: unclean shutdown on win32 for Padre... vista/xp the same
17:28 azawawi Sewi: ping
17:29 * azawawi bed... cya &
17:40 sjn "Use of uninitialized value $revision in concatenation (.) or string at /usr/local/share/perl/5.10.​0/Padre/Task/HTTPClient.pm line 55." (warning shows when sending feedback to "where did you learn about Padre"
17:40 sjn <- just checked out Padre from SVN
17:43 Hyppolit svn: r11125 | zenogantner++ | http://padre.perlide.org/trac/changeset/11125
17:43 Hyppolit speed up counting of non-whitespace characters by roughly a factor of 5 for typical documents
17:43 Hyppolit removed stats for selected text (was not reflected by the GUI anyway)
17:43 Hyppolit trunk/Padre/lib/Padre/
18:11 kevin joined #padre
18:32 mohsen joined #padre
18:33 Sewi pong
18:42 danlucraft joined #padre
19:09 LeK joined #padre
19:14 LeK hi
19:14 Sewi hi
19:16 CromeDome joined #padre
20:01 kthakore left #padre
20:10 soapy_j joined #padre
20:19 dorkfish joined #padre
20:19 Sno|Laptop joined #padre
22:19 SvenDowideit_ joined #padre
22:43 karl joined #padre
22:46 patspam joined #padre
23:08 patspam joined #padre
23:11 patspam joined #padre
23:16 Alias__ joined #padre
23:19 dorkfish joined #padre
23:40 dorkfish joined #padre
23:58 Alias Padre::Locale was me + various people that actually understand i18n :)

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