Colored Indent Plug-in PROC_SET_EVENTS Undefined

Plugins for SynWrite and CudaText...
Post Reply
Random Void User
Posts: 84
Joined: 13.07.2024 21:19

Colored Indent Plug-in PROC_SET_EVENTS Undefined

Post by Random Void User »

CudaText 1.231.5.0, linux-x86_64-gtk2, fpc 3.2.3
Python console output:

Code: Select all

Init: cuda_colored_indent
Traceback (most recent call last):
  File "...cudatext/py/cuda_colored_indent/__init__.py", line 35, in __init__
    app_proc(PROC_SET_EVENTS, ';'.join([
             ^^^^^^^^^^^^^^^
NameError: name 'PROC_SET_EVENTS' is not defined
ERROR: Exception in CudaText for importing cuda_colored_indent: NameError: name 'PROC_SET_EVENTS' is not defined
main Alexey
Posts: 2863
Joined: 25.08.2021 18:15

Re: Colored Indent Plug-in PROC_SET_EVENTS Undefined

Post by main Alexey »

PROC_SET_EVENTS was removed from API and all plugs were updated for this; update all plugs.
main Alexey
Posts: 2863
Joined: 25.08.2021 18:15

Re: Colored Indent Plug-in PROC_SET_EVENTS Undefined

Post by main Alexey »

BTW, you use GTK2 version, so can you pls compare rendering speed - 1.231.5 vs 1.230.x.
To compare, turn on the option "log_timing" and see the indicator in the left-bottom corner.
Random Void User
Posts: 84
Joined: 13.07.2024 21:19

Re: Colored Indent Plug-in PROC_SET_EVENTS Undefined

Post by Random Void User »

Hmm, I keep plug-ins updated and just tried again. The Add-ons Manager is not detecting updates. I still see the console error.
main Alexey
Posts: 2863
Joined: 25.08.2021 18:15

Re: Colored Indent Plug-in PROC_SET_EVENTS Undefined

Post by main Alexey »

what version of Colored_Indent does your addons-manager show?
older than this?

Code: Select all

  {
    "url": "https://sourceforge.net/projects/cudatext/files/addons/plugins/plugin.Colored_Indent.zip",
    "desc": "Colorizes indentation levels in e.g. Python code",
    "module": "cuda_colored_indent",
    "v": "2025.12.29"
  },
in this version PROC_SET_EVENTS was replaced. you can get the URL and see the __init__.py.
main Alexey
Posts: 2863
Joined: 25.08.2021 18:15

Re: Colored Indent Plug-in PROC_SET_EVENTS Undefined

Post by main Alexey »

you can also get the plugin from github. open menuitem 'plugins / addons manager / visit plugin homepage'. maybe inet provider caches the SourceForge file and gives you too old version?
Random Void User
Posts: 84
Joined: 13.07.2024 21:19

Re: Colored Indent Plug-in PROC_SET_EVENTS Undefined

Post by Random Void User »

The version field showed 2025.12.29 but still had PROC_SET_EVENTS in the Python code. I don't know how it happened. I replaced the plug-in folder with the github files, and everything works now. I do have intermittent network outages, I can think of no other explanation. I wonder if Add-ons Manager needs to update several plug-ins, and the network goes down before they all finish, might some be left in this incomplete state?
main Alexey
Posts: 2863
Joined: 25.08.2021 18:15

Re: Colored Indent Plug-in PROC_SET_EVENTS Undefined

Post by main Alexey »

I am not educated in these inet things and outages. maybe...
Post Reply