Cudatext: experimental beta with multi-threaded parser, 1.132.9

Created on 21 Apr 2021  路  28Comments  路  Source: Alexey-T/CudaText

1.132.9 is here (for Windows, Linux)
https://www.fosshub.com/CudaText-old.html

I see the difference when I edit 300K C++ file: reaction to editions is faster and no blinking of text below the caret.
options 'lexer_delayed*' are ignored now (todo: delete em).

enhancement

Most helpful comment

new beta update. also on fosshub site. 1.132.9.2. @halfbrained @jairomartineza

All 28 comments

I got big C++ files from https://github.com/arvidn/libtorrent/tree/RC_2_0/src
e.g. torrent.cpp.

When it starts the speed difference is huge on large files (comparing to 1.132.0.6)

But this lexer causes this kind of startup times :D

Python 3.6.9
Startup: 132230ms, plugins: 0ms ()

Python 3.6.9
Startup: 132270ms, plugins: 0ms ()


also this happened on that lexer, after typing a few characters

[xcb] Unknown sequence number while processing reply
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
cudatext: ../../src/xcb_io.c:639: _XReply: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)

'that lexer' is a python lexer, renamed. what is special in it? is crash present in usual python?

'that lexer' is old Py lexer from SynWRite with old (not supported now) indent-based settings, please don't use it! and pls don't blame coz of it.

Got it.

This version seems to have a consistent problem with pasting 50+ lines of code:

  • all or part of pasted text and below it - stays uncolored
  • title of window stays: 'parse-begin, 0ms, 23607 tokens, 430 ranges'
  • scrolling when this happens occasionally gives an arror msgbox

List index (18065) out of bounds.
Press OK to ignore and risk data corruption.
Press Abort to kill the program.

typing something - redraws text.

(playing in 'cd_exttools.py' from 'cuda_exttools')

yes I also found that app doesnt react OK to plugin API which edits text.
to-fix.

for example: 'Comments' plugin doesnt update the hilight.

alpha updated. It still has problem with undo of 'paste 20 lines', to-fix.

updated again!

updated again (stability).

updated (stability).

It's put to download page, as 1.132.9.

Is it supposed to be available only as sources-on-sourceforge?

no! Its public on homepage. as 'old release with number 1.132.9'. stable is still 1.132.1 yet. after a week 1.132.9 will be new 'stable'.

I want to hear from @kvichans before the release, he will be here afte a week.

  1. Open a file with CudaText
  2. Open the same file in another program (IDE, editor, etc)
  3. Made a change in the external program.
  4. CudaText reload the changes but ignore the re-painting.

I cannot repeat it, pls share your file user.json in zip.

(Jairo, make sure you use last 1.132.9 from fosshub)

Maybe is because of that, I am using the http://uvviewsoft.com/c/ version. Testing again.

ah, that beta version is also the new. strange.

what I tested: opened C++ file in Cud and in ST3, then edited+saved one line at the top in ST3. Cud reloads file (with or without confirmation- both) and colored it.

For me the code is repainted after external change, but the Code tree breaks (all items after the edit position are removed)

for example removing (and then undoing the change) __init__ from 'cuda_exttools/cd_exttools.py'

Using a fresh install

  1. Start CudaText and install T-SQL lexer
  2. Restart CudaText
  3. Open a sql file.
  4. CudaText is not creating the painting and is disabled to close the tab:

image

@halfbrained Confirmed.
@JairoMartinezA Will see it soon.

Using this file, taken from https://learnxinyminutes.com/docs/sql/ (With no permission)

TestSQL.zip

beta updated! /c/ folder. Fixed the @halfbrained 's bug.
Jairo, I dont confirm 'your bug with t-sql' in this beta. clean Cud install too. tested on TestSQL file.

updated - to cudatext-win-x64-1.132.9.1b.zip . fixed another thread issue.
@halfbrained @jairomartineza @miroslavmatas

  1. Open a file with CudaText
  2. Open the same file in another program (IDE, editor, etc)
  3. Made a change in the external program.
  4. CudaText reload the changes but ignore the re-painting.

This is fixed now.

new beta update. also on fosshub site. 1.132.9.2. @halfbrained @jairomartineza

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jczanfona picture jczanfona  路  5Comments

Alexey-T picture Alexey-T  路  5Comments

junguler picture junguler  路  5Comments

Alexey-T picture Alexey-T  路  7Comments

Alexey-T picture Alexey-T  路  5Comments