Re: OPI

2014-09-17 Thread Edward K. Ream
On Wednesday, September 10, 2014 5:34:02 PM UTC-5, Edward K. Ream wrote:

 On Tue, Aug 19, 2014 at 3:24 PM, Segundo Bob segundo...@gmail.com 
 wrote: 


 When I hit enter after selecting selectPosition, I get the following 
  error message in the log pane: 
  
  Unexpected exception... 
  Traceback (most recent call last): 
File /home/ldi/git/leo-editor/leo/core/leoUndo.py, line 1323, in 
  setUndoTypingParams 
  old_start,old_end = oldSel 
  TypeError: 'NoneType' object is not iterable 


I have never been able to reproduce this, but clearly oldSel was None 
during the crash.  A recent rev adds a guard that is supposed to fix this 
problem.  Please let me know if it occurs again.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-09-10 Thread Edward K. Ream
On Tue, Aug 19, 2014 at 3:24 PM, Segundo Bob segundo...@gmail.com wrote:
 On 08/19/2014 11:48 AM, 'Terry Brown' via leo-editor wrote:

 Note than you can do this(*) in Leo already:

c.selctrl-space

 shows completions, so I select one then

c.selectPositionctrl-space?enter


 When I hit enter after selecting selectPosition, I get the following
 error message in the log pane:

 Unexpected exception...
 Traceback (most recent call last):
   File /home/ldi/git/leo-editor/leo/core/leoUndo.py, line 1323, in
 setUndoTypingParams
 old_start,old_end = oldSel
 TypeError: 'NoneType' object is not iterable

Thanks for this report.  I'll fix this immediately.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread Edward K. Ream
On Fri, Aug 15, 2014 at 10:54 AM, Kent Tenney kten...@gmail.com wrote:
 https://srclib.org/

 Quite impressive programmer tool

Thanks Kent.  This is the new direction for Leo: rather than doing my
own research, I'll be looking at integrating tools like srclib, Jedi
and rope into Leo.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread Kent Tenney
Sounds like a brilliant direction to me.
So many broad-shouldered giants out there ...

On Tue, Aug 19, 2014 at 3:53 AM, Edward K. Ream edream...@gmail.com wrote:
 On Fri, Aug 15, 2014 at 10:54 AM, Kent Tenney kten...@gmail.com wrote:
 https://srclib.org/

 Quite impressive programmer tool

 Thanks Kent.  This is the new direction for Leo: rather than doing my
 own research, I'll be looking at integrating tools like srclib, Jedi
 and rope into Leo.

 Edward

 --
 You received this message because you are subscribed to the Google Groups 
 leo-editor group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to leo-editor+unsubscr...@googlegroups.com.
 To post to this group, send email to leo-editor@googlegroups.com.
 Visit this group at http://groups.google.com/group/leo-editor.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread Fidel N
Just checked again the link, and the video.
Cant wait to have that coded into Leo, seems so useful!!

On Tuesday, August 19, 2014 2:22:33 PM UTC+2, Kent Tenney wrote:

 Sounds like a brilliant direction to me. 
 So many broad-shouldered giants out there ... 

 On Tue, Aug 19, 2014 at 3:53 AM, Edward K. Ream edre...@gmail.com 
 javascript: wrote: 
  On Fri, Aug 15, 2014 at 10:54 AM, Kent Tenney kte...@gmail.com 
 javascript: wrote: 
  https://srclib.org/ 
  
  Quite impressive programmer tool 
  
  Thanks Kent.  This is the new direction for Leo: rather than doing my 
  own research, I'll be looking at integrating tools like srclib, Jedi 
  and rope into Leo. 
  
  Edward 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups leo-editor group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an email to leo-editor+...@googlegroups.com javascript:. 
  To post to this group, send email to leo-e...@googlegroups.com 
 javascript:. 
  Visit this group at http://groups.google.com/group/leo-editor. 
  For more options, visit https://groups.google.com/d/optout. 


-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread 'Terry Brown' via leo-editor
On Tue, 19 Aug 2014 10:56:37 -0700 (PDT)
Fidel N fidelpe...@gmail.com wrote:

 Just checked again the link, and the video.
 Cant wait to have that coded into Leo, seems so useful!!

Note than you can do this(*) in Leo already:

  c.selctrl-space

shows completions, so I select one then

  c.selectPositionctrl-space?enter

This second step shows the single completion, and, when I hit the '?',
prints, in the log window:

  c.selectPosition
  args:
   self,  p
  keyword args:
  enableRedrawFlag = True
  
  Select a new position

The args listing is new, as is the ability to operate on expressions
evaluated with vs-eval from the valuespace plugin, e.g.

import argparse
parser = argparse.ArgumentParser()
parser.parse_argsctrl-space?enter

prints

parser.parse_args
args:
 self
keyword args:
args = None
namespace = None

No docstring for u'parser.parse_args'

(*) by this I mean what I describe here, not everything srclib does :)

Cheers -Terry
   
 On Tuesday, August 19, 2014 2:22:33 PM UTC+2, Kent Tenney wrote:
 
  Sounds like a brilliant direction to me. 
  So many broad-shouldered giants out there ... 
 
  On Tue, Aug 19, 2014 at 3:53 AM, Edward K. Ream edre...@gmail.com 
  javascript: wrote: 
   On Fri, Aug 15, 2014 at 10:54 AM, Kent Tenney kte...@gmail.com 
  javascript: wrote: 
   https://srclib.org/ 
   
   Quite impressive programmer tool 
   
   Thanks Kent.  This is the new direction for Leo: rather than
   doing my own research, I'll be looking at integrating tools like
   srclib, Jedi and rope into Leo. 
   
   Edward 
   
   -- 
   You received this message because you are subscribed to the
   Google 
  Groups leo-editor group. 
   To unsubscribe from this group and stop receiving emails from it,
   send 
  an email to leo-editor+...@googlegroups.com javascript:. 
   To post to this group, send email to leo-e...@googlegroups.com 
  javascript:. 
   Visit this group at http://groups.google.com/group/leo-editor. 
   For more options, visit https://groups.google.com/d/optout. 
 
 

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread Kent Tenney
How cool!

