Code: Select all
TypeError: 'NoneType' object cannot be interpreted as an integer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/redacted/cudatext/py/cuda_hilite_occurrences/__init__.py", line 213, in on_caret
self.work(ed_self)
~~~~~~~~~^^^^^^^^^
File "/redacted/cudatext/py/cuda_hilite_occurrences/__init__.py", line 184, in work
res = process_ocurrences(ed_self)
File "/redacted/cudatext/py/cuda_hilite_occurrences/__init__.py", line 588, in process_ocurrences
res = _get_occurrences(ed_self)
File "/redacted/cudatext/py/cuda_hilite_occurrences/__init__.py", line 660, in _get_occurrences
items = find_visible_occurrences(ed_self, text, case_sensitive, whole_words)
File "/redacted/cudatext/py/cuda_hilite_occurrences/__init__.py", line 404, in find_visible_occurrences
ed_self.set_caret(
~~~~~~~~~~~~~~~~~^
0,
^^
...<4 lines>...
options=app.CARET_OPTION_NO_SCROLL+CARET_FLAG_NO_EVENT
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/redacted/cudatext/py/cudatext.py", line 1323, in set_caret
return ct.ed_set_caret(self.h, x1, y1, x2, y2, id, options)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: <built-in function ed_set_caret> returned a result with an exception set
ERROR: Exception in CudaText for on_caret: SystemError: <built-in function ed_set_caret> returned a result with an exception set