Camelia, the Perl 6 bug

IRC log for #padre, 2010-11-04

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

All times shown according to UTC.

Time Nick Message
00:24 kyanardag joined #padre
01:31 GabrielVieira left #padre
01:38 azawawi joined #padre
01:38 azawawi hi
01:38 azawawi Alias: ping
01:41 Alias hi
01:43 azawawi i've been looking at the wxwidgets scintilla contrib codebase
01:44 azawawi i have this todo that is bugging me a lot... the old scintilla package...
01:45 azawawi do you think it would 'ok' to take out some of the useful stuff there and make a proper Wx::STC::Perl cpan module... ?
01:45 azawawi since it is licensed under wxwindows and gpl licenses that is
01:46 azawawi i was thinking of implementing the stuff that we need first in Padre::Wx::Editor and going from there
01:46 azawawi and also drop the non-Perl method naming...
01:47 azawawi what do u think?
01:48 Alias What are you going to do? Implement a standalone distro for a new scintilla?
01:48 Alias There's a big problem with the current Editor and Document trees
01:49 azawawi with an updated Wx and scintilla integration...
01:49 Alias The functionality of both is mixed together, the abstraction is horribly unclean
01:49 Alias It's on my list of rewrites at some point
01:50 azawawi yeah but the plumbing to wxStyledControl is the same except for method names....
01:50 azawawi wxwidgets is moving too slow for us
01:50 Alias Your biggest problem is the mixed functionality
01:50 Alias And I really don't know what to do about that
01:50 Alias I would like to have Editor(Document)
01:51 azawawi but in the end we will be using a scintilla widget as a base, right?...
01:52 Alias Which I think is kind of essential
01:52 Alias But then we store the actual bytes at run-time inside of Editor
01:52 Alias Well, not necesarily
01:52 Alias Lets say we do project-based indenting of style or auto-magic code rewriting
01:52 Alias Why should that magic only apply to the files that are open
01:52 azawawi hmmm
01:53 Alias So we either need to 1. Abstract the document storage entirely 2. Use transient invisible editor panels
01:53 Alias Which makes it almost more like Document(Editor)
01:53 Alias But then how is the editor supposed to trigger document-altering stuff
01:53 Alias A heirachal abstraction doesn't seem to really work either way
01:53 Alias So I'm not sure how to progress
01:54 Alias Maybe you could do Editor(Document(Editor))
01:54 Alias The editor creates the Document, passing the document itself as the store
01:54 Alias And the IDE could also create a Document with a native Perl in-memory store
01:55 Alias Whatever the store thing is, it needs to support basic things like getting and setting text
01:56 azawawi im also confused to tell you the truth :)
01:56 Alias ?
01:56 Alias The truth about what?
01:57 pece left #padre
01:57 azawawi i wanted to wrap an up2date scintilla... plain and simple :)
01:57 azawawi that's my goal for now
01:58 azawawi the licensing stuff is really confusing me
01:58 Alias The wrapping should be fine yes?
01:59 Alias Simple drop-in replacement?
01:59 Alias Same or near-same methods
01:59 azawawi would it be ok to take out stuff from wxwidgets/contrib and start a new up2date scintilla module
01:59 Alias I guess
01:59 azawawi yeah
01:59 Alias It's the attempt to clean up the APIs around the widget that's gunna be hard
01:59 Alias And requires more thought
02:00 azawawi the wxwidgets scintilla wrapping is no picnic either
02:00 Alias I know, but it's mostly just work yes?
02:00 azawawi yeah
02:00 Alias BTW, can you look into something for me
02:01 azawawi sure if i can :)
02:01 Alias Currently, when you do a programatic insertion of overwrite of text into a widget, the scroll position snaps automatically to wherever the text went
02:01 Alias insertion OR overwrite
02:01 Alias I want to know if that can be disabled
02:01 azawawi ah ok...
02:01 * azawawi takes a look at scintilla docs
02:02 Alias So you can change content without having to 1. Remember where the scroll was 2. Open an update lock 3. Write the text 4. Reset the scroll bar
02:02 Alias I have to do the same thing in the directory tree
02:02 Alias And it sucks massive balls
02:02 azawawi http://www.scintilla.org/Scin​tillaDoc.html#SCI_INSERTTEXT
02:02 Alias And I'm sure slows it down hugely
02:02 * azawawi checks wxwidgets implementation now
02:03 azawawi one of of the things that confuses me... is the use of numbers instead of the actual constant in scintilla.h
02:04 azawawi constant=constants...
02:04 azawawi #define SCI_INSERTTEXT 2003
02:04 azawawi most implementations on cpan write it as 2003 instead of using that define...
02:05 azawawi those defines are autogenerated from an iface file...
02:06 azawawi SCI_INSERTTEXT = wxStyledTextCtrl::InsertText
02:06 Alias Wonder what I'm using then
02:06 azawawi AppendText?
02:07 Alias Quite probably
02:08 azawawi it may also be a bug that is fixed in the latest...
02:08 Alias Maybe
02:10 Steffen_ joined #padre
02:11 GabrielVieira joined #padre
02:11 azawawi i'll grab their codebase, modify it into a new module and see what happens :)
02:11 azawawi and include credits to them :)
02:12 azawawi scintilla was my actual first open source contribution... pure C++ :)
02:13 azawawi my code got reviewed by neil the scintilla author... like 3 memory leaks fixed on the first review :)
02:15 Steffen left #padre
02:19 * azawawi gym &
02:19 azawawi left #padre
03:12 |Sno| joined #padre
03:18 Sno| left #padre
03:23 kanishka joined #padre
03:54 SentiniX joined #padre
03:55 SentiniX garu
03:55 SentiniX =)
04:39 asarch joined #padre
05:14 garu SentiniX: hi :)
05:17 garu oO
05:17 garu azawawi++
05:25 SentiniX malz ae garu tava formatando o pc de um cliente aqui e num vi mais o irc aki, abra��o manow, s� queria te comprimentar velinho :D abra�o
05:26 SentiniX left #padre
05:56 pece joined #padre
06:00 kaare joined #padre
06:02 pece left #padre
06:05 pece joined #padre
06:13 asarch left #padre
06:40 Sewi joined #padre
06:40 kanishka left #padre
07:30 [Sno] left #padre
08:20 GabrielVieira left #padre
08:37 pece2 left #padre
08:41 pece2 joined #padre
08:46 Maltus joined #padre
09:03 marcela joined #padre
09:32 Steffen_ left #padre
10:00 Hyppolit svn: r13012 | sblandin++ | http://padre.perlide.org/trac/changeset/13012
10:00 Hyppolit Updated Padre::Plugin::Mojolicious italian translation
10:00 Hyppolit trunk/Padre-Plugin-Mojolicious/share/locale/
10:31 erez joined #padre
11:10 daxim joined #padre
11:14 * dandv hopes that instead of more translations, people will work more on getting the debugger to not crash
11:59 patspam joined #padre
11:59 patspam left #padre
12:05 azawawi joined #padre
12:05 azawawi dandv: ping
12:05 azawawi dandv: where is it crashing?
12:06 * azawawi backlogs
12:06 Di-ima left #padre
12:11 dandv hi azawawi, I submitted a bug report about 2 days ago
12:12 azawawi dandv: could you link it please?
12:12 azawawi dandv: what's the bug's number?
12:12 dandv err
12:12 dandv I'd have to refer to my bugs list, http://wiki.dandascalescu.com/bugs
12:12 dandv http://padre.perlide.org/t​rac/query?reporter=~dandv
12:12 dandv 1035
12:13 azawawi thx
12:14 azawawi so stepping over slow operations can cause padre gui to go unresponsive right?
12:15 dandv yes
12:15 * azawawi debugs it...
12:15 dandv but what bugs me most is that it crashes when I start debugging a script that uses Inline::Java, and it can't find some Java class
12:15 dandv when I debug other scripts that fail due to using non-existent modules, Padre survives most of the time
12:16 azawawi really...
12:16 dandv yes, I'll try to get a small script out
12:16 azawawi yeah give me test cases and i'll try to fix them plz
12:16 Di-ima joined #padre
12:17 azawawi it should be running in a task... (thread)
12:17 dandv azawawi: the hanging bug has a code sample, can you repro that one?
12:17 azawawi sleep 10
12:17 azawawi ... :)
12:19 Maltus left #padre
12:20 azawawi the whole Padre::Wx::Debugger needs to be written to run a generic Padre::Task::DebugSomething ...
12:20 azawawi written=re-written
12:28 azawawi dandv: not an easy fix unfortunately...
12:30 * azawawi adds it to his weekend todo
12:31 azawawi dandv: but why Inline::Java...
12:31 azawawi dandv: any test case?
12:31 dandv azawawi: there's a module that requires it
12:32 * azawawi install Inline::Java
12:34 azawawi im going to look at these tonight after movie night :)
12:34 dandv interesting, which movie?
12:34 azawawi dandv: something 3D... :)
12:34 azawawi dandv: dont know... maybe saw, resident evil: afterlife or despecable me...
12:34 azawawi dandv: havent decided yet
12:35 azawawi dandv: i watched the later two before...
12:35 dandv wow violent
12:35 azawawi Inline::Java fails to install on 5.12.1
12:35 azawawi strawberry
12:37 azawawi when you build it with jni extension it fails...
12:38 asarch joined #padre
12:42 dandv azawawi: it failed for me too, I copied it from 5.1-0
12:42 daxim left #padre
12:43 GabrielVieira joined #padre
12:43 azawawi cpanm Inline::Java --verbose and answer [no] to the first question
12:43 dandv azawawi: Step into this to reproduce the crash: "use Finance::InteractiveBrokers::TWS;"
12:44 azawawi dandv: 0.0.6 - Still Alpha since bugs are being found and the interface is changing. But all in all it seems to work quite nicely
12:45 dandv azawawi: what has that 0.0.6 version?
12:46 azawawi dandv: Finance::InteractiveBrokers::TWS POD VERSION...
12:46 azawawi fail to install here
12:46 dandv http://search.cpan.org/~jstrauss/Fi​nance-InteractiveBrokers-TWS-0.1.1/
12:47 dandv it's just the .pm, nothing else
12:47 azawawi load.t failed with "Class com.ib.client.EWrapper not found"
12:47 azawawi make test failure
12:47 dandv good
12:47 dandv I get that failure when debugging with Padre, even though the script, if run from the CLI, works
12:47 dandv so if you debug "use Finance::InteractiveBrokers::TWS;", you should see Padre exiting silently
12:48 azawawi you forced install it?
12:49 azawawi ok i see the crash now
12:52 daxim joined #padre
12:57 azawawi ok it crashed when using the output window...
12:57 azawawi compilation fails for the perl process that is being debugs and Debug::Client does not catch that...
12:58 azawawi Please enable Tools/Preferences/Run parameters/Use external window for execution...
12:58 azawawi to see the error
12:59 azawawi debugs=debugged...
12:59 azawawi dandv:  care to submit a bug? :)
12:59 dandv I think you have more information than me now :)
13:00 dandv but I'll be happy to submit other bugs
13:00 azawawi yeah but i have to go now back to work lol :)
13:00 azawawi dandv: thx :)
13:00 azawawi is this related https://rt.cpan.org/Public​/Bug/Display.html?id=32950 ?
13:01 azawawi nah... ignore
13:01 azawawi where does one get the java libs btw?
13:02 dandv for TWS? they're provided at http://www.interactivebrokers.com/en/cont​rol/standalone_api.php?beta=1&os=unix
13:03 dandv I don't know what that guy is talking about in the bug. the module works with the current Java API
13:03 azawawi dandv: nvm...
13:03 dandv but if you can reproduce the bug, you don't need them
13:03 azawawi dandv: thx for your time :)
13:03 dandv np
13:04 azawawi dandv: and always post even if there isnt anyone ... i usually backlog in the morning/evening...
13:04 azawawi dandv: cya
13:05 azawawi left #padre
13:31 Maltus joined #padre
13:35 om360 joined #padre
13:40 om360 hi,I have already got GUI.pm in lib ,but padre still complaining that "Can't locate Win32/GUI.pm in @INC".How can i add the perl directory in to this array?
13:40 om360 :(
13:41 daxim what do you want to achieve?
13:42 om360_ joined #padre
13:42 edenc left #padre
13:43 om360 I want to use padre as a ide because I love the icon. :)
13:44 om360 and I want to build a program use WIN32::GUI.
13:45 daxim ah, I thought Win32::GUI was part of the core installation on windows, but apparently I misremembered
13:45 om360 The source file run quite well .But if I open the source file use Padre and press F5, padre report this error.
13:45 daxim can you describe how you installed it?
13:46 om360 I installed Win32::GUI through PPM(activePerl).
13:46 daxim okay, then to take padre out of the equation, please run    perl -e'use Win32::GUI; 1'   from the command line to verify this
13:49 om360 perl -e "use Win32::GUI;".Does it should pop up a window ?There is no error appears.
13:49 daxim then it's installed ok
13:50 daxim #padre, does anyone else know what's going on?
13:50 om360 yes ,I just wonder if there is something need to be configed in padre.
13:51 om360 Can't locate Win32/GUI.pm in @INC (@INC contains: C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .)
13:51 om360 Padre didnt try to search C:\perl
13:52 om360 then how to modify @INC?I think this should be the root cause.
13:53 daxim left #padre
13:53 daxim joined #padre
13:53 om360 yes ,I should be configed .I have got the right place.
14:13 kanishka joined #padre
14:29 om360 left #padre
14:48 Maltus left #padre
15:07 kyanardag left #padre
15:25 Maltus joined #padre
15:30 kyanardag joined #padre
15:49 kanishka left #padre
15:56 daxim left #padre
15:58 daxim joined #padre
16:36 dapatrick joined #padre
16:44 om360_ left #padre
17:05 PerlJam left #padre
17:10 zenog joined #padre
17:10 zenog hi all
17:21 toi joined #padre
17:22 zenog hi toi
17:28 * szabgab is saying hi fom Amsterdam
17:35 zenog hi back to Amsterdam!
17:43 Maltus left #padre
17:54 asarch left #padre
18:03 marcela left #padre
18:14 asarch joined #padre
18:26 Steffen joined #padre
18:36 daxim well I'll be amsterdamned.
18:37 Steffen When?
18:37 daxim already happened, ca. 1998
18:37 Steffen Ah :)
19:29 erez_ joined #padre
19:30 erez_ left #padre
19:30 erez_ joined #padre
19:33 erez_ left #padre
19:35 erez_ joined #padre
19:41 daxim left #padre
19:42 patspam joined #padre
19:43 patspam left #padre
19:57 patspam joined #padre
19:57 patspam left #padre
20:00 GabrielVieira left #padre
20:03 patspam joined #padre
20:35 El_Che szabgab: http://www.effectiveperlprogramming.com/blog/759
20:35 El_Che szabgab: wouldn't that be handy as a giveaway at the fosdem devroom?
20:39 kamil_ joined #padre
20:47 patspam left #padre
20:47 Alias left #padre
21:00 toi left #padre
21:02 patspam joined #padre
21:29 GabrielVieira joined #padre
21:37 dapatrick left #padre
22:14 Steffen left #padre
22:26 kamil_ left #padre
22:36 kamil_ joined #padre
22:44 Alias joined #padre
22:45 Hyppolit #1034: New tab opened when debugging script with errors (new defect) [ http://padre.perlide.org/t​rac/ticket/1034#comment:1 ]
22:48 erez_ left #padre
22:56 patspam left #padre
22:57 Hyppolit #1036: Debugged scripts can't find modules in the current directory (new defect) [ http://padre.perlide.org/trac/ticket/1036 ]
22:59 dandv bug 1036 should probably read "Padre should chdir to the script's directory when debugging it"
23:11 Sewi left #padre
23:13 kaare left #padre
23:29 kyanardag left #padre
23:30 ronsavage joined #padre
23:31 ronsavage In V 0.72, I get doubling of file dir name's in the window's title bar. See: http://savage.net.au/padre.file.title.png
23:33 zenog left #padre
23:38 asarch left #padre
23:49 dandv ronsavage: In Tools -> Preferences, Appearance, what do you have in "Window title:" ?
23:56 ronsavage %d/%f. So the %f includes the %d, is that my problem?
23:57 ronsavage Yes, that was it. $many x $thanx;
23:59 ronsavage left #padre

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