Camelia, the Perl 6 bug

IRC log for #padre, 2009-10-14

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

All times shown according to UTC.

Time Nick Message
00:53 jq joined #padre
01:23 danboo joined #padre
01:25 danboo Too lazy to register to create a ticket but wanted to pass along a resolution for consistent test failures. I believe File::Slurp is required in the tests, but not mentioned in the Makefile.PL. See: http://www.nntp.perl.org/group/perl.​cpan.testers/2009/09/msg5422482.html
01:33 dolmen left #padre
01:37 CSJewell Could we shorten up the changes file by every 6-10 versions or so, delete everything but the last 6, and put a pointer in to http://search.cpan.org/~who​ever/src/Padre-0.XX/Changes to get the rest?
01:41 Alias Nope
01:41 Alias It doesn't hurt anyone to have it all, and it's just plain text so it renders easily
01:45 CSJewell OK. I thought you were complaining about the overall length.
01:45 Alias No, just that there's SO many items for the last two releases
01:45 Alias Don't get me wrong, that's a great thing
01:46 Alias http://cpansearch.perl.org/​src/ADAMK/PPI-1.206/Changes
01:46 Alias My current record
01:47 Alias I find it especially interesting because you get to see some of the story of the development
01:48 Alias That was like 40 releases and two years before 1.0 :)
02:11 mohsen joined #padre
02:27 GabrielVieira joined #padre
03:10 Alias joined #padre
03:11 danboo joined #padre
03:47 ppant joined #padre
04:37 zloyrusskiy joined #padre
05:11 waxhead joined #padre
05:19 szabgab good morning
05:21 szabgab regarding the changes file, this release was after 2.5 weeks and I think there are several items in there for bugs that were introduced and fixed since the last release which should probably not mentioned at all as it is not really relevant to the users what do we break an fix between releases
05:25 ppant joined #padre
05:28 waxhead szabgab: agreed, we really only want to see what's new and something that may have some "bad" press being fixed... and maybe a bugs fixed count...
05:28 waxhead so what was the stopper with that test file?
05:28 waxhead I see Sewi fixed it.. but I can't get my head around what was broken and subsequently fixed...
05:29 waxhead good to see .48 out.... just waiting on cpan mirror to catch up to get it though...
05:33 pece joined #padre
06:04 kaare joined #padre
06:23 szabgab Ryan52, thanks for fixing the ownership and reindexing the package
06:30 ppant joined #padre
06:30 submersible1 joined #padre
06:33 azawawi joined #padre
06:33 azawawi good morning
06:34 Hyppolit svn: r8747 | azawawi++ | http://padre.perlide.org/trac/changeset/8747
06:34 Hyppolit [Padre] Corrected typo
06:34 Hyppolit trunk/Padre/t/
06:35 szabgab azawawi, good morning
06:35 azawawi Yay... 0.48 is released... ty
06:36 azawawi been very busy lately...
06:36 szabgab I see you are the top perl commiter: https://www.ohloh.net/languages/8
06:36 azawawi yeah it is lonely at the top :)
06:37 azawawi but those stats measure commits and not LOCs.....
06:40 azawawi szabgab: i love first place... :)
06:42 szabgab and I fell off from the top 25
06:42 szabgab apparently I am talking too much instead of coding
06:43 azawawi my world domination plans were revealed... damn :)
06:43 azawawi now i have to grind my way to level 10 :)
06:48 Hyppolit svn: r8748 | szabgab++ | http://padre.perlide.org/trac/changeset/8748
06:48 Hyppolit remove 0.48 release branch
06:48 Hyppolit branches/
06:54 waxhead azawawi: are you going to be around for a while?
06:55 waxhead I've started cooking dinner and I want to ask a question or two about the action setup...
06:55 azawawi for 1 hour most probably
06:55 azawawi i'll wait no problem...
07:07 Sewi joined #padre
07:07 Sewi good morning
07:12 azawawi hi Sewi
07:12 Sewi Hi azawawi
07:14 waxhead azawawi: don't wait... I could be a while.. and I need to find the code I was looking to ask the right question
07:15 Sewi waxhead: Hi, did you see #691?
07:15 Hyppolit #691: Extract subroutined does not work if there is no subroutine in the code already (new defect) [ http://padre.perlide.org/trac/ticket/691 ]
07:16 waxhead nope..
07:16 waxhead crap...
07:16 waxhead will look into it...
07:17 Hyppolit #691: Extract subroutined does not work if there is no subroutine in the code already (assigned defect) [ http://padre.perlide.org/trac/ticket/691#comment:1 ]
07:17 azawawi waxhead: ok... back to upgrading linux vm for mysql replication :)
07:18 waxhead Sewi: I've taken the ticket and will get ot this ASAP
07:18 Sewi waxhead: Don't worry, the next release will be in ~14 days...
07:20 szabgab http://szabgab.com/blog/2009/10/1255503521.html
07:20 szabgab 14 ?
07:23 Sewi szabgab: The last releases have been after ~2-3 weeks or did I miss something?
07:23 Sewi thanks for the credits.
07:27 szabgab yes, but it was sorta late, it should have been after 7-10 days
07:27 Sewi We'll double our efforts to create a big Changes :-)
07:29 szabgab you probably should restrict yourself to add only changes related to the previous version and exclude bugs that we added and then fixed in the current release :-)
07:30 Sewi I'll try
07:30 Sewi I already tried it, but sometimes it happend
08:02 waxhead hmm if a script doesn't have any subroutines defined already, where would you want to extract a subroutine to?
08:03 Sewi Best would be between the last use and before the next non-pod, non-comment, non-empty line, but after the last use should be enough for the beginning
08:05 Sewi s/^(.*\buse .+?\;[\r\n]+)/$1$sub/; should do the job if you don't use PPI
08:05 waxhead Sewi: wow... thanks...
08:05 waxhead for the regex..
08:05 szabgab joined #padre
08:05 waxhead regexes are still a black art for me
08:29 pece joined #padre
08:34 Chelsea joined #padre
08:35 Sewi Hi Chelsea
08:35 Hyppolit #629: open ticktes for TODO items (and fix them) (assigned enhancement) [ http://padre.perlide.org/trac/ticket/629#comment:2 ]
08:40 mib_u8v759 joined #padre
08:41 szabgab Hi Chelsea
08:42 Chelsea hi everybody
08:42 szabgab Chelsea, did I understand correctly Sewi that the two of you are married ?
08:42 szabgab \ from Sewi /
08:42 Sewi We are - at least afaik :-)
08:43 szabgab hey Sewi , I asked her opinion :-)
08:43 Chelsea yes, we are. :-)
08:43 szabgab and you are chatting on IRC...., well :-)
08:43 Chelsea yes#
08:45 Chelsea some years ago we did it (or he tried to) untill I didn't respond anymore. :-)
08:46 Chelsea why should we talk via IRC while we are sitting next each other
08:46 Chelsea but now he tries again ;-)
08:49 waxhead joined #padre
08:50 szabgab he is persistent  :-)
08:51 Chelsea me too
08:51 Chelsea :-)
08:54 * Sewi chelsea http://szabgab.com/blog/2009/10/1255503521.html
09:07 Sewi szabgab: Something is still missing for the release... Look at the channel topic :-)
09:07 Topic for #padreis now Latest Padre is 0.48, for installation see http://padre.perlide.org/trac/wiki/Download | Log: http://perlide.org/irclogs/ and http://irclog.perlgeek.de/padre/today | Pasting: http://scsys.co.uk:8001
09:08 szabgab what about it ?
09:08 szabgab ty
09:08 Sewi Better now :-)
09:10 waxhead I think the help dialogs shouldn't be modal...
09:11 Sewi waxhead: F2 isn't
09:11 waxhead f1
09:11 waxhead is
09:11 Sewi no, not here (Ubuntu)
09:11 waxhead F1 or f2?
09:11 Sewi both
09:12 waxhead it is here, I can't get the main editor window back.. the dialog stays on top of the window
09:12 Sewi Same on Win7/Strawberry. Which OS are you using?
09:14 waxhead ubuntu
09:14 waxhead 9.10
09:15 waxhead ha.. 9.4
09:15 waxhead sheesh.. I don't think 10 has been released has it?
09:17 Sewi Ubuntu 9.04 runs for me. If I press F2 and than on the editor, the help win stays in front but the editor gets focus.
09:22 waxhead Sewi: true.. but it's annoying...
09:23 Sewi Change it, but please make it a preference as I like it (using Ubuntu Netbook remix which always maximizes Padre).
09:33 waxhead Sewi: it's safe for now... I have enough to figure out with PPI and placing these extracted subroutines... :(
09:33 waxhead time to get off the computer now though.
09:33 waxhead night.
10:05 code4pay joined #padre
10:23 code4pay Hi just wanted to announce that I have been working on a Mecurial plugin and have a alpha version now on bitbucket.org
10:23 code4pay http://bitbucket.org/code4pa​y/padre-plugin-hg/wiki/Home
10:23 Sewi code4pay: Do you have a commit bit?
10:23 code4pay no
10:24 code4pay I don't have a cpan account yet just requested it before
10:24 Sewi Sorry, but what is Mecurial? Where should I put your plugin on http://padre.perlide.org/trac/wiki/Plugins ?
10:25 szabgab version control system
10:25 code4pay sorry mercurial  the version control system
10:26 Sewi thx
10:26 szabgab code4pay, that's great to hear that you are working on it!
10:27 code4pay thanks, I think it might provide some features the other Version control plugins might be able to leverage
10:27 code4pay like a tree view of the project status
10:28 Sewi code4pay: Is this ok for you? http://padre.perlide.org/trac/wiki/Plugins
10:28 code4pay yes great  thanks
10:29 Sewi What about a "version control" feature for Padre where the actual vcs-plugins provide the handlers. The core feature only displays functions where a Plugin added a handler. Otherwise we'ld rewrite the same type of source for each vcs plugin
10:31 code4pay Sewi: yes that would be ideal.
10:31 Sewi code4pay: I'm too busy to do this myself, but I'ld be happy to help you if you'ld like to do it.
10:32 code4pay Sewi: OK  I will have a look into it I was thinking along those lines when I wrote this as I also want CVS access
10:34 code4pay Sewi: the main issue I see with having it purely as a plugin is  there are not hooks (that I could see) to trigger updates
10:34 code4pay if files are modified etc.
10:35 Sewi You mean hooking Padre's "save file" function?
10:35 szabgab the whole thing needs some thinking
10:35 code4pay yes
10:35 Sewi Yes
10:35 Sewi We could do it as a Padre::File - module but I don't think this matches the version control idea
10:38 code4pay I will start to have a look around see what I can come up with.
10:53 kaare_ joined #padre
11:04 daxim joined #padre
11:17 SvenDowideit joined #padre
11:21 zloyrusskiy joined #padre
11:28 agn joined #padre
11:31 zloyrusskiy joined #padre
11:47 agn i downloaded and compiled padre 0.48 successfully(i think)
11:47 agn i don't want to run make install
11:48 agn where is the binary/script of padre ?
11:48 agn this is on ubuntu
11:48 agn ah i see a padre in scripts/
11:57 JRWeiss joined #padre
12:04 kentnl joined #padre
12:06 Sewi Hi agn, nice to see you here.
12:35 agn hi :)
12:36 agn stuck on 'Failed to find share dir for dist 'Padre' at lib/Padre/DB.pm line 18'
12:36 agn using `perl -Ilib script/padre` to launch it
12:45 Sewi If you don't want to install... what about using the svn trunk version? It has a "dev.pl" script that launches Padre and doesn't need installation or other things.
12:46 agn oh
12:46 agn you should've replied a minute ago
12:46 agn i succumbed to 'make install'
12:46 agn installing a newer version of Wx
12:46 Sewi http://padre.perlide.org/trac/wiki/Download#​Moredetailedinstructionformanualinstallation
12:48 agn darn, Wx has a lot of dependencies
12:48 Sewi yes :-(
13:08 agn done!
13:08 agn :)
13:09 agn and crashed!
13:09 agn Can't locate object method "Run" via package "Wx::Perl::ProcessStream::Process" at /usr/local/share/perl/5.10.0/Padre/Wx/Main.pm line 1736.
13:09 Sewi Upgrade Processstream
13:11 agn what's the anme of the module ?
13:11 agn name*
13:11 Sewi Wx::Perl::ProcessStream
13:11 agn ok, thanks
13:12 agn works!
13:16 agn wrong line numbers
13:20 agn says there's an error in Line 1
13:20 agn but Line is the shebang
13:20 agn Line 1*
13:20 agn error is about split()
13:20 agn no split() on the line
13:21 Sewi maybe from a required file?
13:21 agn no
13:21 agn standalone script
13:22 agn use POSIX; use IO::Socket; use LWP::MediaTypes; use URI::Escape;
13:22 agn those are the modules i use in the script
13:22 agn doesn't say anything if i run it via the cli
13:23 Sewi These may be the beginner error checks. Try Perl->check for beginne errors (the first option)
13:28 agn Error: Line 1: The second parameter of split is a string, not an array
13:28 Sewi Is the script open source?
13:28 agn but not on Line 1
13:29 agn yeah, its a simple web server thingie i wrote
13:29 Sewi May I download it somewhere for testing?
13:29 agn but there's no split() on Line 1
13:32 kthakore joined #padre
13:32 Sewi Yes, I'ld like to fix this as it seems to be a bug
13:32 kthakore Sewi++ for awesome directory viewer
13:35 agn Sewi: http://rootshell.be/~arun/tmp/httpserv.pl
13:35 agn still learning perl
13:35 agn so there're bugs
13:39 Sewi kthakore: Thanks... but which directory viewer? I don't remember I did one :-)
13:39 Sewi agn: No script is ever perfect. I'll look at it, just need to finish some ugly routing issues :-(
13:41 agn ok
13:48 kthakore Sewi: um this  one Update directory tree on load session (SEWI)
13:48 kthakore it wasn't updating the directory broswer properly but you fix fixed it some how
13:48 kthakore don't ask me how
13:49 agn_1 joined #padre
13:49 Sewi kthakore: Oh, yes, I did this, it was a one-line-call to the refresh method of the directory tree :-)
13:53 kthakore Sewi: yay!! one line fixes make me feel warm and fuzzy
13:54 agn where should i look if i want to get involved ?
13:54 Sewi First: http://padre.perlide.org/trac/wiki/Download#​Moredetailedinstructionformanualinstallation
13:54 Sewi Next: http://padre.perlide.org/trac/wiki/Development
13:54 agn yep, am installing Module::Install
13:55 Sewi Next ask szabgab, garu or Ryan52 to open the trac registration for you, register and add bug reports as you find bugs. Fix them if you like and append the patches to the tickets.
13:56 agn ok
13:56 agn not sure if i'll be of any use
13:56 agn but i'll give ti a try
13:56 agn ;)
13:57 Sewi Everybody who helps, helps. Every new bug report or idea for new features helps.
13:57 PerlJam joined #padre
14:01 PacoLinux joined #padre
14:02 dapatrick joined #padre
14:06 agn is there an easy way to install all the required modules ?
14:06 agn to run dev.pl
14:06 agn make test bails out on trunk
14:06 Sewi cpan .
14:06 Sewi I thin
14:06 Sewi k
14:06 agn ok
14:08 JRWeiss joined #padre
14:11 Haarg joined #padre
14:20 calderman joined #padre
14:28 nferraz joined #padre
14:28 nferraz Hi!
14:28 nferraz I just downloaded padre 0.48 and it looks very nice
14:28 Sewi thanks
14:29 nferraz just as an exercise I edited /usr/bin/padre, and implemented a feature so it can use modules installed under local::lib
14:29 nferraz I also refactored it a little, but can't commit the changes
14:30 nferraz should I paste the diff somewhere?
14:30 Getty wow, a visual studio dude, said "interesting features" to padre as first comment, it seems something must have impressed him ;)
14:31 nferraz :)
14:32 Sewi :-)
14:32 Sewi nferraz: open a ticket on trac, please, and append the changes.
14:32 Sewi patches
14:32 nferraz hmm... ok
14:32 Sewi http://padre.perlide.org/trac
14:34 Sewi agn: You found your first bug :-)
14:34 nferraz er... how can I sign up on trac?
14:35 Sewi ping szabgab | garu | Ryan52 | Alias
14:35 szabgab poing
14:35 szabgab opening
14:35 Sewi nferraz: We got big trouble with spam :-( This is why trac signup is closed on default
14:35 Sewi szabgab: thanks
14:35 nferraz thanks! :)
14:35 Sewi agn: You could also signup now.
14:36 szabgab next time just say sesami
14:36 szabgab nferraz, http://padre.perlide.org/trac/register
14:36 Hyppolit svn: r8749 | Sewi++ | http://padre.perlide.org/trac/changeset/8749
14:36 Hyppolit Fixed a bug on split beginner error check (agn++)
14:36 Hyppolit trunk/Padre/lib/Padre/Document/Perl/
14:36 Getty Sewi: i still cant believe that this problem is so unsolved in trac, cause its technical not that complex to add "captcha to all forms", dont know why noone did
14:37 kaare joined #padre
14:37 Getty Sewi: even tho sadly too much trac knowledge involved for doing it myself ;) just sad for trac, i got the same problem
14:37 Sewi Getty: I'm not the trac guy here, I'm just a trac user :-)
14:38 Getty i know, i just lighten you up ;) and share my pain
14:38 szabgab next project, get Bugzilla up and running and find or write a trac2bugzilla tool
14:40 Getty so pissed about trac ticket management? ;)
14:40 Getty exporting from trac is a snap, you know i suggest
14:40 Hyppolit svn: r8750 | Sewi++ | http://padre.perlide.org/trac/changeset/8750
14:40 Hyppolit Start the new Changes list
14:40 Hyppolit trunk/Padre/
14:41 Getty ever took a peak at OTRS? :)
14:42 Getty there are not many fans of Bugzilla really (quake open source scene got some kind of sourcefource style, where they get anything to develop, bugtracker and stuff, and they complain all the time about the bugzilla and the handling of it)
14:43 Hyppolit #692: use modules installed with local::lib (if available) (new enhancement) [ http://padre.perlide.org/trac/ticket/692 ]
14:43 Hyppolit svn: r8751 | Sewi++ | http://padre.perlide.org/trac/changeset/8751
14:43 Hyppolit Fixed another use of uninitialized value
14:43 Hyppolit trunk/Padre/lib/Padre/Wx/
14:44 Getty nferraz: definitly
14:44 szabgab nferraz, are you done with registration ?
14:45 szabgab err, apparently he is
14:45 Sewi :-)
14:45 nferraz yes I am
14:45 nferraz just created the ticket http://padre.perlide.org/trac/ticket/692
14:45 Getty nferraz: you can include local::lib btw
14:46 Getty nferraz: no requirement of regular cpan installation
14:47 Sewi szabgab: Did you notice tools/actions_list.pl ?
14:47 nferraz good idea Getty
14:47 szabgab I hardly have any time to deal with Padre issues, trying to follow the commits only
14:47 Getty its actually "logical standard"
14:48 Getty cause you cant install via cpan if you are user ;)
14:48 Getty (without local::lib ;) )
14:48 szabgab Sewi, I saw that but I don't yet understand it :-) I though it should be mostly part of a module, shouldn't it?
14:49 szabgab I am trying to clean up the PM groups now and I think I already remove 50 dead groups
14:49 Sewi It gets the list of all actions padre has and outputs them as HTML to be shown on the website as a reference when designing your own menus/toolbars/shortcuts.
14:50 Getty nferraz: btw: testing environments with local::lib, also a nice idea for a plugin, if you are already diving into that ;)
14:53 szabgab Sewi, and could be used to provide mouse-over help on the menues, I guess
14:55 Sewi szabgab: I added a "comment" key to the actions (not all of them) I converted until now. This text could be used as tooltip, yes.
14:56 Sewi Oh, I did a ticket for this... #682
14:56 Hyppolit #682: Add a list of actions to the website (new enhancement) [ http://padre.perlide.org/trac/ticket/682 ]
15:02 szabgab Sewi, yes, this is great
15:13 nferraz joined #padre
15:14 nferraz hi
15:14 nferraz I started to write the local::lib plugin, but then I realized that... at the time the plugin is loaded, it is already late to use local::lib
15:15 nferraz thus, I think the best approach is to use local::lib as soon as possible, so we can load the next modules
15:16 agn back
15:16 agn Sewi: ok i'll signup
15:16 agn :)
15:16 Sewi sesami?
15:16 Sewi agn: szabgab or one of the others need to open the registration for you...
15:16 agn ok
15:17 szabgab opening
15:18 szabgab agn, http://padre.perlide.org/trac/register
15:19 szabgab agn, Sewi could you please also write unit tests for the beginner errors ?
15:19 agn done, thanks :)
15:19 szabgab those can be tested relatively easily
15:19 Sewi szabgab: Most of them are tested atm.
15:20 Sewi agn: Maybe you want to look at t/75-perl-beginner.t and add missing/additional tests?
15:20 agn um, i've never written a unit test before
15:20 agn i'll see what i can do
15:20 szabgab best time to start :-)
15:21 agn :)
15:21 Sewi agn: There are many, many samples in t/75 to copy :-)
15:21 agn ok
15:21 agn looking at it
15:21 szabgab agn, the best way would be to write a sample that fails on the revision before your change but that passes after your fix
15:25 Getty nferraz: of course, you must offer something much bigger then just a plugin :)
15:25 Getty best is start with a suggested plan
15:27 nferraz in my particular case, I noticed that Padre failed to start from Gnome launcher
15:27 nferraz it happened because some important modules could only be found at local::lib
15:28 nferraz so, I patched the padre script to look for a default local::lib directory -- if it founds, it simply adds that to @INC
15:30 szabgab I don't understand this
15:30 szabgab the idea with locallib would be to set PERL5LIB
15:30 szabgab before running your application
15:31 nferraz yes... but it doesn't work if you run the command from a desktop environment
15:31 nferraz (because they usually don't run .bashrc)
15:31 nferraz so the variables are not set
15:35 kthakore hi nferraz
15:36 nferraz hi! :)
15:37 agn left #padre
15:38 nferraz btw... I did a small refactoring of the laucher script, so it's a bit more readable
15:38 nferraz http://perl.pastebin.com/m5e319a30
15:39 Sewi nferraz: Please append it/a patch to a ticket, if possible.
15:39 nferraz (I basically separated the code in some subs... _spawn_wx_perl, _print_version, _desktop_integration)
15:39 nferraz ok
15:44 Hyppolit #693: Clean up and tidy of padre laucher script (new enhancement) [ http://padre.perlide.org/trac/ticket/693 ]
15:49 Hyppolit svn: r8752 | Sewi++ | http://padre.perlide.org/trac/changeset/8752
15:49 Hyppolit Forward main object while creating actions
15:49 Hyppolit trunk/Padre/lib/Padre/Wx/
15:54 Hyppolit svn: r8753 | Sewi++ | http://padre.perlide.org/trac/changeset/8753
15:54 Hyppolit Handle checked actions
15:54 Hyppolit trunk/Padre/lib/Padre/Wx/
16:09 CSJewell_ joined #padre
16:16 Hyppolit svn: r8754 | Sewi++ | http://padre.perlide.org/trac/changeset/8754
16:16 Hyppolit Use hash key not method
16:16 Hyppolit trunk/Padre/lib/Padre/Wx/
16:16 Hyppolit svn: r8755 | Sewi++ | http://padre.perlide.org/trac/changeset/8755
16:16 Hyppolit Add search actions
16:16 Hyppolit trunk/Padre/lib/Padre/Action/
16:17 Hyppolit svn: r8756 | Sewi++ | http://padre.perlide.org/trac/changeset/8756
16:17 Hyppolit Finally move search operations from menu to actions
16:17 Hyppolit trunk/Padre/lib/Padre/ trunk/Padre/lib/Padre/Wx/Menu/
16:19 Hyppolit svn: r8757 | Sewi++ | http://padre.perlide.org/trac/changeset/8757
16:19 Hyppolit Updated Changes
16:19 Hyppolit trunk/Padre/
16:34 finanalyst joined #padre
16:54 agn joined #padre
16:54 Getty szabgab: its not only for this
16:54 Getty szabgab: you can also do it "Inside an application"
16:54 Getty like making the starter taking from base cpan installation but then using the local::lib installation of some path
16:55 Getty even tho, nferraz case is not the problem i would see solved with local::lib
16:55 Getty more the point of: padre not running on the local cpan installation, as optional way for installation
16:56 Getty (so just making it much easier to install it via local::lib, nothing more)
17:00 finanalyst hi just downloaded 0.48. Starts like lightning!
17:00 finanalyst however, how do i change the base directory? currently its /home/user
17:04 dapatrick joined #padre
17:12 PerlJam finanalyst: Edit -> Preferences -> Default projects directory
17:14 finanalyst hi i tried that. but if i run a command and type 'ls' i get the files and directories of /home/user
17:15 finanalyst hence i cant get modules in the same directory as a script to load
17:16 finanalyst suppose i have a module mmm.pm in the same directory as xxx.p6 and have 'use mmm', i get an error about a non-existent module
17:16 PerlJam setup your environment?   PERL6LIB=.
17:16 PerlJam ?
17:17 PerlJam oh, I guess that still won't work.
17:17 * PerlJam isn't paying enough attention
17:18 PerlJam finanalyst: BEGIN { $*INC.unshift: "/full/path" }   #  :-)
17:20 mattp Alias: are you around?
17:28 finanalyst PerlJam: where do i use that bit of magic?
17:28 finanalyst & I did try setting PERL6LIB
17:28 PerlJam finanalyst: the BEGIN block?  In your xxx.p6
17:28 finanalyst doesnt work.
17:29 finanalyst at least, the syntax checker keeps telling me the module cant be found
17:30 finanalyst i am trying out Padre on a perl6 script i know is working
17:31 PerlJam finanalyst: perhaps the syntax checker isn't cognizant of BEGIN blocks
17:31 PerlJam but the execution should work fine.
17:31 finanalyst looks that way
17:31 szabgab do you have PERL6LIB ?
17:32 szabgab or do you try to do the BEGIN block and pushing o INC
17:32 szabgab and wouldn't that be @*INC btw ?
17:32 PerlJam szabgab: ah yes, good eye.
17:33 PerlJam (I find it difficult to perform a full context switch between p5 and p6)
17:34 szabgab it *is* difficult
17:36 finanalyst i have PERL6LIB=./
17:36 finanalyst checked that it has that with env command inside Padre
17:37 szabgab I think it would be better if PERL6LIB had a full path :-)
17:37 PerlJam finanalyst: if you're doing the Run Command thing, you'd probably want cd /path/to/prog; PERL6LIB=. ./prog
17:38 PerlJam szabgab: what controls which directories are shown/expanded?  Sometimes as I move through the tabs, it will change; other times it does not.
17:39 szabgab PerlJam, in the directory browser you mean ?
17:40 PerlJam yes
17:40 szabgab it shows the directory of the current project
17:40 szabgab which is automatically the found as the directory with a Makefile.PL or Build.PL
17:40 szabgab and it is really not obvious as many people ask
17:41 szabgab and probably many more are afraid to ask
17:41 finanalyst PerlJam: I tried a run cd, but got the following error   execvp(cd, ..) failed with error 2!
17:41 finanalyst all cd arguments fail
17:43 szabgab I don't think you should need to cd there
17:43 * szabgab looking up code example
17:43 Sewi joined #padre
17:44 Sewi re
17:44 PerlJam szabgab: I think it would be more intuitive if the state of the directory browser were somehow tied to each tab. Sometimes I navigate down several levels of directory structure and when I switch tabs but the directory browser doesn't change, than I get annoyed because I have to do the navigation again.
17:44 PerlJam s/than/then/
17:46 PerlJam imagine two tabs, one with /path/to/foo/bar/baz/file.pm and another to /path/to/other-file.pm    switching between them, I'd like to see the directory browser at /path/to for other-file.pm and at /path/to/foo/bar/baz for file.pm
17:46 szabgab if ($*PROGRAM_NAME ~~ m/^ (.*) \/ .* $/) { @*INC.unshift($0) }
17:47 szabgab PerlJam, I think I agree, open a ticket please
17:47 PerlJam szabgab: heh, I was just thinking you'd say exactly that :)
17:47 Sewi This would be bad if there are several files from one project open.
17:48 PerlJam Sewi: why?
17:48 szabgab finanalyst, see my code example above
17:48 szabgab and maybe put it in a BEGIN block
17:48 Sewi Usually, I have about a dozen open files in my "Padre" running copy of Padre. When working on something (let's say Menu to Action conversion), I need to switch between at least three files.
17:49 Sewi Every change to the directory structure would be "lost" just because I change from Action.pm to Menu.pm? Please not.
17:49 PerlJam Sewi: what do you mean "change to the directory structure"?
17:50 Sewi Either make it a preference or don't make it per-tab but per-project
17:50 szabgab Sewi, try Eclipse, I think what it is doing is quite ok
17:50 Sewi Navigating through the dir/file browser tab on the left side, "opening" directories which I need.
17:51 Sewi It's bad enough that the tree state isn't saved in the session (One thing I'ld like to face, but didn't got the time)
17:51 finanalyst szabgab: how does your code help? I want to "use local-module"
17:51 szabgab hmm, I am not sure what local-module is
17:52 PerlJam Sewi: so you would prefer that the directory browser only change through explicit action on the browser itself, otherwise it stays however you last left it?
17:52 finanalyst suppose i have code put into a module that is in the same directory as the script
17:52 szabgab or rather, I am sure I don't know what it is :-)
17:52 finanalyst i call the code 'local-module.pm'
17:52 szabgab than that is exactly what you need :-)
17:53 Sewi Oh, I don't care if it changes when I open a file from another project in one project's Padre instance (which is rare), but within a project, I want it to stay.
17:53 szabgab the above code extract the dirname() from the path to your script
17:53 szabgab and puts that path into @*INC
17:53 Sewi For things like Padre, you usually never work on a file, you nearly always work on a project.
17:53 finanalyst will the syntax checker recognise the BEGIN block?
17:53 szabgab or ate least that's what I hope it does :-)
17:53 PerlJam Sewi: the problem  (as I see it) is that a "project" isn't well-defined enough.
17:54 szabgab oh the problem is the syntax checker, not the "run this script F5" ?
17:54 szabgab and maybe yes, I have no idea
17:54 Sewi Project is a collection of files sharing a common project dir (currently). The project dir is identified by a padre.yml or Makefile.PL (which isn't best but all we have atm)
17:54 szabgab and azawawi is probably watching Stargate so we can't expect him any time soon :-)
17:55 Sewi PerlJam: I don't say: "don't do it", I just say: "make it configurable as you do a big change to the default/current way"
17:57 PerlJam Sewi: oh, I understand that.  I'm just trying to also understand your point of view on what you think some configuration options should be and why
17:57 finanalyst szabgab: the problem is the syntax checker and F5
17:58 szabgab I guess at least F5 should work this way
17:58 Sewi PerlJam: I agree that many configuration options make a program more complex. But every time we change the long-known default, we should consider it.
17:59 Sewi PerlJam: How many copies of Padre do you usually run at the same time?
17:59 PerlJam one.
18:01 Sewi I'm running at least three: One for my current project, one for a neverending project, one for Padre (source). Plus one if I'm working on a project or file or module where work is finished shortly (minor changes, etc.) and plus one while I'm developing on Padre where I test my changes.
18:04 finanalyst szabgab: F5 does not work with the code you suggested, even if included in a BEGIN {}
18:05 finanalyst If I set PERL6LIB to /full/path F5 works, but syntax checker does not work
18:05 Hyppolit #694: Directory browser changes unpredictably (new enhancement) [ http://padre.perlide.org/trac/ticket/694 ]
18:06 Sewi PerlJam: Are you sure this is no bug?
18:07 PerlJam Sewi: no, I'm not
18:08 PerlJam But I'm also not sure it *is* a bug.
18:08 PerlJam In anycase though, it *would* be an enhancement for me :)
18:08 Sewi I just tried and the directory tree including open/closed dirs seem to be bound to the project.
18:08 Sewi The files you're switching through, are they from the same project?
18:09 PerlJam I have a "project" (no Makefile.PL or anything though, so not a perl project proper) that includes a Catalyst app in a subdir.  I switch between working on the Catalyst app and on the other components of my project
18:10 Sewi Could you try to place an empty padre.yml file in your project "root" dir?
18:10 PerlJam sure.
18:10 Sewi Maybe another padre.yml in the catalyst-app-subdir would solve the issue
18:11 PerlJam maybe padre conforming to my idea of a project would too :)
18:14 PerlJam Actually, just thinking about the catalyst app for a second ..  I spend a lot of time in MyApp/lib/MyApp/Controller  and MyApp/root    I'd really like for when I'm editing one of my templates to only see the directory structure rooted at MyApp/root  and when I'm editing the controllers, I'd like to only see it rooted at MyApp/lib/MyApp/Controller
18:16 szabgab finanalyst, sorry I ran out of these tuits for now, I am spamming pm group leaders, that needs less brain power :-)
18:17 finanalyst i am trying to open a padre ticket with example module and script
18:17 szabgab have you already registered ?
18:17 finanalyst no dont think so
18:17 finanalyst how?
18:17 szabgab opening ...
18:18 szabgab finanalyst, http://padre.perlide.org/trac/register
18:18 finanalyst sorry yes. i have registered
18:18 finanalyst must have done it a while ago
18:19 szabgab np, closing
18:19 finanalyst i have been looking at padre for a while, getting frustrated, going away, coming back
18:19 finanalyst well done for all your persistence!
18:20 szabgab and you for coming back :-)
18:35 garu Sewi, szabgab you guys know of a way to force a directory root for Padre's file browser tree? If so, I could rig the Catalyst Plugin to do what PerlJam is asking
18:35 garu ('afternoon, btw :)
18:35 Sewi hi garu
18:36 Sewi Set the project dir.
18:36 garu szabgab, just replied to your mail on brazil's pm groups :)
18:36 szabgab :-)
18:37 garu Sewi, yeah, but there would be a different project dir for each file inside the larger Cat project
18:37 garu I'll see if I can come up with something
18:39 PerlJam garu++
18:42 garu PerlJam, any others requests? :)
18:44 PerlJam I noticed some weirdness with the tabs the other day, but I haven't reproduced it since.  :-)
18:45 PerlJam I had about 6 tabs open and was cycling through them with ctrl-tab and I was surprised when I was on the second to last tab and it cycled to the first tab and then cycled to the last tab and then to the second tab.
18:45 garu weird
18:45 PerlJam I figure it had something to do with me reordering tabs, but like I said, I haven't been able to reproduce it. (not that I've tried real hard)
18:45 garu hey, at least you didn't went on closing tabs too fast
18:46 garu makes padre crash :)
18:46 garu or at least did last time I tried
18:47 PerlJam Padre mostly crashes for me when I try using plugins.  I don't know if it's just that I have too many enabled or that they or poorly written or that padre has changed but they haven't or what.  It would be nice if  the plugins could be sandboxed somehow
18:48 PerlJam (as long as I'm random wishing right now  :)
18:48 PerlJam anyway, back to actually *using* padre rather than  talking about it.
18:48 garu :)
18:52 sjn joined #padre
18:55 szabgab PerlJam, at least they should be wrapped in eval blocks, that still can't stop all the crashes but at least some
19:05 Hyppolit #695: Padre not loading perl6 modules in cwd. (new defect) [ http://padre.perlide.org/trac/ticket/695 ]
19:13 Haarg joined #padre
19:50 kthakore joined #padre
20:34 biz joined #padre
20:35 biz hello all. just tried to install Padre and hanging up on Alien::WxWidgets (not able to fetch this tarball fetching from: http://prdownloads.sourceforge.net/​wxwindows/wxWidgets-2.8.10.tar.gz)
20:36 Sewi biz: hi, did you try the CPAN installation of it?
20:36 biz yeah
20:36 szabgab try to fetch that file manually, wget
20:36 biz k
20:36 Sewi The URL works for me
20:36 szabgab assuming you are not on windows, right ?
20:36 biz ahh, just check ubunutu: libalien-wxwidgets-perl - building, finding and using wxWidgets binaries
20:37 * Sewi &
20:38 biz yeah the ubuntu pkg fixed it, so all good now.  didn't think of this before
20:39 szabgab but we know that it is a weak point for others
20:39 szabgab e.g. older Ubuntu needs the newer wx
20:40 biz ah, i could see that
22:07 submersible joined #padre
22:25 patspam joined #padre
22:40 Ryan52 szabgab, biz: I run padre on 2.8.8 (some of the time) perfectly fine.
22:41 Ryan52 szabgab, biz: err. I meant 2.8.7.
22:41 biz Ryan52: I'm good, I need to ramp up using it full time, but I really like what I see so far.
23:17 dolmen joined #padre

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