Camelia, the Perl 6 bug

IRC log for #padre, 2012-12-13

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

All times shown according to UTC.

Time Nick Message
00:19 bowtie SvenDowideit, see r19065
00:19 botbot Changeset #19065 http://padre.perlide.org/trac/changeset/19065
00:19 shadowpaste "bowtie" at 217.168.150.38 pasted "Use of uninitialized value $fi" (22 lines) at http://paste.scsys.co.uk/218529
00:20 bowtie SvenDowideit, plus a trace for you :)
00:20 bowtie night all
02:36 Foxcool joined #padre
05:22 sewi joined #padre
06:18 stkowski joined #padre
07:11 gry joined #padre
07:11 gry help
07:13 gry I'm trying to insert a breakpoint and get a "you must use step in or step out or run until breakpoint first" dialog, but when I click the menu item for the last option, padre just closes
07:14 shadowpaste "gry" at 217.168.150.38 pasted "the simple perl script; I'm trying to insert breakpoint at line 7 to take a look at all variable values" (7 lines) at http://paste.scsys.co.uk/218623
07:29 gry installed 0.96 instead of 0.90 from the repos, looks like it does not close like that
07:30 gry left #padre
08:56 dolmen left #padre
08:57 dod joined #padre
09:26 Foxcool joined #padre
09:27 sugar joined #padre
09:27 dolmen joined #padre
09:50 Foxcool joined #padre
10:22 bowtie joined #padre
12:29 SvenDowideit bowtie interesting
12:30 SvenDowideit i presume that i misread the docco - and that catpath insists on 3 params not 2
12:31 SvenDowideit yup
12:34 SvenDowideit weirder still is that it didn't crash for me
12:34 * SvenDowideit kicks it harder
12:36 bowtie SvenDowideit, hi
12:36 SvenDowideit heya :)
12:36 bowtie I noticed it late last night
12:37 bowtie added the bits of code so as to see why, as it was not obvious to me
12:38 SvenDowideit thats how i felt - but then i noticed that File::Spec::Unix::catpath uses 3 params - and compares them to ''
12:38 SvenDowideit however, even changing that, i'm not sure it works
12:38 SvenDowideit how did you get the stack trace?
12:39 bowtie go update your code from svn, I left it in there, it's trunk its ok why we sort out
12:39 bowtie we will remove when ok
12:40 SvenDowideit svn up, and then :) Can't locate Carp/Always/Color.pm
12:40 SvenDowideit installerin
12:41 bowtie yes I dropped it in to show the error and trace
12:41 bowtie we will remove shortly, or you can
12:41 SvenDowideit darn, its not in debian
12:41 SvenDowideit oh well, cpanin
12:43 bowtie note, sometimes you need to just use Carp::Always as Carp::Always::Color gets confused, but in this case its ok,so we get the color to help see in output
12:43 SvenDowideit um
12:43 SvenDowideit even so, i still don't see it
12:43 SvenDowideit how do i trigger it?
12:44 SvenDowideit or is this a case of old cpan modules vs new?
12:45 bowtie it might be, I am running 5.16.2 and last update was less than two weeks ago
12:45 SvenDowideit tbh, i'm not at all sure what should happen with run
12:46 SvenDowideit i have a simple 'print ...' pl script
12:46 SvenDowideit and hit 'run script'
12:46 SvenDowideit and i don't know where the output shoudl be going
12:46 bowtie you should see output in either output panel or terminal, I just get an error
12:47 SvenDowideit i get neither
12:47 SvenDowideit but i do get: "/usr/bin/perl"  'test.pl'HASH(0x73d9150)
12:47 SvenDowideit i _think_ if you add a third param '' (empty string) to each of the File::Spec->catpath() calls
12:47 bowtie ok, remove test code, and any other silly stuff do a commit and i will go get and retest
12:48 SvenDowideit (the ones that have only 2 params
12:48 SvenDowideit i would hope that fixes it for you
12:48 SvenDowideit okely
12:49 SvenDowideit i'm one of those terrible people that like using vendor perl
12:50 SvenDowideit but clearly i need to re-visit that some time
12:51 bowtie I got burnt with centos, so now use perlbrew
12:51 bowtie I love debian though :)
12:52 * SvenDowideit skipped centos
12:52 SvenDowideit went from sparc based redhat 4.2 to debian an extremely long time ago
12:56 bowtie no still an issue, I can run .lp via debug, but not via run
12:58 SvenDowideit same stacktrace?
13:00 bowtie no stack trace just an error in padre out-panel -> error(Hashxxx) faild with error 2!
13:04 SvenDowideit truely curious!
13:05 SvenDowideit aha, very interesting
13:07 bowtie http://padre.perlide.org/trac/changeset/19597/
13:08 bowtie it's originating from get_command
13:08 bowtie check private channel
13:09 SvenDowideit when I print out the $cmd param in Main::run_command
13:09 SvenDowideit its a hash ref
13:15 SvenDowideit oh duh :(
13:15 SvenDowideit i changed the return from get_command
13:18 bowtie yes, it was -> ""/home/kevin/perl5/perlbrew​/perls/perl-5.16.2/bin/perl"  'script.pl'"
13:19 SvenDowideit ok, commiting what should fix that for now
13:20 SvenDowideit i had meant to fix the get_command return, and forgot - using wantarray to patch it for now
13:20 bowtie ok will test
13:21 SvenDowideit which leads to the q - how static are the function call signatures
13:21 SvenDowideit given that one is essentially a document API (assuming other people write document types
13:23 bowtie not sure I under stand you
13:24 bowtie now I added a marker for debug-launch-options
13:25 SvenDowideit y, saw that :)
13:25 bowtie but how do I test if they exist , as I dont want to have to test all 4/5 types in db::history
13:25 SvenDowideit what i mean, is P::Document::*
13:25 SvenDowideit other people can add support for other document types, and would need a somewhat stable API to code against
13:26 SvenDowideit db::history isn't really amarker
13:27 bowtie you would need to ask adam or Ahmad regarding document types, I just dabble with debugger and a few plugins :)
13:28 SvenDowideit as you already used that in debug before i changed it
13:28 SvenDowideit (though i'm not sure it was fully wired up
13:28 SvenDowideit i think we'll want to detect that the arg values are non-default or something like that
13:28 SvenDowideit i'll poke that when i add the reset options button
13:29 SvenDowideit grin
13:29 bowtie yes, but you have added five types that all start with run_
13:30 SvenDowideit i did?
13:30 SvenDowideit i thought i added 2 or was it 3
13:30 GlitchMr joined #padre
13:30 SvenDowideit not that it matters much, you're right its not really complete as is
13:32 bowtie look at the plugins such as spellcheck or moose, and see how they are storing various bits of stuff in db::Plugin under config
13:33 SvenDowideit at this point, I was thinking to replace the 'To see all Debug Launch Param....' text with the actual parameters
13:33 SvenDowideit but that may become impossible, due to length
13:33 bowtie am I or are you going to remove the unwanted code
13:33 bowtie lol
13:33 bowtie from someone who has screen space issues
13:33 bowtie how much space will it take
13:34 SvenDowideit so - did the wantarray stop it crashing and make run work again?
13:34 * SvenDowideit has to goto bed, its too late to deal with waking up in the morning :)
13:34 bowtie YES
13:34 bowtie SvenDowideit++
13:34 bowtie sorry I thought I had said
13:34 SvenDowideit no worries there :)
13:35 bowtie hence the reminder, that there are launch options set, plus we might want to use the space for other info as well in future
13:36 SvenDowideit excellent - i'm not sure which unwanted code, though i fyou mean the 'say' bits, i can remove it tomorrow :)
13:36 SvenDowideit to quote a friend 'me go fall down now' :)
13:37 bowtie night
13:38 bowtie I might do it later, just check http://padre.perlide.org/trac/log/ for changes
13:42 SvenDowideit_ joined #padre
13:44 botbot Welcome SvenDowideit
13:47 SvenDowideit joined #padre
14:08 dod joined #padre
14:48 GlitchMr joined #padre
14:53 dod joined #padre
15:05 kaare joined #padre
15:41 SvenDowideit joined #padre
16:11 dod joined #padre
16:15 dod1 joined #padre
16:32 lostinfog joined #padre
16:56 SvenDowideit_ joined #padre
16:58 botbot Welcome SvenDowideit
17:32 dod joined #padre
18:19 sugar joined #padre
18:34 stkowski joined #padre
18:58 Di-ima joined #padre
19:08 user_7157 joined #padre
19:08 botbot Welcome user_7157
19:09 user_7157 help
20:36 bowtie user_7157, yes you do with patience :)
22:37 sugar joined #padre
23:59 sivoais joined #padre

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