It is currently Tue Oct 24, 2017 1:37 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PB 5.60 IDE colour phenomenon
PostPosted: Thu Sep 07, 2017 5:48 pm 
Offline
User
User
User avatar

Joined: Mon May 08, 2006 2:27 pm
Posts: 25
Hi,
I'm a slow adopter of new versions of PB, but now I decided to update my 5.31 to 5.60 (Windows 7 Pro x64 - running x86 versions of PB).

When loading a source code I got weird colours on the text and after a while of experimenting I concluded that it's two commented lines that causes the phenomenon. I have tried it on two computers here and it's the same.

Since I didn't have this problem with 5.31, I wonder if it's
* a bug in the 5.60 editor
or
* a misconfiguration of my regular expression for TODO in my prefs. (but why didn't I have problems with 5.31? Unicode?)

Screendump of my corrupt colours:
https://www.dropbox.com/s/eqkkxybgw2ei787/Corrupt.png?dl=0

Screedump of the correct colours:
https://www.dropbox.com/s/q0jnqpdtm3otqe5/Correct.png?dl=0

Screendump of my prefs for 'issues':
https://www.dropbox.com/s/zz1itksm5m4zxsa/Prefs.png?dl=0

Some code to play with:
Code:
;TODO ingår i och består av för gerber (tänk på särfall som fen3sto och fen3-2plysto som bara har olika antal fens15
;TODO Om en gbr hittas som inte har någon tillhörande cmx - ge möjlighet att skapa en (bakvänd läggbild generering)

Debug GetRuntimeInteger("#PB_Editor_BuildCount")


If you remove the swedish characters {å,ä,ö}, it will work as it should. If you put back some random åäö, it will still work (at least it did for me). It's something magic with these two commented lines and I haven't managed to narrow it down more than that.

It seems the code after the commented lines doesn't matter. In the original source the code looks totally different. In the screen dumps I have a few lines and in the above test code, only one line is needed to show the corruption.

Any ideas?

_________________
PureBasic occasionally since 2000 - when hacks are to be done. :smile:


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.60 IDE colour phenomenon
PostPosted: Thu Sep 07, 2017 5:54 pm 
Offline
User
User
User avatar

Joined: Mon May 08, 2006 2:27 pm
Posts: 25
I get the corruption like this. (I have gotten the corruption in other ways, but this seems more repetitive)
In prefs/general, tic "Auto-reload last open sources"

Load the source.
Close the IDE.
Open the IDE.
Corrupt colours.

_________________
PureBasic occasionally since 2000 - when hacks are to be done. :smile:


Top
 Profile  
Reply with quote  
 Post subject: Re: PB 5.60 IDE colour phenomenon
PostPosted: Sat Sep 09, 2017 8:29 am 
Offline
User
User
User avatar

Joined: Mon May 08, 2006 2:27 pm
Posts: 25
I took a little more time today with this and I have narrowed it down to only need the following code to show the discolouration:
Code:
;TODO ¤¤¤¤¤¤
;TODO fafafafa


Six special characters on the first TODO-line (not necessarily Swedish characters) and some text on the second TODO line. Must be two TODO lines after each other to trigger it.

I think I drop this. It's not a problem since I now know that I can't stack more than two TODO if I use more than five special characters on the line... :lol:

Would be interesting though, if anyone else can evoke this?

_________________
PureBasic occasionally since 2000 - when hacks are to be done. :smile:


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye