Error when saving a file

2014-09-05 Thread Fidel N
Hi, I was trying to save my file (which is only open once), and got this 
error on the log pane, it wont save:

MemoryError

exception executing command

Traceback (most recent call last):

  File D:\Dropbox\INSTALLED\LEO 
EDITOR\leo-editor\leo-editor\leo\core\leoCommands.py, line 567, in doCommand
val = command(event)

  File D:\Dropbox\INSTALLED\LEO 
EDITOR\leo-editor\leo-editor\leo\core\leoCommands.py, line 1880, in save
c.fileCommands.save(c.mFileName)

  File D:\Dropbox\INSTALLED\LEO 
EDITOR\leo-editor\leo-editor\leo\core\leoFileCommands.py, line 1515, in save
ok = self.write_Leo_file(fileName,False) # outlineOnlyFlag

  File D:\Dropbox\INSTALLED\LEO 
EDITOR\leo-editor\leo-editor\leo\core\leoFileCommands.py, line 2029, in 
write_Leo_file
ok = self.writeToFileHelper(fileName,toOPML)

  File D:\Dropbox\INSTALLED\LEO 
EDITOR\leo-editor\leo-editor\leo\core\leoFileCommands.py, line 2086, in 
writeToFileHelper
ok,backupName = self.createBackupFile(fileName)

  File D:\Dropbox\INSTALLED\LEO 
EDITOR\leo-editor\leo-editor\leo\core\leoFileCommands.py, line 2146, in 
createBackupFile
s = f.read()

MemoryError

-- 
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: Error when saving a file

2014-09-05 Thread Fidel N
Find / Replace all is neither working, seems a related problem, since they 
both are memory error.
This error I get in the shell (not the log). Here is the full report:

http://i.imgur.com/h1iwiaQ.png


-- 
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: Error when saving a file

2014-09-05 Thread Fidel N
I have been using both with Dropbox (find replace all and saving files)
ever since I started with Leo, and they never failed

The fact that this is a new error that appeared just after updating Leo,
and c.frame.body.wrapper appears several times on the shell error log,
makes me very inclined to think they are related :)


On Fri, Sep 5, 2014 at 1:19 PM, Edward K. Ream edream...@gmail.com wrote:

 On Fri, Sep 5, 2014 at 2:04 AM, Fidel N fidelpe...@gmail.com wrote:
  Hi, I was trying to save my file (which is only open once), and got this
  error on the log pane, it wont save:
 
  MemoryError

 Hmmm.  The replace-all command is, iirc, undoable, which might, I
 suppose, require huge amounts of memory.

 Also, I see you are running from dropbox, and that might impose it's own
 limits.

 I'll create a script today that will replace body.x with
 body.wrapper.x for all x in dir(WrapperAPI class) except __init__.  It
 will have a safe switch that will report rather than replace.

 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: Error when saving a file

2014-09-05 Thread Edward K. Ream
On Fri, Sep 5, 2014 at 6:54 AM, Fidel N fidelpe...@gmail.com wrote:
 I have been using both with Dropbox (find replace all and saving files) ever
 since I started with Leo, and they never failed

What happens when you do the same replace-all on a rev before the
recent work, say a rev from 29 August?

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: Error when saving a file

2014-09-05 Thread Fidel N
Just been editing the .leo file, removed the node with 200k lines, did the
replace all, and this time it works.
Also, saving files is working again...
And I figured out the reason why c.frame.body was around the replace all
command, is because I was replacing exactly that text... -_-
Thanks for your help Edward


On Fri, Sep 5, 2014 at 3:07 PM, Edward K. Ream edream...@gmail.com wrote:

 On Fri, Sep 5, 2014 at 6:54 AM, Fidel N fidelpe...@gmail.com wrote:
  I have been using both with Dropbox (find replace all and saving files)
 ever
  since I started with Leo, and they never failed

 What happens when you do the same replace-all on a rev before the
 recent work, say a rev from 29 August?

 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: Error when saving a file

2014-09-05 Thread Edward K. Ream
On Fri, Sep 5, 2014 at 12:14 PM, Fidel N fidelpe...@gmail.com wrote:
 Just been editing the .leo file, removed the node with 200k lines, did the
 replace all, and this time it works.

Great :-) Thanks for the confirmation.

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.