Camelia, the Perl 6 bug

IRC log for #padre, 2011-05-05

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

All times shown according to UTC.

Time Nick Message
00:46 jnap joined #padre
00:59 jnap left #padre
01:06 jnap joined #padre
01:18 Alias joined #padre
01:27 Hyppolit svn: r14299 | adamk++ | http://padre.perlide.org/trac/changeset/14299
01:27 Hyppolit Explicit form elements for two new options added to the dialog
01:27 Hyppolit trunk/Padre-Plugin-FormBuilder/fbp/ trunk/Padre-Plugin-FormBuilder​/lib/Padre/Plugin/FormBuilder/
01:29 Hyppolit # 1218 :  Ctrl-F now killing X-Windows (new defect) [ http://padre.perlide.org/trac/ticket/1218 ]
01:30 Hyppolit svn: r14300 | adamk++ | http://padre.perlide.org/trac/changeset/14300
01:30 Hyppolit The version form element populates the generated code correctly
01:30 Hyppolit trunk/Padre-Plugin-FormBuilder​/lib/Padre/Plugin/FormBuilder/
01:30 Hyppolit # 1216 :  Ctrl-F crashes Padre (new defect) by szabgab  [ http://padre.perlide.org/t​rac/ticket/1216#comment:1 ]
01:34 szabgab Alias: hi, apparently the fix for Ctrl-F made things even worse on Linux
01:35 szabgab I don't understand what bowtie was talking about but it seems quite broken on my Linux machine
01:37 Alias Do other dialogs do the same thing?
01:37 Alias I made some recent changes to the code generation that might impact it
01:37 szabgab I'll try them now but that might require another reboot :)
01:37 Alias I'm wondering if it might be the $self->SetSizerHints( Wx::wxDefaultSize, Wx::wxDefaultSize ); line
01:38 szabgab the open session works well
01:38 Alias Find in Files
01:38 Alias Something that uses a FBP dialog
01:38 szabgab preferences opened well
01:38 Alias Find in Files is almost identical in every way to Find
01:39 Alias If IT works, then I'm not sure wtf is going on
01:41 szabgab so in short, find-in-files also have the same issue
01:41 Alias I thought the silence might mean that
01:41 szabgab I just had to reboot
01:41 Alias :)
01:42 szabgab yeah, funny
01:42 szabgab but only because you are so far away :)
01:42 Alias The obvious culprit is line 32 in lib/Padre/Wx/FBP/Find.pm
01:42 Alias I only added it because that's what the generated C code from wxFormBuilder does
01:42 Alias Try removing it
01:43 szabgab I commented it out, it worked very well in vim :)
01:43 Alias There's nothing else in that generated code that is particularly different
01:43 szabgab now ctrl-f
01:43 szabgab and I am still here :)
01:43 Alias So that looks like the culprit
01:44 Alias Means we can't do minimum/maximum size hinting for dialog
01:44 Alias Not a massive loss there though
01:45 Alias Weird, so why then did Preferences work
01:45 Alias Possibly because it does a SetSizeHints for the sizer
01:46 Alias Try uncommenting the bad line, and ADD $hsizer->SetSizeHints($self); at line 163
01:46 Alias That's what Preferences does
01:47 szabgab oh, I should have not tried find-in-files before fixing the code there too :(
01:47 szabgab but it is 4 am here
01:48 Alias Rather :)
01:50 szabgab let me try your second suggestion as well
01:50 Alias I hope it works
01:50 szabgab so if I leave line 32 as it was
01:51 Alias Because it does sort of make sense to not apply sizer hints when you have an explicit size
01:51 Alias Yup, original broken line 32
01:51 szabgab and add line 163 , the window opens correctly
01:51 Alias OK, so I can fix this
01:51 Alias Basically comes down to "Only set sizer hints for the dialog when they will be used by the sizer system"
01:51 Alias oh wait
01:52 Alias no
01:52 Alias "Only set sizer hints for the dialog when they will be used by the sizer system for the dialog, because the dialog is resizable"
01:52 szabgab there seem to be to many repetitions of the word size :)
01:52 Alias :)
01:52 Alias Anyways
01:52 szabgab in various forms
01:52 Alias I can fix this, not too hard
01:53 Alias In the mean time, remove all the line 32 lines
01:53 Alias And the problems go away
01:53 Alias I need to $work right now
01:53 Alias If you can make that one commit, I'll fix it later tonight during my yawnathon release
01:53 Alias Working from 8pm to 2am
01:53 szabgab I'll see it in FiF as well
01:54 Alias Every single dialog has the line 32 line now
01:54 Alias Needs to be removed in all of ::FBP::*
01:54 szabgab on the same line?
01:54 Alias The same or very close to it
01:54 Alias Maybe one or two lines away
01:55 szabgab so the only change to the original file should be the removal of the "32" lines ?
01:55 Alias Yup
01:55 Alias May cause some slight other sizing issues, but they won't be remotely as nasty
01:57 szabgab yeah, the find window looked a bit more "spacy"
01:59 Hyppolit svn: r14301 | szabgab++ | http://padre.perlide.org/trac/changeset/14301
01:59 Hyppolit temporary fix for sizing issue reported in #1218 based on recommendation of Alias
01:59 Hyppolit trunk/Padre/lib/Padre/Wx/FBP/
01:59 Hyppolit # 1218 :  Ctrl-F now killing X-Windows (new defect) by szabgab  [ http://padre.perlide.org/t​rac/ticket/1218#comment:1 ]
02:00 szabgab Alias: thanks, I'll take a look at it on the SUSE machine as well later today
02:01 szabgab now let me try to get back to what I was doing before this hit me
02:03 szabgab apparently I was searching for something, but for what?
02:05 Alias Alas, cause of the crash it won't be in your Find history :)
02:11 szabgab hmm, it has an advantage to work on several linux boxes as that makes me fix broken tests that are file-order dependent
02:18 Alias That's why shuffle is also good
02:18 Alias But yeah
02:39 Hyppolit svn: r14302 | szabgab++ | http://padre.perlide.org/trac/changeset/14302
02:39 Hyppolit when looking at filenames in the window menu, show the full path of each file in the status bar
02:39 Hyppolit trunk/Padre/lib/Padre/Wx/ trunk/Padre/lib/Padre/Wx/Menu/
02:39 jnap left #padre
02:40 asarch joined #padre
02:42 pece2 left #padre
03:40 asarch left #padre
03:46 verrukta left #padre
03:47 verrukta joined #padre
03:51 asarch joined #padre
04:06 itcharlie joined #padre
04:10 |Sno| joined #padre
04:14 Sno| left #padre
04:24 asarch left #padre
04:51 kaare joined #padre
05:02 Hyppolit svn: r14303 | adamk++ | http://padre.perlide.org/trac/changeset/14303
05:02 Hyppolit Now generated with FBP::Perl 0.36 which ensures that $self->SetSizeHints is only called when safe.
05:02 Hyppolit Also gets proper $VERSION for dialogs, now that Padre::Plugin::FormBuilder supports setting them explicitly
05:02 Hyppolit trunk/Padre/lib/Padre/Wx/FBP/
05:03 Hyppolit svn: r14304 | adamk++ | http://padre.perlide.org/trac/changeset/14304
05:03 Hyppolit Syncing WhereFrom.pm, as we seem to have lost it's FBP file somewhere along the way
05:03 Hyppolit trunk/Padre/lib/Padre/Wx/FBP/
05:11 itcharlie left #padre
05:21 toi joined #padre
05:28 kaare left #padre
05:37 Sewi joined #padre
06:04 marcela joined #padre
06:13 Hyppolit svn: r14305 | adamk++ | http://padre.perlide.org/trac/changeset/14305
06:13 Hyppolit Added an encapsulation strictness option to the code generator.
06:13 Hyppolit
06:13 Hyppolit When enabled, it will generate the dialog without storing any widget objects directly in the dialog object. This means all code in the concrete subclass MUST use proper accessors to access or manipulate the dialog.
06:13 Hyppolit trunk/Padre-Plugin-FormBuilder​/lib/Padre/Plugin/FormBuilder/
06:15 Hyppolit svn: r14306 | adamk++ | http://padre.perlide.org/trac/changeset/14306
06:15 Hyppolit Switch the Find dialog to the new Padre::Plugin::FormBuilder harsh encapsulation option, to see if it blows up for anyone anywhere
06:15 Hyppolit trunk/Padre/lib/Padre/Wx/FBP/
06:21 Alias OK
06:21 Alias Please test the Find dialog again
06:21 Alias It may or may not explode violently in a new and entirely different way
06:30 toi left #padre
07:11 gabiruh_ joined #padre
07:12 katofiad left #padre
07:12 gabiruh left #padre
07:12 katofiad joined #padre
07:16 mj41 joined #padre
07:22 katofiad left #padre
07:22 katofiad joined #padre
07:37 danlucraft joined #padre
07:40 danlucraft left #padre
08:29 Di-ima left #padre
08:40 Di-ima joined #padre
08:54 waxhead joined #padre
08:55 waxhead evening
08:55 danlucraft joined #padre
08:55 waxhead so are we ready for the next release?
08:55 waxhead hey danlucraft, how goes the ruby ide?
08:56 danlucraft waxhead: hey, pretty good. still hard to get traction
08:56 waxhead danlucraft, yep.. you can see the padre dev slowed for a bit there too...
08:56 El_Che danlucraft: same pradre concept? (written in ruby?)
08:57 waxhead since Alias was otherwise busy and szabgab too... not much has happened since the last release..
08:58 danlucraft waxhead: I thought that might have happened
08:59 danlucraft El_Che: exact
08:59 danlucraft El_Che: redcareditor.com
08:59 danlucraft waxhead: LOTS of turnover of developers, as well. makes me wonder what I'm doing wrong
08:59 waxhead danlucraft, apart from the work Adam is doing, I haven't really seen much else being done...
08:59 waxhead danlucraft, likely not you... it's just that people come and go and find other things to do...
09:00 Sewi waxhead: The Changes has some things...
09:00 waxhead for me I'm totally distracted with black ops.. :)
09:00 waxhead and life..
09:00 waxhead but doing the release isn't too much impact on me timewise
09:01 waxhead I did do a re-write of the SVN plugin to not use Class:SVN
09:01 waxhead that's in a branch and I haven't done any tests etc for it...
09:01 waxhead and the Wx stuff drives me nuts when I want to get things done...
09:03 danlucraft waxhead: yep. I feel guilty for not working on it more nowadays as well :(
09:03 waxhead your project?
09:04 danlucraft yeah, Redcar
09:05 waxhead it's hard to maintain the rage.. :)
09:05 * waxhead is off to dinner
09:05 waxhead not sure I'm getting the hang of unity quickly...
09:09 Sewi svn?
09:09 Hyppolit svn is http://padre.perlide.org/tr​ac/wiki/DownloadRepository and also http://svn.perlide.org/padre/trunk/ and also http://padre.perlide.org/trac/browser
09:12 szabgab waxhead: before the release we will really need to make sure things are not broken
09:12 szabgab as Alias made significant changes and some really bad breakage was introduced
09:13 Sewi I currently don't see broken things in Padre which haven't been broken in the last release. But there are some fixed things compared to the last one.
09:13 szabgab but I was on vacation for 3 weeks so I did not have time to touch anything and now I am full of $work and an upcoming training class
09:14 szabgab Sewi: have you missed the Ctrl-F crashes?
09:14 szabgab Alias: fixed them but I wonder where else might lurk similar things
09:14 toi joined #padre
09:14 Sewi "I didn't see" = things I experienced myself.
09:15 szabgab it was fun, I had to reboot Linux several times due to a bug in Padre
09:15 Sewi This is really bad.
09:15 szabgab at 4 am
09:16 szabgab anyway now it is fixed
09:18 szabgab I have not checked recently, do the tests pass?
09:19 Hyppolit svn: r14307 | szabgab++ | http://padre.perlide.org/trac/changeset/14307
09:19 Hyppolit tidy
09:19 Hyppolit trunk/Padre/lib/Padre/ trunk/Padre/lib/Padre/Config/ trunk/Padre/lib/Padre/Document/Perl/ trunk/Padre/lib/Padre/Wx/Dialog/ trunk/Padre/lib/Padre/Wx/Menu/ trunk/Padre/script/ trunk/Padre/t/ trunk/Padre/xt/
10:05 thecrux left #padre
10:17 waxhead that's fine, I have things to do this weekend so no plans for a release any time soon...
10:17 waxhead but I think we should start making plans to get a release done
10:18 Alias I'm largely done at this point
10:18 Alias Most of the upheavals are over now
10:18 Alias That I know of anyway
10:19 Alias I'm mostly just playing around with the FormBuilder plugin to make it more complete
10:19 Alias I'd kind of like to make it core some time in another 5 releases or so
10:19 waxhead cool.. so a weekend of svn updates and testing of trunk should shake things out a bit then.. ? :)
10:19 Alias The dependencies are only a few on top of the core
10:20 waxhead I'm away this weekend... kids and stuff... but can get a release done next week if things are ready to go
10:20 waxhead Alias, if you can find time, maybe cover off on how it works?
10:20 waxhead get it put on to the wiki/web site?
10:22 Alias It's pretty damned simple, I was going to just do a screencast
10:22 Alias 1. Draw the application
10:22 Alias 2. Run the plugin
10:23 Alias 3. Select the save file and hit Generate
10:23 Alias 4. Save
10:23 waxhead ok.. screen cast would be fine...
10:27 Alias Our screenshot page kind of died
10:27 Alias Then again, Padre LOOKS more or less the same as it has for over a year
10:27 Alias Much of the change is things working better/faster/more-async
10:28 Alias Or at least differently :)
10:28 Alias I worry quite a bit if the new bugs introduced (mostly by me) doing 2.0 versions of things are worth it
10:34 waxhead left #padre
10:49 waxhead joined #padre
11:32 Hyppolit svn: r14308 | szabgab++ | http://padre.perlide.org/trac/changeset/14308
11:32 Hyppolit stop crash when there is no hit in the search
11:32 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
12:31 jnap joined #padre
12:32 jnap left #padre
12:32 jnap joined #padre
12:34 jnap left #padre
13:05 mib_hyavkn joined #padre
13:06 mib_hyavkn Hello,
13:06 mib_hyavkn is there anyone here?
13:07 Sewi sure
13:28 gabiruh_ is now known as gabiruh
13:45 mib_hyavkn Hello, I'm new to Perl
13:45 mib_hyavkn and I have a (newbie) problem
13:45 Sewi just ask
13:45 mib_hyavkn I declared a sub
13:46 mib_hyavkn and I copy with         my @args = ç_
13:46 mib_hyavkn sorry
13:46 mib_hyavkn my @args = @_
13:46 mib_hyavkn the arguments
13:46 mib_hyavkn but after I do a
13:47 mib_hyavkn print (shift @args) I receive a HASH print
13:47 mib_hyavkn so it's like I'm treating with an hash
13:47 Sewi @ARGS is a reserved variable name. @args technicalls works, but it's not good to use it as the developer might easily mix both
13:47 mib_hyavkn ok
13:47 Sewi Please show me your sub call
13:47 mib_hyavkn so let's try changing scalar
13:47 mib_hyavkn just wait a minute
13:49 mib_hyavkn sub test{ my @args2 = @_; print scalar @args2 . "\n"; print shift @args2; }  test {3, 2, 4}
13:49 mib_hyavkn it prints
13:49 asarch joined #padre
13:49 mib_hyavkn 1 HASH(0x3e9044)
13:49 Sewi Sorry, no, the place where you call the sub
13:49 mib_hyavkn test {3, 2, 4}
13:49 mib_hyavkn I would expect print scalar @args2 to print 3
13:49 mib_hyavkn cause in scalar context I should receive arguments array length
13:50 mib_hyavkn but instead it prints "1"
13:50 Sewi No if you pass a hash.
13:50 mib_hyavkn the braces!
13:50 mib_hyavkn sorry
13:50 mib_hyavkn :)
13:50 mib_hyavkn I'm still new to this braces context stuff
13:51 Sewi You could easily get there by adding some debugging prints.
13:51 mib_hyavkn test (3, 2, 4)
13:51 Sewi test {2,3,4} doesn't do what it should do, so copy the line and replace "test" by "print".
13:51 mib_hyavkn correctly print 3 and 3
13:51 mib_hyavkn no no you're correct I was passing an hash to function!
13:52 Sewi yes :)
13:52 mib_hyavkn can I ask you something else that still confuses me?
13:53 Sewi go on
13:53 mib_hyavkn ok let's say I execute
13:53 mib_hyavkn test {2, 3}, 4
13:54 mib_hyavkn if I want the hash, should I simply type     %{shift}     ?
13:54 mib_hyavkn I mean, the first one it's a reference, right?
13:56 marcela left #padre
13:56 mib_hyavkn so I should dereference it, right?
13:56 El_Che mib_hyavkn: I would use something like this to make the code readable
13:57 El_Che my $hash_ref = shift;
13:57 Sewi You should think if you need to dereference it, first.
13:57 El_Che $hash_ref->{key} ...
13:57 Sewi What about
13:58 Sewi test { filename => "test.iso", content => $content_of_an_iso_file};
13:58 mib_hyavkn named parameters?
13:58 mib_hyavkn it's good
13:58 Sewi Writing %data = %{shift} actually copies 700 MB of memory.
13:58 mib_hyavkn but my question is more a technical one
13:58 mib_hyavkn I mean...
13:58 Sewi Using $hash_ref = shift; and $hash_ref->{filename} copies few bytes.
13:59 mib_hyavkn if I pass to 'test' function an anonymous, built in place hash
13:59 mib_hyavkn I have to use one of the methods you kindly explained
13:59 mib_hyavkn in short, I have to dereference in some way the hash
13:59 mib_hyavkn 'cause I'm passing a reference
13:59 Sewi No, you don't
14:00 mib_hyavkn but if I pass a scalar, like $a
14:00 mib_hyavkn ?
14:00 Sewi First: test { 2,3} is technically correct but you shouldn't do this.
14:00 El_Che $a->{key}
14:00 Sewi Perl reads this as test { 2 => 3 } and if you write it this way, it's much more readable.
14:01 Sewi And if you use the reference instead of dereferencing things, you have more speed, less memory usage and it's usually more readable, too.
14:01 mib_hyavkn @Sewi: indeed I already made that modification 'cause it's really more readable
14:01 mib_hyavkn mmm
14:02 mib_hyavkn ok, I think I've understood now
14:02 Sewi If you write $a->{key} (given you did $a = shift before), you get the same result.
14:02 mib_hyavkn It's like pointers
14:02 Sewi yes
14:02 Sewi And you could do things like
14:02 Sewi test { tab => { a => 2 } }
14:02 mib_hyavkn so
14:03 Sewi $a = shift; print $a->{tab}->{a};
14:03 mib_hyavkn ok
14:03 mib_hyavkn 'cause you have here a single cell array
14:03 mib_hyavkn with a reference to an hash
14:03 mib_hyavkn which has a key 'tab' which points to another hash reference
14:03 mib_hyavkn Am I right?
14:04 Sewi Yes.
14:04 Sewi And you could mix hash and array refs this was.
14:04 mib_hyavkn Yes, 'cause for what I've read, you cannot have nested structures without references due to function parameters flattening.
14:05 mib_hyavkn so I prefer to think that everything is a reference when you use some data structure (hash, list, or array) as a value
14:05 Sewi You could do many strange things :-) But they're not really useable = very hard to maintain
14:06 mib_hyavkn Oh well, I do this as an hobby so at the moment I can create as much mess as I want!
14:06 mib_hyavkn :)
14:06 mib_hyavkn but indeed
14:07 mib_hyavkn parameters flattening and context can be an hassle if not properly understood
14:07 mib_hyavkn I must really thank you
14:07 mib_hyavkn On the book I am reading it's just so convoluted!
14:08 Sewi You're welcome.
14:08 Sewi Did you try Padre?
14:08 mib_hyavkn just thinking to a reference as an invariable pointer to memory just improve easiness of understanding, at least I think so (and I hate pointers!)
14:08 mib_hyavkn absolutely
14:08 mib_hyavkn I've also tried eclipse
14:08 Sewi references are really nothing else than a pointer.
14:09 mib_hyavkn but it doesn't even have syntax colors
14:09 mib_hyavkn @Sewy: I think it's good. Dynamic language with pointers! Free power with no complexity!
14:10 mib_hyavkn Ah! A word of advice
14:10 mib_hyavkn in case you install Oracle DB
14:10 mib_hyavkn just beware that (at least on my laptop)
14:10 mib_hyavkn it set a PERL5LIB env variable
14:10 toi left #padre
14:10 Sewi You should add "use strict; use warnings;" to the beginning of you file - it would have warned you about the problem.
14:10 mib_hyavkn that messed with my installation of Strawberry
14:11 mib_hyavkn just deleted PERL5LIB env variable
14:11 Sewi test { 2,3,4 } is syntactically correct but warnings would tell you that there are 3 arguments where a even number of arguments is expected (one value for each key).
14:11 mib_hyavkn but I don't think it's the proper way to deal with it
14:11 mib_hyavkn @Sewy:
14:11 mib_hyavkn can I ask you one thing about use strict; ?
14:12 mib_hyavkn I used it
14:12 mib_hyavkn but I thought
14:12 mib_hyavkn that it should have thrown in case of no "my" keyword presence for lexical scope.
14:12 mib_hyavkn But it didn't even launched a warning!
14:12 mib_hyavkn what I'm missing
14:13 mib_hyavkn (I've tried on Linux but I don't think it's different!)
14:13 Sewi It complains about missing "my", but you could get in trouble otherwise.
14:13 Sewi $a = "foo"; sub test { $a = shift; } $a = "bar"; would mix up your $a every time test is called.
14:13 mib_hyavkn so I should write the clauses 'use strict; use warnings' at the begin of each file?!
14:13 mib_hyavkn I mean, to be sure.
14:14 Sewi Usually yes.
14:15 Sewi If you use an oneliner, there is no need for strict or warnings. perl -ple 's/&/&/g;' doesn't need it.
14:15 mib_hyavkn ok...
14:16 mib_hyavkn ok, just one last thing
14:16 Sewi Same if you write a 5 line script for a quick test, but if you write something which should stay on disk for later use, it should have the uses.
14:16 mib_hyavkn this is in the topic 'I've just said I've understood everything'
14:16 mib_hyavkn ihih
14:16 mib_hyavkn print %{shift @_}->{a}}
14:16 mib_hyavkn this works
14:17 mib_hyavkn (given I passed {a=>1}, it prints 1)
14:17 Sewi Why not shift->{a}?
14:17 mib_hyavkn print %{shift}->{a}
14:17 mib_hyavkn doesn't work
14:17 mib_hyavkn shouldn't I deference it?
14:18 dolmen -> does the dereference
14:18 Sewi Basic rule: Don't ever dereference.
14:18 mib_hyavkn ahahah ok!
14:18 Sewi dolmen: Not really compared to %{ ... } :)
14:18 mib_hyavkn print shift->{a} works perfectly!
14:18 Sewi You could dereference, but if you do, always think first if this has to be an exception
14:19 mib_hyavkn so if I need the entire hash or a slice of it instead of a simple key?
14:19 mib_hyavkn this is what you mean?
14:19 Sewi If you need to deal with the complete hash.
14:19 mib_hyavkn ok
14:19 mib_hyavkn I dereference
14:19 mib_hyavkn if I need a single value
14:19 Sewi keys() requires the hash, so you need to dereference
14:19 mib_hyavkn I simply use ->
14:20 mib_hyavkn ok, but I understand the case with keys
14:20 mib_hyavkn cause
14:20 Sewi But even if you access each single key, -> is better
14:20 mib_hyavkn it works on an hash
14:20 Sewi yes.
14:20 Sewi Other issue: If you need a copy if the hash.
14:20 mib_hyavkn you're right
14:20 dolmen what you probably wanted: "test 1, 2, 3;"
14:21 dolmen no need to dereference in test()
14:21 Sewi sub test { $a = shift; $a->{x} += 2; print $a->{x}; }
14:21 Sewi If you need the +2 only within the sub but not anywhere else
14:22 mib_hyavkn but in this way I'm modifyng the original hash
14:22 mib_hyavkn indeed!
14:22 Sewi yes.
14:22 mib_hyavkn Is there no deep copy facility
14:22 mib_hyavkn ?
14:23 mib_hyavkn something that do a lexycal scoping automagically at each level? (although I think it should not be so difficult)
14:23 Sewi There is a cpan module which does deep copy
14:24 Sewi But actually a hash containing hash refs is not one structure, it's a hash containing pointers.
14:24 mib_hyavkn ok
14:24 mib_hyavkn so
14:24 Sewi And the "parent" hash doesn't care at all where they are pointing to :)
14:25 mib_hyavkn what if I make a sub with checks for keys and make a copy of dereference?
14:25 mib_hyavkn is there any way to understand if a scalar is a reference?
14:26 Sewi look up ref() in perlfunc
14:27 mib_hyavkn sorry
14:27 mib_hyavkn just found
14:27 mib_hyavkn you perl people surely have a lot of docs!!!
14:27 Sewi :)
14:28 mib_hyavkn I must say that, although languages like ruby are more 'fashion', Perl has strange rules but coherent ones at least!!!
14:29 Sewi Perl is stable for more than 10 years.
14:30 Sewi I started 1999 with Perl and it's still the same. Some minor changes and thousends of new CPAN modules but Perl itself is the same
14:35 jnap joined #padre
14:35 mib_hyavkn mmm I must confess that I tried many languages (I'm an hobbyist ignorant geek!) and this is the first time I seem to be able to writing something other hello world with just a few command
14:35 Sewi :)
14:36 mib_hyavkn Thank you very much for the help
14:36 Sewi The amount of code usually shrinks over time.
14:36 mib_hyavkn I hope to hear you again either on this list or on the perl one!
14:36 mib_hyavkn see you and thanks again!
14:36 Sewi You're welcome.
14:36 mib_hyavkn left #padre
14:38 GabrielVieira joined #padre
14:55 dapatrick joined #padre
14:56 Supersede joined #padre
15:04 danlucraft left #padre
15:04 danlucraft joined #padre
15:11 kaare joined #padre
15:12 Supersede left #padre
15:19 asarch left #padre
15:23 danlucraft left #padre
15:24 danlucraft joined #padre
15:26 ispy_ left #padre
15:32 jnap_ joined #padre
15:37 jnap left #padre
15:37 jnap_ is now known as jnap
15:50 asarch joined #padre
15:51 mj41 left #padre
15:56 ispy_ joined #padre
16:23 mj41 joined #padre
16:29 dodathome joined #padre
16:30 toi joined #padre
16:31 Sewi left #padre
16:36 Supersede joined #padre
16:46 Supersede hello szabgab: are you around?
16:46 jnap left #padre
16:47 danlucraft left #padre
16:50 jnap joined #padre
16:55 mj41 left #padre
16:58 thecrux joined #padre
16:59 toi left #padre
17:04 dolmen left #padre
17:04 dolmen joined #padre
17:27 pece2 joined #padre
17:48 szabgab Supersede: now I am here
17:49 Supersede oh great, so I have an issue: when I try to Run >> Run Script, i get an error "No such file or directory" in reference to my perl installation
17:50 szabgab what happens if you run the same script from the command line?
17:50 Supersede let me see
17:51 mj41 joined #padre
17:52 Supersede no issues. I think the location of perl in ubuntu 11.04 is different then 10.10, or something along those lines. I was one of the ones with the issues after upgrading ubuntu.
17:52 szabgab try opening one of the sample scripts
17:53 szabgab File -> Open -> Open Example
17:53 szabgab in the absolute_beginner folder
17:53 szabgab and try to run one of those
17:53 szabgab from within Padre
17:54 Supersede ok i tested hello world and it worked
17:54 Supersede let me try a couple others
17:54 szabgab is the "problematic" script on your local disk?
17:54 szabgab does it try to run some other thing via system or qx ?
17:55 szabgab or open a file?
17:55 szabgab I guess that the error you get is already printed from your script and not by padre, right?
17:56 Supersede well here is the extent of my issue: i'm learning perl, I made a hello_world.plx file (.plx was the extension recommended by the tutorial). This program worked in 10.10. Then, I update a few days ago and it does not work
17:57 szabgab does Padre recognize it as perl script?
17:57 szabgab see the status bar
17:57 Supersede lets see..
17:59 Supersede it states Scintilla || Perl 5 || UNIX || 1/16  0% || R/W
17:59 mj41 left #padre
18:00 szabgab the third entry says Perl 5 - so Padre recognized it as a Perl scrpt
18:00 szabgab could you maybe paste the script to a pastebot?
18:00 Supersede lets see if saving as .pl helps, and yes
18:00 szabgab pastebot?
18:00 Hyppolit pastebot is http://www.pastebot.net/
18:00 szabgab there
18:00 Supersede one moment
18:01 Supersede http://www.pastebot.net/paste/fD9JQxzd9P3/   and that is a cool resource
18:02 szabgab and this script does not work in padre ?
18:02 szabgab is tehre maybe a space or a non asci character in the path?
18:02 szabgab or in the filename?
18:02 Supersede correct. does that top line maybe not function as a normal comment?
18:02 Supersede there is none
18:03 szabgab the top line is not a comment , it is a sh-bang
18:03 szabgab but it is ok to be there
18:03 szabgab so when you try to run this with F5, where do you see the error message?
18:03 Supersede that is the path in my error, however
18:04 Supersede xterm: Can't execvp /user/bin/perl  /home/***/Desktop/perl: No such file or directory
18:05 szabgab is it /user or /us ?
18:05 szabgab /usr ?
18:06 Supersede /usr sorry couldnt copy / paste
18:06 szabgab ok, no problem, I cant type :)
18:07 szabgab is there really *** or you just blanked your real username?
18:07 Supersede hehe :)
18:07 Supersede yeah just blanked it
18:07 szabgab and it is plain asci , no space?
18:07 szabgab ascii
18:07 szabgab but one sec what is in /home/***/Desktop/perl  ?
18:07 Supersede correct my username is proper format
18:08 Supersede oh wait now
18:08 Supersede folder "perl exercises" should be that location
18:08 Supersede let me remove the space from that
18:09 szabgab so that seems to be the bug in Padre
18:10 Supersede that solved the problem, changing to "perl_exercises"
18:10 Supersede was not an issue prior to upgrading to ubuntu 11.04 and going through the steps determined tuesday
18:11 szabgab maybe you had a different version of Padre ?
18:12 Supersede same version 0.76 available from ubuntu software center in 10.10 and 11.04
18:13 szabgab anyway, so for now you are set, would you like to open a ticket with t on our bug tracking system ?
18:13 Supersede yes i will help with that.
18:14 szabgab do you already have an account on our trac?
18:14 Supersede and i'll be as concise as possible :)
18:14 Supersede no i don't
18:14 szabgab one sec then
18:15 szabgab trac?
18:15 Hyppolit trac is http://padre.perlide.org/trac
18:15 szabgab register?
18:15 Hyppolit register is http://padre.perlide.org/trac/register
18:15 szabgab pls register on the 2md link
18:16 Supersede ok
18:19 mj41 joined #padre
18:22 danlucraft joined #padre
18:24 Supersede i registered as Supersede, and states I need privelages
18:25 szabgab privilages for what?
18:25 Supersede TICKET_CREATE privileges are required to perform this operation
18:25 szabgab are you logged in?
18:25 szabgab it should say at the top "logged in as Supersede"
18:25 Supersede ahaha. i thoguht i was
18:26 szabgab trac is tricky :)
18:26 Supersede I'm still adjusting to linux / linux versions of things
18:26 Supersede i think firefox tabs have different session rules
18:26 Supersede or maybe its trac ;)
18:37 Supersede once i create this ticket can it be edited fully?
18:38 szabgab yes, but history is kept so don't put there secret info :)
18:38 Supersede haha :)
18:38 Hyppolit # 1219 :  Non-ASCII Character (SPACE) unrecognizeable (new defect) [ http://padre.perlide.org/trac/ticket/1219 ]
18:39 Supersede thats it, give me the critique
18:39 meorero joined #padre
18:41 szabgab it ok, though I would probably wrote the title sg like this: "cannot run script if path has space in it"
18:42 szabgab as the "unrecognizable " in itself is a bit unclear
18:42 szabgab anyway, let me try to see if I can reproduce it on my machine
18:43 mj41 left #padre
18:44 Hyppolit # 1219 :  Non-ASCII Character (SPACE) unrecognizeable (new defect) by szabgab  [ http://padre.perlide.org/t​rac/ticket/1219#comment:1 ]
18:44 Supersede alright
18:46 Supersede it is possible that i ran the hello world program before saving it... infact i remember that pretty well
18:46 Supersede in 10.10 so yeah
18:47 szabgab that would not work afaik at all
18:47 Supersede you are right it made me save
18:54 Supersede i'm wondering if it could have to do with an older version of Wx?
19:01 Supersede this is sort of related (since padre is kinda about learning) http://www.geek.com/articles/games​/game-developer-david-braben-creat​es-a-usb-stick-pc-for-25-2011055/
19:13 mj41 joined #padre
19:17 Hyppolit svn: r14309 | szabgab++ | http://padre.perlide.org/trac/changeset/14309
19:17 Hyppolit allow using spaces in the name path to the scripts and in the script name #1219
19:17 Hyppolit trunk/Padre/ trunk/Padre/lib/Padre/Document/
19:17 meorero left #padre
19:17 Hyppolit # 1219 :  Non-ASCII Character (SPACE) unrecognizeable (closed defect) by szabgab  [ http://padre.perlide.org/t​rac/ticket/1219#comment:2 ]
19:19 szabgab Supersede: so I fixed in in trunk
19:20 mj41 left #padre
19:21 meorero joined #padre
19:27 Supersede sounds good
19:34 meorero left #padre
19:35 Supersede left #padre
19:35 katofiad left #padre
19:39 Supersede joined #padre
19:58 jnap left #padre
20:14 pece2 left #padre
20:17 GabrielVieira2 joined #padre
20:21 mj41 joined #padre
20:22 dodathome left #padre
20:22 GabrielVieira left #padre
20:33 Supersede left #padre
20:43 Hyppolit # 1218 :  Ctrl-F now killing X-Windows (closed defect) by szabgab  [ http://padre.perlide.org/t​rac/ticket/1218#comment:2 ]
20:44 Hyppolit # 1216 :  Ctrl-F crashes Padre (closed defect) by szabgab  [ http://padre.perlide.org/t​rac/ticket/1216#comment:2 ]
20:49 kaare left #padre
21:01 Supersede joined #padre
21:12 mj41 left #padre
21:57 Supersede left #padre
22:10 danlucraft left #padre
22:16 asarch left #padre
22:25 dapatrick left #padre
22:34 dolmen1 joined #padre
22:37 dolmen1 left #padre
23:02 ZadYree joined #padre

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