Re: Another mass update: PR #3367

2023-06-09 Thread Viktor Ransmayr
Hello Edward,

Edward K. Ream schrieb am Freitag, 9. Juni 2023 um 20:04:31 UTC+2:

PR #3367  imports 
Callable from collections.abc instead of typing.  typing.Callable is 
deprecated, but is not presently scheduled for removal. Nevertheless I 
thought it best to do the replacement.

To my knowledge no further changes to Leo's mypy-related code are needed.

Please report any problems.


 I've tested the 'leo-editor:devel' branch in a Fedora 37 VM.

Running Leo's unit tests reports two errors:

::

(Leo) [user@fedora-leo-study-vm Leo]$ 
(Leo) [user@fedora-leo-study-vm Leo]$ cd leo-editor/leo
(Leo) [user@fedora-leo-study-vm leo]$ python -m unittest








..Missing visitor: 
TokenOrderGenerator.TryStar

F..F





.s..
..
(python:1814): Gdk-CRITICAL **: 07:30:49.345: gdk_atom_intern: 
assertion 'atom_name != NULL' failed

(python:1814): Gdk-CRITICAL **: 07:30:49.345: gdk_atom_intern: 
assertion 'atom_name != NULL' failed

.s..
..cursesGui2.py: Tk module required for clipboard 
handling.
s.
==
FAIL: test_visitors_exist 
(unittests.core.test_leoAst.TestTokens.test_visitors_exist)
Ensure that visitors for all ast nodes exist.
--
Traceback (most recent call last):
  File 
"/home/user/PyVE/GitHub/Leo/leo-editor/leo/unittests/core/test_leoAst.py", 
line 2745, in test_visitors_exist
assert not errors, msg
AssertionError: 63 node types, 32 op types, 1 errors

==
FAIL: test_bug_3270_at_path 
(unittests.core.test_leoAtFile.TestAtFile.test_bug_3270_at_path)
--
Traceback (most recent call last):
  File 
"/home/user/PyVE/GitHub/Leo/leo-editor/leo/unittests/core/test_leoAtFile.py", 
line 102, in test_bug_3270_at_path
self.assertEqual(path, expected)
AssertionError: 
'/home/user/PyVE/GitHub/Leo/leo-editor/leo/core/c:/temp/leo/at_file_test.py' 
!= 'c:/temp/leo/at_file_test.py'
- 
/home/user/PyVE/GitHub/Leo/leo-editor/leo/core/c:/temp/leo/at_file_test.py
+ c:/temp/leo/at_file_test.py


--
Ran 848 tests in 5.994s

FAILED (failures=2, skipped=3)
(Leo) [user@fedora-leo-study-vm leo]$ 

Leo's unit tests should not make the assumption, that everyone is running 
them on Windows ;-)

With kind regards,

Viktor

-- 
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/2bbe94a2-b136-4f94-9db3-95ff9a970623n%40googlegroups.com.


Re: Another mass update: PR #3367

2023-06-09 Thread Thomas Passin
Leo loaded using Python 3.11 on Windows.  So that's good.

On Friday, June 9, 2023 at 2:04:31 PM UTC-4 Edward K. Ream wrote:

> PR #3367  imports 
> Callable from collections.abc instead of typing.  typing.Callable is 
> deprecated, but is not presently scheduled for removal. Nevertheless I 
> thought it best to do the replacement.
>
> To my knowledge no further changes to Leo's mypy-related code are needed.
>
> Please report any problems.
>
> 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/46c19cba-f863-448e-8e47-9b15f0894044n%40googlegroups.com.


Another mass update: PR #3367

2023-06-09 Thread Edward K. Ream
PR #3367  imports 
Callable from collections.abc instead of typing.  typing.Callable is 
deprecated, but is not presently scheduled for removal. Nevertheless I 
thought it best to do the replacement.

To my knowledge no further changes to Leo's mypy-related code are needed.

Please report any problems.

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/b73bc58b-142e-48d5-9ff4-482ccc37f3den%40googlegroups.com.


Re: @auto-ms does not get along with Leo's clones

2023-06-09 Thread Thomas Passin
You might try ```shell too.

On Wednesday, June 7, 2023 at 5:58:24 AM UTC-4 p.os...@datec.at wrote:

> Hm, for now it seems a wrong ```-clause (markdown) being the reason for 
> all the hassle: Replaced all ```bash by ```sh.  I'll see if this holds for 
> clones as well (have to intro them again).
>
> On Friday, June 2, 2023 at 6:05:14 PM UTC+2 tbp1...@gmail.com wrote:
>
>> On Friday, June 2, 2023 at 3:05:51 AM UTC-4 p.os...@datec.at wrote:
>>
>> Again it happended. But now it happoend with vanilla nodes, as I replaced 
>> all clones by copies of the respective nodes. A section is cut off at 
>>
>> ```bash
>>
>> which becomes a node title. This node's body contains then all the sub 
>> nodes of the respective Leo tree.
>>
>>
>> It looks to me that the MD importer is a little confused at this point.  
>> The code that seems to be executing here during the import is
>>
>> elif in_code:
>> if line.startswith("```"):
>> in_code = False
>> lines_dict[top.v].append(line)
>> elif line.startswith("```"):
>> in_code = True
>> lines_dict[top.v].append(line)
>>
>> This *looks* like it should handle the code right, but one would have to 
>> do some checking to see if that is in fact happening as expected.
>>
>>  
>>
>> What I need is an @auto-md that does not read, which for me makes no 
>> sense anyway: The content is in my Leo tree and should just be written into 
>> an MD-file, that will be processed by mkdocs.
>>
>>
>> That's how the *rst3* command works.  The *@rst*  file tree isn't 
>> actually an external file.  The command writes the *@rst* tree to a 
>> file, but that file never gets imported again.  But I don't believe there 
>> is an equivalent command for markdown.  I think there should be.  That may 
>> not be trivial to write because the *@rst3* command looks pretty 
>> complicated to me.
>>
>> OTOH, it probably wouldn't be hard to write a script that writes a 
>> subtree to a file, converting the headlines into the right indent level 
>> headlines.  That's really what you want, isn't it?
>>
>

-- 
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/1808ebf6-ab41-4759-8b2f-86a85ebedd64n%40googlegroups.com.


PR #3365 merged into devel

2023-06-09 Thread Edward K. Ream
PR #3365  is a mass 
update of Leo's code base that simplifies annotations.

I've tested the code with both Python 3.9 and 3.10.  Please report any 
problems.

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/3a9d1509-ff6c-403d-abde-4ec125b49abcn%40googlegroups.com.