On Tue, Aug 19, 2014 at 1:48 PM, 'Terry Brown' via leo-editor
leo-editor@googlegroups.com wrote:
 On Tue, 19 Aug 2014 10:56:37 -0700 (PDT)
 Fidel N fidelpe...@gmail.com wrote:

 Just checked again the link, and the video.
 Cant wait to have that coded into Leo, seems so useful!!

 Note than you can do this(*) in Leo already:

   c.selctrl-space

 shows completions, so I select one then

   c.selectPositionctrl-space?enter

 This second step shows the single completion, and, when I hit the '?',
 prints, in the log window:

   c.selectPosition
   args:
self,  p
   keyword args:
   enableRedrawFlag = True

   Select a new position

 The args listing is new, as is the ability to operate on expressions
 evaluated with vs-eval from the valuespace plugin, e.g.

 import argparse
 parser = argparse.ArgumentParser()
 parser.parse_argsctrl-space?enter

 prints

 parser.parse_args
 args:
  self
 keyword args:
 args = None
 namespace = None

 No docstring for u'parser.parse_args'

 (*) by this I mean what I describe here, not everything srclib does :)

 Cheers -Terry

 On Tuesday, August 19, 2014 2:22:33 PM UTC+2, Kent Tenney wrote:
 
  Sounds like a brilliant direction to me.
  So many broad-shouldered giants out there ...
 
  On Tue, Aug 19, 2014 at 3:53 AM, Edward K. Ream edre...@gmail.com
  javascript: wrote:
   On Fri, Aug 15, 2014 at 10:54 AM, Kent Tenney kte...@gmail.com
  javascript: wrote:
   https://srclib.org/
  
   Quite impressive programmer tool
  
   Thanks Kent.  This is the new direction for Leo: rather than
   doing my own research, I'll be looking at integrating tools like
   srclib, Jedi and rope into Leo.
  
   Edward
  
   --
   You received this message because you are subscribed to the
   Google
  Groups leo-editor group.
   To unsubscribe from this group and stop receiving emails from it,
   send
  an email to leo-editor+...@googlegroups.com javascript:.
   To post to this group, send email to leo-e...@googlegroups.com
  javascript:.
   Visit this group at http://groups.google.com/group/leo-editor.
   For more options, visit https://groups.google.com/d/optout.
 


 --
 You received this message because you are subscribed to the Google Groups 
 leo-editor group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to leo-editor+unsubscr...@googlegroups.com.
 To post to this group, send email to leo-editor@googlegroups.com.
 Visit this group at http://groups.google.com/group/leo-editor.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread Segundo Bob

On 08/19/2014 11:48 AM, 'Terry Brown' via leo-editor wrote:

Note than you can do this(*) in Leo already:

   c.selctrl-space

shows completions, so I select one then

   c.selectPositionctrl-space?enter


When I hit enter after selecting selectPosition, I get the following 
error message in the log pane:


Unexpected exception...
Traceback (most recent call last):
  File /home/ldi/git/leo-editor/leo/core/leoUndo.py, line 1323, in 
setUndoTypingParams

old_start,old_end = oldSel
TypeError: 'NoneType' object is not iterable

My test system is:
Xubuntu32 14.04
Leo Log Window
Leo 4.11 final, build 20140818173142, Mon Aug 18 17:31:42 CDT 2014
Git repo info: branch = master, commit = 83f4270014f4
Python 2.7.6, PyQt version 4.8.6
linux2

--
Segundo Bob
segundo...@gmail.com

--
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread 'Terry Brown' via leo-editor
On Tue, 19 Aug 2014 13:24:35 -0700
Segundo Bob segundo...@gmail.com wrote:

 On 08/19/2014 11:48 AM, 'Terry Brown' via leo-editor wrote:
  Note than you can do this(*) in Leo already:
 
 c.selctrl-space
 
  shows completions, so I select one then
 
 c.selectPositionctrl-space?enter
 
 When I hit enter after selecting selectPosition, I get the

It would have to be c.selectPosition... I guess I'm not sure where
you're getting that.

You can also just type

   c.selecctrl-spacearrow-key to method of interest?

Oh, I have 

  @bool use_qcompleter = True

in myLeoSettings.leo, maybe that's it?

Cheers -Terry

 following error message in the log pane:
 
 Unexpected exception...
 Traceback (most recent call last):
File /home/ldi/git/leo-editor/leo/core/leoUndo.py, line 1323, in 
 setUndoTypingParams
  old_start,old_end = oldSel
 TypeError: 'NoneType' object is not iterable
 
 My test system is:
 Xubuntu32 14.04
 Leo Log Window
 Leo 4.11 final, build 20140818173142, Mon Aug 18 17:31:42 CDT 2014
 Git repo info: branch = master, commit = 83f4270014f4
 Python 2.7.6, PyQt version 4.8.6
 linux2
 

-- 
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread Segundo Bob

On 08/19/2014 01:49 PM, 'Terry Brown' via leo-editor wrote:

Oh, I have

   @bool use_qcompleter = True


Probably not.  print-settings tells me that I also have

useqcompleter = True

--
Segundo Bob
segundo...@gmail.com

--
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: OPI

2014-08-19 Thread Segundo Bob
The completion and the function signature help work for me as you 
described, but I also get the report of the unexpected exception.


You seem to have concluded that I only saw the unexpected exception. 
Sorry I misled you.


--
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.