Hello Edward, Edward K. Ream schrieb am Dienstag, 1. April 2025 um 12:56:16 UTC+2:
On Monday, March 31, 2025 at 8:17:04 PM UTC-5 Edward K. Ream wrote: It seems that PR #4320 <https://github.com/leo-editor/leo-editor/pull/4320> does not always compute the proper language to use for syntax coloring. I have reopened #4323 <https://github.com/leo-editor/leo-editor/issues/4323>. This issue now describes two *minor* bugs. Each bug is an edge case in complex code. Yes, I'd like to fix both bugs, but I would rather do nothing than cause further problems. I'm using this thread of yours to report an issue I'm having, since you started making those changes. I'm adding a test outline, which demonstrates the problem in a hopefully simple form. It's basically a stripped down form of an outline I'm using since years to keep a daily work log - but - only now has a colorization problem with @rst - nodes ... I hope it provides additional input for your thread on 'Heads up: PR #4324 will need testing'. - See * https://groups.google.com/g/leo-editor/c/_hdEDyI1vNM 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/leo-editor/f526ccc8-a4da-4cf1-be17-9d3c09d3b73cn%40googlegroups.com.
<?xml version="1.0" encoding="utf-8"?> <!-- Created by Leo: https://leo-editor.github.io/leo-editor/leo_toc.html --> <leo_file xmlns:leo="https://leo-editor.github.io/leo-editor/namespaces/leo-python-editor/1.1" > <leo_header file_format="2"/> <globals/> <preferences/> <find_panel_settings/> <vnodes> <v t="user.20200328165625.2"><vh>Startup</vh></v> <v t="user.20200328165655.1"><vh>Test Log (TL)</vh> <v t="user.20200328165734.1"><vh>2025</vh> <v t="vr4leojs.20250409083052.1"><vh>04</vh> <v t="user.20200328165804.1"><vh>@path ./TL/2025/04/CWxx</vh> <v t="user.20200328165834.1"><vh>@rst LE-2025-04-dd.html</vh> <v t="user.20200328165912.1"><vh>Session #0</vh> <v t="user.20200808230244.1"><vh>Notes</vh></v> <v t="user.20200808230249.1"><vh>References</vh></v> <v t="user.20200808230255.1"><vh>Scratchpad</vh></v> <v t="user.20200328165925.1"><vh>Log-000</vh></v> </v> </v> </v> <v t="vr4leojs.20250409083133.1"><vh>@path ./TL/2025/04/CW15</vh> <v t="vr4leojs.20250409083133.2"><vh>@rst LE-2025-04-dd.html</vh> <v t="vr4leojs.20250409083133.3"><vh>Session #0</vh> <v t="vr4leojs.20250409083133.4"><vh>Notes</vh></v> <v t="vr4leojs.20250409083133.5"><vh>References</vh></v> <v t="vr4leojs.20250409083133.6"><vh>Scratchpad</vh></v> <v t="vr4leojs.20250409083133.7"><vh>Log-000</vh></v> </v> </v> <v t="vr4leojs.20250409083146.1"><vh>@rst LE-2025-04-09.html</vh> <v t="vr4leojs.20250409083146.2"><vh>Session #1</vh> <v t="vr4leojs.20250409083146.3"><vh>Notes</vh></v> <v t="vr4leojs.20250409083146.4"><vh>References</vh></v> <v t="vr4leojs.20250409085722.1"><vh>Log-001</vh></v> <v t="vr4leojs.20250409085728.1"><vh>Log-002</vh></v> </v> </v> </v> </v> </v> </v> </vnodes> <tnodes> <t tx="user.20200328165625.2"></t> <t tx="user.20200328165655.1">@language rest @tabwidth -4 </t> <t tx="user.20200328165734.1"></t> <t tx="user.20200328165804.1"></t> <t tx="user.20200328165834.1">======================== Log Entry for 2025-04-dd ======================== .. contents:: :depth: 2 </t> <t tx="user.20200328165912.1">Start: </t> <t tx="user.20200328165925.1"></t> <t tx="user.20200808230244.1"></t> <t tx="user.20200808230249.1"></t> <t tx="user.20200808230255.1"></t> <t tx="vr4leojs.20250409083052.1"></t> <t tx="vr4leojs.20250409083133.1"></t> <t tx="vr4leojs.20250409083133.2">======================== Log Entry for 2025-04-dd ======================== .. contents:: :depth: 2 </t> <t tx="vr4leojs.20250409083133.3">Start: </t> <t tx="vr4leojs.20250409083133.4"></t> <t tx="vr4leojs.20250409083133.5"></t> <t tx="vr4leojs.20250409083133.6"></t> <t tx="vr4leojs.20250409083133.7"></t> <t tx="vr4leojs.20250409083146.1">======================== Log Entry for 2025-04-09 ======================== .. contents:: :depth: 2 </t> <t tx="vr4leojs.20250409083146.2">Start: 2025-04-09 ~ 08:30 (CEST) Continue work on different 'Leo Editor' variants [1, 2 & 3]. </t> <t tx="vr4leojs.20250409083146.3">Update PyVE for Leo from GitHub to current state of Leo's repository - OK - See "Log-001". Close & re-open this outline using the updated PyVE - OK - See "Log-002". **Result: Leo in PyVE from GitHub is up to date - but - colorization problem also exists on Debian.** </t> <t tx="vr4leojs.20250409083146.4">[1] Leo Editor - An IDE, outliner and PIM * https://leo-editor.github.io/leo-editor/ [2] Leo Editor Integration [for VS Code] * https://open-vsx.org/extension/boltex/leointeg [3] Leo Editor [for VS Code] * https://open-vsx.org/extension/boltex/leojs </t> <t tx="vr4leojs.20250409085722.1">:: user@debian-leo-study-vm:~$ user@debian-leo-study-vm:~$ cd PyVE/GitHub/Leo/ user@debian-leo-study-vm:~/PyVE/GitHub/Leo$ user@debian-leo-study-vm:~/PyVE/GitHub/Leo$ source bin/activate (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo$ (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo$ cd leo-editor/ (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ git branch * devel (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ git pull remote: Enumerating objects: 1824, done. remote: Counting objects: 100% (218/218), done. remote: Compressing objects: 100% (29/29), done. remote: Total 1824 (delta 194), reused 198 (delta 189), pack-reused 1606 (from 3) Receiving objects: 100% (1824/1824), 2.38 MiB | 3.66 MiB/s, done. Resolving deltas: 100% (1365/1365), completed with 19 local objects. From https://github.com/leo-editor/leo-editor 0efe4fadb..ad7735a19 devel -> origin/devel 0efe4fadb..ad7735a19 6.8.4 -> origin/6.8.4 * [new branch] ekr-4323-computing-at-language -> origin/ekr-4323-computing-at-language c46728ec1..5dab9389d ekr-undo-script-results -> origin/ekr-undo-script-results 0efe4fadb..ad7735a19 gh-pages -> origin/gh-pages Updating 0efe4fadb..ad7735a19 Fast-forward .mypy.ini | 6 +- leo/commands/abbrevCommands.py | 8 +- leo/commands/baseCommands.py | 2 +- leo/commands/commanderEditCommands.py | 17 +- leo/commands/commanderOutlineCommands.py | 6 +- leo/commands/convertCommands.py | 10 +- leo/commands/editCommands.py | 23 +- leo/commands/killBufferCommands.py | 4 +- leo/commands/spellCommands.py | 10 +- leo/core/LeoPyRef.leo | 116 ++++--- leo/core/leoAPI.py | 420 +++++++++++++++++++++++ leo/core/leoApp.py | 27 +- leo/core/leoAst.py | 24 +- leo/core/leoAtFile.py | 3 +- leo/core/leoBeautify.py | 10 +- leo/core/leoBridge.py | 13 +- leo/core/leoCache.py | 61 ++-- leo/core/leoChapters.py | 35 +- leo/core/leoColorizer.py | 397 ++++++++++++---------- leo/core/leoCommands.py | 44 +-- leo/core/leoCompare.py | 13 +- leo/core/leoConfig.py | 137 ++++---- leo/core/leoExternalFiles.py | 24 +- leo/core/leoFileCommands.py | 35 +- leo/core/leoFind.py | 7 +- leo/core/leoFrame.py | 556 ++++--------------------------- leo/core/leoGlobals.py | 270 +++++++-------- leo/core/leoGui.py | 19 +- leo/core/leoImport.py | 53 +-- leo/core/leoJupytext.py | 5 +- leo/core/leoKeys.py | 56 ++-- leo/core/leoMenu.py | 62 ++-- leo/core/leoNodes.py | 25 +- leo/core/leoPersistence.py | 5 +- leo/core/leoPlugins.py | 61 ++-- leo/core/leoPrinting.py | 14 +- leo/core/leoRst.py | 4 +- leo/core/leoTips.py | 4 +- leo/core/leoTokens.py | 18 +- leo/core/leoVim.py | 14 +- leo/core/signal_manager.py | 24 +- leo/doc/leoAttic.txt | 169 +++++++++- leo/modes/c.py | 34 +- leo/plugins/cursesGui.py | 17 +- leo/plugins/cursesGui2.py | 109 +++--- leo/plugins/free_layout.py | 2 +- leo/plugins/leoflexx.py | 11 +- leo/plugins/mod_scripting.py | 105 +++--- leo/plugins/nested_splitter.py | 2 +- leo/plugins/nodetags.py | 11 +- leo/plugins/pane_commands.py | 23 +- leo/plugins/plugins_menu.py | 34 +- leo/plugins/qt_commands.py | 70 ++-- leo/plugins/qt_events.py | 8 +- leo/plugins/qt_frame.py | 219 ++++++------ leo/plugins/qt_gui.py | 61 ++-- leo/plugins/qt_idle_time.py | 18 +- leo/plugins/qt_layout.py | 12 +- leo/plugins/qt_quickheadlines.py | 10 +- leo/plugins/qt_text.py | 109 +++--- leo/plugins/qt_tree.py | 160 +++++---- leo/plugins/todo.py | 11 +- leo/plugins/viewrendered.py | 58 ++-- leo/unittests/plugins/test_gui.py | 28 +- leo/unittests/plugins/test_plugins.py | 1 + 65 files changed, 2095 insertions(+), 1829 deletions(-) create mode 100644 leo/core/leoAPI.py (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ </t> <t tx="vr4leojs.20250409085728.1">:: (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ python3 -m leo.core.runLeo & [1] 2030 (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ Leo 6.8.4-devel, devel branch, build ad7735a19c 2025-04-01 05:24:00 -0500 Python 3.11.2, PyQt version 6.7.3 linux Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries' Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/user/PyVE/GitHub/Leo/lib/python3.11/site-packages/PyQt6/Qt6/libexec/qtwebengine_dictionaries' Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/user/PyVE/GitHub/Leo/lib/python3.11/site-packages/PyQt6/Qt6/libexec/qtwebengine_dictionaries' #### Leo Log Window Leo 6.8.4-devel, devel branch, build ad7735a19c 2025-04-01 05:24:00 -0500 Python 3.11.2, PyQt version 6.7.3 linux home: /home/user leo-editor: /home/user/PyVE/GitHub/Leo/leo-editor load: /home/user/PyVE/GitHub/Leo/leo-editor/leo/core config: /home/user/PyVE/GitHub/Leo/leo-editor/leo/config reading settings in /home/user/PyVE/GitHub/Leo/leo-editor/leo/config/leoSettings.leo reading settings in /home/user/.leo/myLeoSettings.leo reading settings in /home/user/PyVE/GitHub/Leo/leo-editor/leo/themes/tbp_dark_solarized.leo VR3 -- no asciidoc processor VR3 -- no asciidoc3 processor Can't find /home/user/.leo/vr3/vr3_config.ini so VR3 cannot execute non-Python code reading settings in /home/user/Documents/SL2025.leo read outline in 0.02 seconds VR3 Markdown stylesheet: file:////home/user/PyVE/GitHub/Leo/leo-editor/leo/plugins/viewrendered3/md_styles_solarized_dark.css VR3 RsT stylesheet: /home/user/PyVE/GitHub/Leo/leo-editor/leo/plugins/viewrendered3/v3_rst_solarized-dark.css </t> </tnodes> </leo_file>
