Editor phantom text appearing

General questions regarding the usage of CodeLite
coder99
CodeLite Expert
Posts: 147
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Editor phantom text appearing

Post by coder99 » Sun Mar 04, 2018 1:04 am

Running Codelite 12.0.0 under Ubuntu 16.04 LTS 64-bit
My current efforts are the porting of an wxWidgets app from Windows 10 & MSVC 2015 to Ubuntu and Codelite. I am relatively new to using CL under Linux - and not all that familiar with it under Windows.
One of the strangest issues I have run into, is phantom text appearing while I am editing source code.
At first I thought I must have mistakenly pasted text in unintended places, the text appearing usually at the end of existing lines.
The text was sort of recognizable, but clearly out of place. Undo seemed to make it possible to remove this phantom text and so I kept a better watch on my 'pasting'.

Just now, I have run into a similar issue again, and it is certainly not as a result of any pasting I would have done, but because to ended up as part of a comment, I cannot be sure just why or when it happened.
My original comment string:
/**
* Note: the message source seems to have the string
* 'undisclosed recipients' but mimetic does not pass it on
* and we have to make up for this
*/
The 'modified' string:
/**
* Note: the message source seems to have the string
* 'undisclosed recipients' but mimetic does not pass it on
* and we have to make up for this11:41:01: INFO: Retag workspace completed in 0 seconds (No files were retagged)

*/
I am quite sure that this string was not something I ever 'copied' to the clipboard and it seems to follow a pattern I think I saw before: unrelated text appears at the end of an existing line, mostly, it seems, including a newline.

When it appears in regular code, it naturally will trip up the compile and be quickly noticed.

Either way it is quite annoying and yet I have not seen much in the way of related issues posted in the forum.
The only possibly related issue was posted back in 2015: https://codelite.org/forum/viewtopic.ph ... 50&p=12513

One possible cause might be newline differences between WIndows files - all of the source code originated on Windows and was transferred to the Ubuntu machine via RabbitVCS.
However it is not very consistent. Still over the course of the past few days of working with the editor, it has happened seemingly about every second or third editing session.
{edit]Just now, the exact same phantom text appeared again in the editor; this time it appeared as part of the code, though
Win 10 64-bit, MSVC 2017/2019, wxWidgets 3.1.0, CodeLite 13.0 Mint 19.2
Fight Spam, report it with wxSR

User avatar
eranif
CodeLite Plugin
Posts: 5995
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Editor phantom text appearing

Post by eranif » Sun Mar 04, 2018 1:41 am

This looks like a bug in wxWidgets.
I am not sure how or why... this line is added by the call to wxLogMessage
Which passes it to the active-log window
Make sure you have read the HOW TO POST thread

coder99
CodeLite Expert
Posts: 147
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Editor phantom text appearing

Post by coder99 » Sun Mar 04, 2018 10:54 pm

That is too bad and will likely be very difficult to track down. :(
OTOH, in porting my app to Ubuntu and its wxWidgets code - precompiled and downloaded from the 'net - I have found some curious and very unexpected differences, not related to just the basic presentation differences one would expect between Windows & Gtk.
Is this something to monitor or just accept for the time being ?? ;-)
Because, just now, I ran into another similar issue, and this time I had highlighted a variable and then clicked on 'Highlight matching words" when it appeared somewhere on the same page at the end of a line of code.
Win 10 64-bit, MSVC 2017/2019, wxWidgets 3.1.0, CodeLite 13.0 Mint 19.2
Fight Spam, report it with wxSR

User avatar
eranif
CodeLite Plugin
Posts: 5995
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Editor phantom text appearing

Post by eranif » Mon Mar 05, 2018 5:51 pm

Is this on Windows? or Linux?
Make sure you have read the HOW TO POST thread

coder99
CodeLite Expert
Posts: 147
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Editor phantom text appearing

Post by coder99 » Mon Mar 05, 2018 8:27 pm

All these issues were on Linux - Ubuntu 16.04
Win 10 64-bit, MSVC 2017/2019, wxWidgets 3.1.0, CodeLite 13.0 Mint 19.2
Fight Spam, report it with wxSR

User avatar
eranif
CodeLite Plugin
Posts: 5995
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Editor phantom text appearing

Post by eranif » Mon Mar 05, 2018 9:16 pm

Thanks. I removed all the calls to wxLogMessage from the code.
and replaced them with CodeLite's internal log system

This will be released with CodeLite 12.0.1 (weekly build)
Make sure you have read the HOW TO POST thread

coder99
CodeLite Expert
Posts: 147
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Editor phantom text appearing

Post by coder99 » Mon Mar 05, 2018 10:03 pm

Thank you, Eran,
I'll keep an eye out and get the update. Will report back if I see the same problem.
Win 10 64-bit, MSVC 2017/2019, wxWidgets 3.1.0, CodeLite 13.0 Mint 19.2
Fight Spam, report it with wxSR

coder99
CodeLite Expert
Posts: 147
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Editor phantom text appearing

Post by coder99 » Thu Mar 08, 2018 9:30 pm

Have not yet downloaded - or found the latest weekly build ;-)
But in working with CL, I have noticed that the phantom text appears when I edit the source code and then try to compile using either Alt-F7 or the tool bar button.
If I compile using the workspace context menu, it seems to not appear and work as expected.
Win 10 64-bit, MSVC 2017/2019, wxWidgets 3.1.0, CodeLite 13.0 Mint 19.2
Fight Spam, report it with wxSR

coder99
CodeLite Expert
Posts: 147
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: Editor phantom text appearing

Post by coder99 » Thu Mar 29, 2018 10:39 pm

eranif wrote:Thanks. I removed all the calls to wxLogMessage from the code.
and replaced them with CodeLite's internal log system

This will be released with CodeLite 12.0.1 (weekly build)
Have now downloaded and compiled the latest from Github, but ...
Is it possible to somehow add wxCrafter to these releases or should I just run it stand-alone?
Win 10 64-bit, MSVC 2017/2019, wxWidgets 3.1.0, CodeLite 13.0 Mint 19.2
Fight Spam, report it with wxSR

Post Reply