An old bug...

Post bugs related to the IDE here
es_91
Enthusiast
Enthusiast
Posts: 242
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

An old bug...

Post by es_91 »

Ever noticed that the last letter of your code is skipped in its formation when you do not add spaces or line breaks behind it?

Image

I recently checked a pre-5 version of PureBasic, it was present there already.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: An old bug...

Post by PB »

Can't reproduce here with the same version:

Image
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Demivec
Addict
Addict
Posts: 4091
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: An old bug...

Post by Demivec »

Confirmed.

To reproduce it:

On line #1 type 'Repeat' then [CR]
On line #2, at the left margin type 'ForEver' and then push the up arrow to move to the first line.

The result will be that the last letter of 'ForEver' will not be the same as the other letters in the word.

In my case this means that the 'r' is not in bold but it is the correct color.

Image
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: An old bug...

Post by PB »

Demivec wrote:On line #1 type 'Repeat' then [CR]
On line #2, at the left margin type 'ForEver' and then push the up arrow to move to the first line.
The result will be that the last letter of 'ForEver' will not be the same as the other letters in the word.
Not reproducible here. Everything is bold as expected. Want me to post a video? ;)

It's obviously due to some difference in our Prefs settings and/or compiler version.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Bisonte
Addict
Addict
Posts: 1232
Joined: Tue Oct 09, 2007 2:15 am

Re: An old bug...

Post by Bisonte »

Confirmed.

Its only the last character of the source, if it's a PB-Keyword and no other character is behind it.
Like e.g. End. Then you move the cursor to the line above and it happens.

I think this behaviour was > PB4.61.
PureBasic 6.10 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: An old bug...

Post by c4s »

PB wrote:Can't reproduce here with the same version:

Image
Well, there you added a third line.

I can reproduce it too using Demivec's instruction.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
TI-994A
Addict
Addict
Posts: 2512
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: An old bug...

Post by TI-994A »

Not able to reproduce it either. Perhaps it's because I've extensively customised colouring and indentation.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: An old bug...

Post by PB »

> you added a third line

Follow the post times. ;) My image was posted BEFORE Demivec's steps.

Then I explicitly quoted his steps and followed them exactly, and no bug. ;)

And as I said, and TI-994A said, it's probably due to our Prefs.
Maybe we should share Prefs and see if it makes any difference?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: An old bug...

Post by c4s »

PB wrote:[...] Then I explicitly quoted his steps and followed them exactly, and no bug. ;)
Ok, sorry. Thought you didn't do it "correctly"...
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Re: An old bug...

Post by Tenaja »

It is probably related to this...
http://purebasic.fr/english/viewtopic.php?f=4&t=60721

Not the SmartHighlighting, but the strings terminated with EOF instead of 0.
Post Reply