Author Topic: [Closed] Funny but unwanted feature  (Read 6584 times)

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
[Closed] Funny but unwanted feature
« on: May 27, 2022, 05:15:53 pm »
I came across a quite entertaining new feature of the editor. Its in a Linux build of one of the recent nightlies. I wonder if someone recognize it can say what it is?

The feature surprises me while typing once in a while as it catches the typed text and puts in into an overlay line on top of your screen (see attached image). Its quite elusive againts screenshots so I had to take an ofd fashioned camera to catch it, sorry for the bad quality.

The text is caught until a non-letter chracter is typed: space, unlerline, minus etc. Then the text appears back at your cursor. One can actually continue typing unless there is a mistake, because DEL does not seem to be working - at least I did not find out how.
Any mouse action or action from another program will quite that mode, taking the text with it.

I did not see any indication on the GUI when this gets enabled. I found that I can reset it by closing and reopening the file. But it very soon comes back. It does not occur always, sometimes all works find. Usually restart of CB gets rid of it, but on some days it returns rather quickly.

I did not see it on other installations of rev12535 I use on other machines.

Here is the systems specs:
Code
Name                   : Code::Blocks
Version                : svn-r12765
SDK Version            : 2.16.0
Scintilla Version      : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website                : http://www.codeblocks.org
OS                     : Linux 4.15.0-161-generic x86_64
Scaling factor         : 1,000000
Detected scaling factor: 0,989583
Display PPI            : 96x95
Display count          : 1
Display 0              : XY
« Last Edit: January 14, 2024, 03:35:44 pm by tigerbeard »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Funny but unwanted feature
« Reply #1 on: May 27, 2022, 06:20:55 pm »
What plugins are you running?
Show Menu=>Plugins=>ManagePlugins
or a zip of the text in log tab "Code::Blocks"

Does the escape key get rid of it?
« Last Edit: May 27, 2022, 06:24:22 pm by Pecan »

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Funny but unwanted feature
« Reply #2 on: May 27, 2022, 08:08:25 pm »
Plugins are from the contrib directory, nothing else. See attached list.

ESC does not get rid of it. I found that sometimes - depending what keys you press - its more sticky. Just now it remained despite changing to another page, any mouse clicks. I had to enter text and press space to get it back to its normal mode.


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Funny but unwanted feature
« Reply #3 on: May 28, 2022, 12:41:09 am »
What GTK and wxWidgets version?

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Funny but unwanted feature
« Reply #4 on: May 28, 2022, 01:57:11 pm »
wxWidgets 3.0.4 and GTK2

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Funny but unwanted feature
« Reply #5 on: May 28, 2022, 02:42:48 pm »
Can you disable all plugins? And see if this is caused by one?
I can not recall something like that, and also the recent changes in code should not create this (from what i remember)...
Do you know a version when this did not happen?

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Funny but unwanted feature
« Reply #6 on: May 29, 2022, 01:21:28 pm »
Can you disable all plugins? And see if this is caused by one?
oh, I see, of course. A good idea.

Do you know a version when this did not happen?
I have never seen that before in any other version.

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Funny but unwanted feature
« Reply #7 on: May 29, 2022, 02:00:01 pm »
OK, I could reproduce it now with all plugins disabeld in a newly started CodeBlocks. So its not a plugin issue.

I opened a HelloWorld sample and added this very basic function nonesense code: I just used edit letters, cursor keys, delete, backspace. but not copy/paste. I changed the text below randomly quite a few times.  Then lastly entering the comment got me into this mode. I did not save the changes yet.
Code
//
int Test( class TEst )
{
int SomeTest(char Tfunctions)
}
}

edit: I attached the code file and project file for info
« Last Edit: May 29, 2022, 02:07:43 pm by tigerbeard »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Funny but unwanted feature
« Reply #8 on: May 30, 2022, 11:32:16 am »
Can you create a ticket on SF for it? Or else it will get lost here in the forum in the noice....

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Funny but unwanted feature
« Reply #9 on: May 30, 2022, 12:07:51 pm »
Can you create a ticket on SF for it? Or else it will get lost here in the forum in the noise....
sure.

Although I find it a bit weird that nobody seem to ever have seen that kind of printout.


Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Funny but unwanted feature
« Reply #10 on: May 30, 2022, 12:29:55 pm »
Possible dumb questions:
Is the C::B you are using with the issue built by yourself or if it was download from the internet or PPA can you please let us know what the PPA or web site was that you downloaded the file(s) from?

The reason is that the latest nightly download using Xaviou's PPA shows the info below.
Windows 10 Ubuntu WSL2 environment:

Code
Name         : Code::Blocks
Version                : svn-r12813
SDK Version         : 2.18.0
Scintilla Version   : 3.7.5
Author                 : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website               : https://www.codeblocks.org
OS                       : Linux 5.10.102.1-microsoft-standard-WSL2 x86_64
Scaling factor         : 1.000000
Detected scaling factor: 0.989583
Display PPI          : 96x95
Display count       : 1
Display 0             : XY=[0,0]; Size=[3840,1080]; Primary

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.20.
Xubuntu 22.04 environment:
Code
Name        : Code::Blocks
Version                : svn-r12813
SDK Version         : 2.18.0
Scintilla Version    : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website              : https://www.codeblocks.org
OS                      : Linux 5.17.11-051711-generic x86_64
Scaling factor      : 1.000000
Detected scaling factor: 1.000000
Display PPI            : 96x96
Display count          : 1
Display 0              : XY=[0,0]; Size=[1920,969]; Primary

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.33.
Both Linux versions were version show wxwidget 3.0.5 and were built with gcc 10.2.1.

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: Funny but unwanted feature
« Reply #11 on: May 30, 2022, 01:16:27 pm »
Is the C::B you are using with the issue built by yourself or if it was download from the internet or PPA

No, I did not use a PPA. I downloaded the sources from SVN and compiled it. I used the latest available wxWidgets lib from the Repository for 18.04 you get with "libwxgtk3.0-dev"

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Funny but unwanted feature
« Reply #12 on: May 30, 2022, 04:21:16 pm »
Quote
Although I find it a bit weird that nobody seem to ever have seen that kind of printout.
The problem is, there are 100eds of possible combinations of compiler, wxWidgets versions, gtk versions, scintilla versions, graphic driver, window manager and i don't know what else, that can influence this...
And you seem to have some unlucky combination...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Funny but unwanted feature
« Reply #13 on: May 30, 2022, 08:19:08 pm »
Quote
Although I find it a bit weird that nobody seem to ever have seen that kind of printout.
The problem is, there are 100eds of possible combinations of compiler, wxWidgets versions, gtk versions, scintilla versions, graphic driver, window manager and i don't know what else, that can influence this...
And you seem to have some unlucky combination...

I think a bout a year or two ago there was a weird problem like this that ended up being an window manager caused problem.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Funny but unwanted feature
« Reply #14 on: May 31, 2022, 12:07:54 am »
Please try the latest via Xaviou's PPA and let us know if it has the same issue or not.