Re: New plugin history_tracer

2019-10-03 Thread Brian Theado
Did you actually make a change to your outline? Body edits don't count.
Iirc Vitalije's code doesn't send anything unless a command is executed.

On Thu, Oct 3, 2019 at 3:35 PM Edward K. Ream  wrote:

>
>
> On Thu, Oct 3, 2019 at 10:22 AM vitalije  wrote:
>
>> Try to write leo-ver-server-files.txt using unix new lines. Does
>> leo-ver-serv.exe produces any output in console?
>>
>
> No output in console.  Browser view unchanged.
>
> 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/CAMF8tS3KbhoGxYUBQRr%2BD2vaQRBjAN81DeekMpR%3D0X-AxrNLwQ%40mail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAO5X8CzjXJaUA%2BBDFs22D2OQvRFh4LsMRZivg4-CFgDp8GJNYQ%40mail.gmail.com.


Re: New plugin history_tracer

2019-10-03 Thread Edward K. Ream
On Thu, Oct 3, 2019 at 10:22 AM vitalije  wrote:

> Try to write leo-ver-server-files.txt using unix new lines. Does
> leo-ver-serv.exe produces any output in console?
>

No output in console.  Browser view unchanged.

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/CAMF8tS3KbhoGxYUBQRr%2BD2vaQRBjAN81DeekMpR%3D0X-AxrNLwQ%40mail.gmail.com.


Re: New plugin history_tracer

2019-10-03 Thread vitalije
Try to write leo-ver-server-files.txt using unix new lines. Does 
leo-ver-serv.exe produces any output in console?
Vitalije

On Thursday, October 3, 2019 at 4:25:35 PM UTC+2, Edward K. Ream wrote:
>
>
>
> On Tuesday, October 1, 2019 at 12:13:27 AM UTC-5, vitalije wrote:
>>
>>
>> This morning I've successfully built it with the `cargo install 
>> leo-ver-serv` command on Windows10 laptop.
>>
>
> Still fails for me, as before.
>
> I downloaded leo-ver-serv-v0.1.7.exe and ran it.
>
> I run it as follows from a .bat file containing:
>
> c:\bin\leo-ver-serv-v0.1.7.exe C:\Users\edreamleo\leo-ver-server-files.txt 
> 8087
>
> c:\users\edreamleo\leo-ver-server-files.txt contains:
>
> C:\leo.repo\leo-editor\leo\core\leoPy.leo
> c:\Users\edreamleo\ekr.leo
>
> The http://localhost:8087/public/index.html web page appears, but is 
> empty. In particular, the Leo file dropdown box is empty.
>
> Hmm.  I'm having trouble allowing access to localhost on Mozilla Firefox. 
> I just temporarily disabled the noscript tool, but still no joy.  I see the 
> same with the Chrome browser.
>
> Any suggestions?
>
> 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/8c0cc052-1ff2-4de1-b978-82c420e7ed22%40googlegroups.com.


Re: New plugin history_tracer

2019-10-03 Thread Edward K. Ream


On Tuesday, October 1, 2019 at 12:13:27 AM UTC-5, vitalije wrote:
>
>
> This morning I've successfully built it with the `cargo install 
> leo-ver-serv` command on Windows10 laptop.
>

Still fails for me, as before.

I downloaded leo-ver-serv-v0.1.7.exe and ran it.

I run it as follows from a .bat file containing:

c:\bin\leo-ver-serv-v0.1.7.exe C:\Users\edreamleo\leo-ver-server-files.txt 
8087

c:\users\edreamleo\leo-ver-server-files.txt contains:

C:\leo.repo\leo-editor\leo\core\leoPy.leo
c:\Users\edreamleo\ekr.leo

The http://localhost:8087/public/index.html web page appears, but is empty. 
In particular, the Leo file dropdown box is empty.

Hmm.  I'm having trouble allowing access to localhost on Mozilla Firefox. I 
just temporarily disabled the noscript tool, but still no joy.  I see the 
same with the Chrome browser.

Any suggestions?

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/a2fa6bc4-eb02-484c-b55a-b327bb0b9d80%40googlegroups.com.


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.


Re: Leo documentation

2019-10-03 Thread Edward K. Ream
On Thu, Oct 3, 2019 at 12:44 AM rengel  wrote:

> Have you ever thought of publishing Leo's documentation on ReadTheDocs (
> https://readthedocs.org/)?
>

I'll look into it. Leo already uses Sphinx, so it's not clear whether the
look of Leo's docs would change.

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/CAMF8tS2HzmFPROrvrgp9JqBEs-2rHxr2eO8Tg58dUcAJUe5s_g%40mail.gmail.com.


Re: Pytest command

2019-10-03 Thread vitalije


On Thursday, October 3, 2019 at 2:30:23 AM UTC+2, btheado wrote:
>
> Vitalije,
>
> I was looking at the execute-pytest code and it looked to me like only the 
> assertion rewrite functionality from pytest is being used. I would guess 
> none of the hooks or fixtures and maybe most plugins will work.
>
> Yes I guess you are right, I just wished to have assertions from pytest. I 
haven't used any pytest plugin nor its hooks 
 

> I don't much trust my code reading so I figured I'd better test it, but I 
> only got a stack trace when trying with your example:
>
> Traceback (most recent call last):
>
>
>   File "/home/btheado/src/leo-editor/leo/core/leoGlobals.py", line 293, in 
> new_cmd_wrapper
> func(self, event=event)
>
>
>   File "/home/btheado/src/leo-editor/leo/core/leoCommands.py", line 729, in 
> execute_pytest
> self.execute_single_pytest(p)
>
>
>   File "/home/btheado/src/leo-editor/leo/core/leoCommands.py", line 761, in 
> execute_single_pytest
> rewrite_asserts(tree, script, config=cfg)
>
>
>   File 
> "/home/btheado/src/pyqt-3.7-venv/lib/python3.7/site-packages/_pytest/assertion/rewrite.py",
>  line 327, in rewrite_asserts
> AssertionRewriter(module_path, config, source).run(mod)
>
>
>   File 
> "/home/btheado/src/pyqt-3.7-venv/lib/python3.7/site-packages/_pytest/assertion/rewrite.py",
>  line 572, in __init__
> "enable_assertion_pass_hook"
>
>
>   File 
> "/home/btheado/src/pyqt-3.7-venv/lib/python3.7/site-packages/_pytest/config/__init__.py",
>  line 976, in getini
> self._inicache[name] = val = self._getini(name)
>
>
>   File 
> "/home/btheado/src/pyqt-3.7-venv/lib/python3.7/site-packages/_pytest/config/__init__.py",
>  line 987, in _getini
> value = self.inicfg[name]
>
> AttributeError: 'Config' object has no attribute 'inicfg'
>
> python 3.7.3 and pytest 5.2.0
>
> Do you have any ideas?
>
> I have installed pytest 3.8.0 on my machine. Most likely the problem is in 
pytest incompatible versions. I'll look into it but I can't do it now. 

Vitalije 

-- 
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/2a37ee4a-44e2-4d99-9d42-890fd223c53b%40googlegroups.com.