CudaText snaps twice to line specified as command line param

Solved bugs are moved into this topic...
Shovel
Posts: 141
Joined: 31.12.2019 10:16

CudaText snaps twice to line specified as command line param

Post 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
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

Tried on 11K lines C++ file and cannot repro. will try more.
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post 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.
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post 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,
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

Also happens with 'py' folder removed.
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

Made a change; let's test beta (Linux)
http://uvviewsoft.com/c/
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

Yes, that fixed it, thank you :D
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

... but plugins stopped working :D
'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
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

It must be bug fixed already, in 1.122.0.2. https://github.com/Alexey-T/CudaText/issues/3038
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

What was your value of "pylib__linux"?
Post Reply