Re: Leo 4.6 beta 2 released

2009-06-24 Thread Edward K. Ream
On Tue, Jun 23, 2009 at 7:55 PM, Graham Chiu compkar...@gmail.com wrote:


 Except that now I am getting structure comments appearing in my
 tangled code even with the @silent directive before my @root directive

 eg: I now see amongst my tangled code

 #  Rebol Header  (1 of 3)

 I didn't see this with 4.5.1 final which is what I have been using.


Hmm. I don't recall changing anything significant in the tangle code for a
long time, and I have essentially no memory of the details of the code.
There doesn't seem to be a relevant setting in leoSettings.leo.

So let's look at the code in leoTangle.py  Tangle pass 2 does the output.
put_section looks like the place where the comment will be written.

Yes, I see a section called  put the section name in a comment .  It is
called like this:

if self.print_mode != silent:
 Put the section name in a comment 

Lets look again at where print_mode is set.  Now we are getting somewhere.
It is inited to verbose in an init section. Let's look further.  By happy
chance, I see print_mode_changed in tangle.scanAllDirectives.

This is the answer: I rewrote scanAllDirectives, and the init of print_mode
got deleted.  I'll fix this for the next release.  I'll probably have to dig
back through the archives to discover how users set it.  Or maybe read the
docs :-)

Edward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-24 Thread Ville M. Vainio

On Wed, Jun 24, 2009 at 3:55 AM, Graham Chiucompkar...@gmail.com wrote:

 Except that now I am getting structure comments appearing in my
 tangled code even with the @silent directive before my @root directive

Out of curiosity - why are you using @root  tangling instead of @nosent?

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-24 Thread Edward K. Ream
On Wed, Jun 24, 2009 at 8:43 AM, Ville M. Vainio vivai...@gmail.com wrote:


 Out of curiosity - why are you using @root  tangling instead of @nosent?


@root combined with @unit is significantly more flexible than @thin.

Anyway, please don't talk Graham out of using @root until all bugs are fixed
:-)

Edward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-24 Thread Edward K. Ream


 On Tue, Jun 23, 2009 at 7:55 PM, Graham Chiu compkar...@gmail.com wrote:

  Except that now I am getting structure comments appearing in my
  tangled code even with the @silent directive before my @root directive

  eg: I now see amongst my tangled code

  #  Rebol Header  (1 of 3)

  I didn't see this with 4.5.1 final which is what I have been using.

Fixed on the trunk at rev 2089.

All unit tests pass, including three new or improved unit tests.  In
fact there was a unit test of c.tangleCommands.scanAllDirectives, but
naturally it did not think to test the print_mode ivar.

Edward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-24 Thread Graham Chiu

Thanks .. works now.

On Thu, Jun 25, 2009 at 6:31 AM, Edward K. Reamedream...@gmail.com wrote:


 On Tue, Jun 23, 2009 at 7:55 PM, Graham Chiu compkar...@gmail.com wrote:

  Except that now I am getting structure comments appearing in my
  tangled code even with the @silent directive before my @root directive

  eg: I now see amongst my tangled code

  #  Rebol Header  (1 of 3)

  I didn't see this with 4.5.1 final which is what I have been using.

 Fixed on the trunk at rev 2089.

 All unit tests pass, including three new or improved unit tests.  In
 fact there was a unit test of c.tangleCommands.scanAllDirectives, but
 naturally it did not think to test the print_mode ivar.

-- 
Graham Chiu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-23 Thread Edward K. Ream
On Mon, Jun 22, 2009 at 3:59 PM, Graham Chiu compkar...@gmail.com wrote:


 How do I get Qt to load?


Oops.  I forgot to tell how to install Qt in the installation notes.

For Windows, install PyQt using the binary installer at
http://www.riverbankcomputing.co.uk/software/pyqt/download

Edward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-23 Thread Ville M. Vainio

On Tue, Jun 23, 2009 at 4:06 PM, Edward K. Reamedream...@gmail.com wrote:

 You can do this by hand if using bzr is inconvenient for you.

 I improved the single unit test for @root so that it actually tests
 tangling!

Since @root  tangling is used relatively little (and hence is badly
tested, it appears), I think it's time to ask what are @root nodes
good for, with the eye on showing some deprecation warnings
suggesting users to switch to @thin/@nosent nodes instead.

Of course the support for @root is still needed (because people have
documents with @root), but it may be wise to advice against them early
enough.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-23 Thread Graham Chiu

Thanks ... both Qt and tangling are now working.

On Wed, Jun 24, 2009 at 1:06 AM, Edward K. Reamedream...@gmail.com wrote:


 On Mon, Jun 22, 2009 at 4:02 PM, Graham Chiu compkar...@gmail.com wrote:

 Oh yeah  still won't tangle for me.

 Fixed on the trunk at rev 2083.

 My apologies for letting this bug go for so long.  Somehow it slipped
 through the cracks.

 The fix is apparent from the traceback:

 File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 3393, in standardize_name
    name = name.lower().name.replace('\t',' ').replace('  ',' ')

 Change this line to:

     name = name.lower().replace('\t',' ').replace('  ',' ')

-- 
Graham Chiu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-23 Thread Graham Chiu

Except that now I am getting structure comments appearing in my
tangled code even with the @silent directive before my @root directive

eg: I now see amongst my tangled code

#  Rebol Header  (1 of 3)

I didn't see this with 4.5.1 final which is what I have been using.

On Wed, Jun 24, 2009 at 9:37 AM, Graham Chiucompkar...@gmail.com wrote:
 Thanks ... both Qt and tangling are now working.

 On Wed, Jun 24, 2009 at 1:06 AM, Edward K. Reamedream...@gmail.com wrote:


 On Mon, Jun 22, 2009 at 4:02 PM, Graham Chiu compkar...@gmail.com wrote:

 Oh yeah  still won't tangle for me.

 Fixed on the trunk at rev 2083.

 My apologies for letting this bug go for so long.  Somehow it slipped
 through the cracks.

 The fix is apparent from the traceback:

 File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 3393, in standardize_name
    name = name.lower().name.replace('\t',' ').replace('  ',' ')

 Change this line to:

     name = name.lower().replace('\t',' ').replace('  ',' ')

 --
 Graham Chiu




-- 
Graham Chiu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Leo 4.6 beta 2 released

2009-06-22 Thread Edward K. Ream

B2 is finally here:
https://sourceforge.net/project/showfiles.php?group_id=3458package_id=29106release_id=691736

The highlights:

- Cached external files *greatly* reduces the time to load .leo files.
- Leo now features a modern Qt interface by default.
  Leo's legacy Tk interface can also be used.
- New --config, --file and --gui command-line options.
- Leo tests syntax of .py files when saving them.
- Leo can now open any kind of file into @edit nodes.
- @auto-rst nodes support round-tripping of reStructuredText files.
- Properties of commanders, positions and nodes simplify programming.
- Improved Leo's unit testing framework.
- Leo now requires Python 2.4 or later.
- Dozens of small improvements and bug fixes.

Please report any problem immediately.

The rc1 release is scheduled in about 2 weeks.  There will be a beta 3
release only if significant new problems are reported.

Many thanks to all who have contributed so much to Leo 4.6.

Edward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-22 Thread Terry Brown

On Mon, 22 Jun 2009 09:18:31 -0700 (PDT)
Edward K. Ream edream...@gmail.com wrote:

 Please report any problem immediately.

It's not terrible, but it would be nice to squish

https://bugs.launchpad.net/leo-editor/+bug/349027

Nice work on the recent surge of bug splatting, BTW.

Cheers -Terry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-22 Thread Edward K. Ream
On Mon, Jun 22, 2009 at 11:30 AM, Terry Brown terry_n_br...@yahoo.comwrote:


 On Mon, 22 Jun 2009 09:18:31 -0700 (PDT)
 Edward K. Ream edream...@gmail.com wrote:

  Please report any problem immediately.

 It's not terrible, but it would be nice to squish

 https://bugs.launchpad.net/leo-editor/+bug/349027


My plan is to fix this and all other bugs for b3/rc1.

Edward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-22 Thread Graham Chiu

How do I get Qt to load?


