Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.54k stars 173 forks source link

last update + hotspot plugin… #5654

Closed MiroslavMatas closed 3 months ago

MiroslavMatas commented 3 months ago

image

it works fine on new/fresh install (just CT + Hotspot) and it is ok on 1.216.0.0 (my full configuration) what is necessary to verify on my side?

Alexey-T commented 3 months ago

maybe null-char exists in one of your text files/logs?

if not, try to make minimal repro: find on which file is fails. file with a bookmark.

MiroslavMatas commented 3 months ago

image

Alexey-T commented 3 months ago

test this. find folder 'py' and change cudatext.py like this in def tree_proc

def tree_proc(id_tree, id_action, id_item=0, index=0, text='', image_index=-1, data=''):
    if chr(0) in text:
        print('ERROR: tree_proc with null-char!', repr(text))
        return
    return ct.tree_proc(id_tree, id_action, id_item, index, to_str(text), image_index, data)

does it show more errors in console?

MiroslavMatas commented 3 months ago

perfect, suggested change - a/ lead to resolving the problem + b/ help to find that "pesky" location

Alexey-T commented 3 months ago

I added fix to Cudatext. It Will replace null chars. You can get updated Cudatext.py file from git.