Re: Cannot save files added by import script by relative path

2019-10-03 Thread Edward K. Ream
On Thu, Oct 3, 2019 at 4:30 AM gar  wrote:

> On my Windows machine I used official Recursive Import Script to gather
> all source code for the project of interest.
>
...

> But then I tried to save the project and got 'File not found' message for
> every file added.
>

Try adding the "add_path = True" keyword arg to the script.  This puts the
full path to the code in the body text of every generated @file or @clean
node.

The  add_path kwarg is a relatively new addition to the recursive import
code.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1fOnR2K_tKf0hb-3jqfEhSkaY8h8o-LSrA%3Df%3D-byjxxQ%40mail.gmail.com.


Cannot save files added by import script by relative path

2019-10-03 Thread gar
On my Windows machine I used official Recursive Import Script to gather all 
source code for the project of interest.
There were plenty of files, yeah.

Since I am going to work on it, I made new leo project and placed it to the 
same dir where the code actually resides.
Then I assigned relative path like './subfolder' to 'dir_' key from the 
import script.

When I launched it - it did the things well. The tree was gathered.
But then I tried to save the project and got 'File not found' message for 
every file added.

If I perform the same actions but specify absolute path for import - I can 
successfully save the project.
Actually I wish true relative path since I would like to work under this 
code on Linux too.

The only workaround I've foound is to import code by it's absolute path and 
then change the root @path node to relative.
And now I dont know if this is a feature or a bug.


And also another observation: when saving the leo project with plenty of 
imported files for the first time (or when any node deleted from there)
it takes long time to save and most of that time leo is totally 
unresponsive (gui is frozen). It may take more then a minute (in my case)
on a very fast computer with a huge amount of ram.This makes leo wrong tool 
for working with even projects larger then hello world (resulting leo file 
is just 3MB) 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6df37cf9-5302-45a0-a757-07cdbb023270%40googlegroups.com.