reading settings in C:\Leo-4-6-b2\leo\config\leoSettings.leo
Using menus from leoSettings.leo
reading C:\Users\Graham\.leo\.leoRecentFiles.txt

qtGui.py: can not import Qt

Can not import qtGui from plugin qtGui
can not load enabled plugin: qtGui
Traceback (most recent call last):

  File C:\Leo-4-6-b2\leo\core\leoPlugins.py, line 425, in loadOnePlugin
init_result = result.init()

  File C:\Leo-4-6-b2\leo\plugins\plugins_menu.py, line 248, in init
if g.app.gui.guiName() not in (tkinter,'qt'):

AttributeError: 'NoneType' object has no attribute 'guiName'


qtGui.py: can not import Qt

Can not import qtGui from plugin qtGui
can not load enabled plugin: qtGui
qtGui created in C:\Leo-4-6-b2\leo\plugins\open_with.pyc
Traceback (most recent call last):

  File C:\Leo-4-6-b2\leo\core\leoPlugins.py, line 425, in loadOnePlugin
init_result = result.init()

  File C:\Leo-4-6-b2\leo\plugins\open_with.py, line 68, in init
g.enableIdleTimeHook(idleTimeDelay=1000) # Check every second.

  File C:\Leo-4-6-b2\leo\core\leoGlobals.py, line 3473, in enableIdleTimeHook
g.app.gui.setIdleTimeHook(g.idleTimeHookHandler)

AttributeError: 'NoneType' object has no attribute 'setIdleTimeHook'


qtGui.py: can not import Qt

Can not import qtGui from plugin qtGui
can not load enabled plugin: qtGui
qtGui created in C:\Leo-4-6-b2\leo\plugins\mod_scripting.pyc
loaded plugin: tkGui doHook,doPlugins,loadHandlers,loadOnePlugin,init,createTkGu
i
tkGui created in C:\Leo-4-6-b2\leo\plugins\UNL.pyc
Can not load c:\aspell\bin\aspell-15.dll
file not found: C:\Users\Graham\.leo\workbook.leo


On Tue, Jun 23, 2009 at 5:59 AM, Edward K. Reamedream...@gmail.com wrote:


 On Mon, Jun 22, 2009 at 11:30 AM, Terry Brown terry_n_br...@yahoo.com
 wrote:

 On Mon, 22 Jun 2009 09:18:31 -0700 (PDT)
 Edward K. Ream edream...@gmail.com wrote:

  Please report any problem immediately.

 It's not terrible, but it would be nice to squish

 https://bugs.launchpad.net/leo-editor/+bug/349027

 My plan is to fix this and all other bugs for b3/rc1.

 Edward

 




-- 
Graham Chiu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.6 beta 2 released

2009-06-22 Thread Graham Chiu

Oh yeah  still won't tangle for me.

exception executing command
Traceback (most recent call last):
  File C:\Leo-4-6-b2\leo\core\leoCommands.py, line 387, in doCommand
val = command(event)
  File C:\Leo-4-6-b2\leo\core\leoCommands.py, line 1476, in tangleAll
c.tangleCommands.tangleAll()
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 604, in tangleAll
ok = self.tangleTree(p,dont_report_errors)
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 723, in tangleTree
self.tanglePass1(p) # sets self.p
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 671, in tanglePass1
self.skip_body(p)
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 1142, in skip_body
k, code = self.skip_code(s,j)
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 1217, in skip_code
i, done = self.handle_newline(s,i)
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 997, in handle_newline
self.st_enter_section_name(ref,None,None,unused_parts_flag)
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 2078, in
st_enter_section_name
return self.st_enter(name,code,doc,multiple_parts_flag,not_root_name)
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 2018, in st_enter
section = self.st_lookup(name,is_root_flag)
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 2088, in st_lookup
key = self.standardize_name(name)
  File C:\Leo-4-6-b2\leo\core\leoTangle.py, line 3393, in standardize_name
name = name.lower().name.replace('\t',' ').replace('  ',' ')
AttributeError: 'unicode' object has no attribute 'name'


-- 
Graham Chiu

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to 
leo-editor+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---