PR #4671 merged into devel

38 views
Skip to first unread message

Edward K. Ream

unread,
May 7, 2026, 7:50:14 AM (14 days ago) May 7
to leo-editor
PR #4671 fixes a recent crasher in Leo's markdown and reStructuredText colorizers. Now, Leo colors URLs correctly for both languages.

Edward

Viktor Ransmayr

unread,
May 9, 2026, 6:55:46 AM (12 days ago) May 9
to leo-editor
Hello Edward,

Edward K. Ream schrieb am Donnerstag, 7. Mai 2026 um 13:50:14 UTC+2:
PR #4671 fixes a recent crasher in Leo's markdown and reStructuredText colorizers. Now, Leo colors URLs correctly for both languages.

I tested the latest changes to the 'devel' branch in Debian & Fedora.

When I try to run 'leo.scripts.full_test_leo' I do receive the following traceback:

###

    [user@Test-VM02 leo-editor]$
    [user@Test-VM02 leo-editor]$ python -m leo.scripts.full_test_leo
    full_test_leo.py
    Traceback (most recent call last):
      File "<frozen runpy>", line 198, in _run_module_as_main
      File "<frozen runpy>", line 88, in _run_code
      File "/home/user/projects/leo-editor/leo/scripts/full_test_leo.py", line 50, in <module>
        subprocess.Popen(command).communicate()
        ~~~~~~~~~~~~~~~~^^^^^^^^^
      File "/usr/lib64/python3.14/subprocess.py", line 1039, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
        ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                            pass_fds, cwd, env,
                            ^^^^^^^^^^^^^^^^^^^
        ...<5 lines>...
                            gid, gids, uid, umask,
                            ^^^^^^^^^^^^^^^^^^^^^^
                            start_new_session, process_group)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.14/subprocess.py", line 1875, in _execute_child
        self._posix_spawn(args, executable, env, restore_signals, close_fds,
        ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          p2cread, p2cwrite,
                          ^^^^^^^^^^^^^^^^^^
                          c2pread, c2pwrite,
                          ^^^^^^^^^^^^^^^^^^
                          errread, errwrite)
                          ^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.14/subprocess.py", line 1819, in _posix_spawn
        self.pid = os.posix_spawn(executable, args, env, **kwargs)
                   ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python -m leo.scripts.beautify_all_leo'
    [user@Test-VM02 leo-editor]$

###

It is a Posix-specific issue, because the mentioned missing file does exist ...

###

    [user@Test-VM02 leo-editor]$
    [user@Test-VM02 leo-editor]$ cd leo/scripts
    [user@Test-VM02 scripts]$
    [user@Test-VM02 scripts]$ ls -al beautify*
    -rw-r--r-- 1 user user 1185 May  9 12:36 beautify_all_leo.py
    [user@Test-VM02 scripts]$

###

With kind regards,

Viktor

Thomas Passin

unread,
May 9, 2026, 9:40:01 AM (12 days ago) May 9
to leo-editor
maybe file permissions are the problem?

Viktor Ransmayr

unread,
May 9, 2026, 10:14:07 AM (12 days ago) May 9
to leo-editor
Hello Thomas,

tbp1...@gmail.com schrieb am Samstag, 9. Mai 2026 um 15:40:01 UTC+2:
maybe file permissions are the problem?

No. - The logs I published are from a newly created Debian VM !

With kind regards,

Viktor
 

Mike Hodson

unread,
May 9, 2026, 10:26:43 AM (12 days ago) May 9
to leo-e...@googlegroups.com
It's essentially trying to execute the entire command line as a single file, Gemini even as part of AI search on Google gives a pretty good rundown;

FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/python -m leo.scripts.beautify_all_leo'

import subprocess

# Incorrect:
# subprocess.run(["/usr/bin/python -m leo.scripts.beautify_all_leo"])

# Correct:
subprocess.run(["/usr/bin/python", "-m", "leo.scripts.beautify_all_leo"])


Gemini also gives a few different ideas on how to fix it, one I pasted above, the other mentioning using shell=true when calling the sub-process.

I don't fully understand how this code exactly gets called in the self test but I imagine it has to be something simple like a quoting issue.

Mike




--
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.
To view this discussion visit https://groups.google.com/d/msgid/leo-editor/500e7a2d-41c6-4506-9b3b-41d2ef138009n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages