Page 1 of 2
CudaText snaps twice to line specified as command line param
Posted: 14.01.2021 17:51
by Shovel
When file opened and I go to specific line in it from command line (./cudatext new.c:20), it snaps to the line, then if I scroll a bit and start typing it will snap to that line a second time.
Seeing this on fresh install of cudatext-linux-gtk2-amd64-1.122.0.0.tar.xz. Only changed path in 'pylib__linux' and set 'ui_one_instance' to true.
OS Ubuntu 18.04
Posted: 14.01.2021 18:39
by uvviewsoft
Tried on 11K lines C++ file and cannot repro. will try more.
Posted: 14.01.2021 18:54
by uvviewsoft
- it happens with small and big files?
- is lexer parsing ended AFTER you scrolled from line 20? or file was parsed before? Cud has code which scrolls "after the parsing is done". it may break here.
Posted: 15.01.2021 09:44
by Shovel
Happens on 300 and 4000 lines files with different lexers. I can run './cudatext new.c:20', wait 15 sec, switch to a different tab, type there, and switch back and it still snaps extra time when I type.
Does NOT happen on files without lexer.
Demo on the VM of the same CudaText and Ubuntu versions:
gfycat
user.json is just two lines:
"pylib__linux" : "/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0",
"ui_one_instance": true,
Posted: 15.01.2021 09:49
by Shovel
Also happens with 'py' folder removed.
Posted: 15.01.2021 10:54
by uvviewsoft
Made a change; let's test beta (Linux)
http://uvviewsoft.com/c/
Posted: 15.01.2021 11:53
by Shovel
Yes, that fixed it, thank you

Posted: 15.01.2021 13:49
by Shovel
... but plugins stopped working

'Addon Manager > Install", "Options Editor..." , etc,
Not a single menu item works in "Plugins" menu, I only get "Init: cuda_options_editor" lines in the CudaText Console. Also stuff in "Options > Settings - Plugins" doesn't work.
Other menus work fine.
And on exit I get this in the terminal where I started the CudaText from:
Code: Select all
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$0000000000000000
$000000000085DB72
$000000000056BB26
$00000000005E0631
$00000000005CEC3F
$00000000005E2EA5
$0000000000478B35
$0000000000479FB9
$0000000000430A8B
$0000000000475C93
Exception at 0000000000000000: EAccessViolation:
Access violation.
Exception at 00000000004B19E6: EAccessViolation:
Access violation.
[TGtk2WidgetSet.Destroy] WARNING: There are 1 TimerInfo structures left, I'll free them
Posted: 15.01.2021 15:48
by uvviewsoft
Posted: 15.01.2021 15:51
by uvviewsoft
What was your value of "pylib__linux"?