
PB 6.03 - Win X64 - Stuck highlighting.
PB 6.03 - Win X64 - Stuck highlighting.
The highlighting in IDE occasionally sticks & a reload is required to clear it. It has happened several times now but I'm unable to replicate it purposefully.


Re: PB 6.03 - Win X64 - Stuck highlighting.
Reported several times (like viewtopic.php?t=82552), afaik an error of the updated scintilla.dll. Try copying the old scintilla.dll from 5.73 and see if it works (make a backup before).
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: PB 6.03 - Win X64 - Stuck highlighting.
Thanks.
I had a quick look for other reports but clearly wasn't thorough enough.
I'll keep the Scintilla.dll as it is, as this isn't a game breaker.
I had a quick look for other reports but clearly wasn't thorough enough.
I'll keep the Scintilla.dll as it is, as this isn't a game breaker.
Re: PB 6.03 - Win X64 - Stuck highlighting.
Im even not sure if that fixes it. I kept my one too and restart the IDE from time to time.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: PB 6.03 - Win X64 - Stuck highlighting.
Another related Redo bug, follow instruction in comment
Now the manipulated line loose syntax highlight(black in my theme). This happens with any qty of lines and with Cut(Ctrl+X) in similar conditions

Code: Select all
leave_me=1
move_me_up=2 ; MoveLineUp(Ctrl+Shift+Up) > Undo(Ctrl+Z) > Redo(Ctrl+Y)
leave_me=3

Re: PB 6.03 - Win X64 - Stuck highlighting.
Does it still happens ? I never noticed this here.
Re: PB 6.03 - Win X64 - Stuck highlighting.
Yes, it still happens once or twice a day if I'm coding, especially if I'm using any undo / redo functions; when it happens it'll normally result in in a crash shortly afterwards if I don't restart the IDE.
I have a source code file somewhere which can reproduce this Fred - it doesn't occur if you just copy the source code (so no point pasting here), I think it's something to do with the IDE options that are located at the bottom of the source file, maybe incorrect folding options & the IDE isn't handling it well.
I have a source code file somewhere which can reproduce this Fred - it doesn't occur if you just copy the source code (so no point pasting here), I think it's something to do with the IDE options that are located at the bottom of the source file, maybe incorrect folding options & the IDE isn't handling it well.
Re: PB 6.03 - Win X64 - Stuck highlighting.

please, fix this to
// Edit: fixed broken image link (Kiffi)
Re: PB 6.03 - Win X64 - Stuck highlighting.
A reproducable example [Win x64, PB v6+] - this one occurred when porting some C code across - it has been stripped down to bare minimum.
The code needs to be copied & pasted in its entirety into notepad & saved as a .pb file - load the file into the PB IDE and follow the steps shown on lines 17-19. It doesn't occur if pasted directly into IDE.
The code needs to be copied & pasted in its entirety into notepad & saved as a .pb file - load the file into the PB IDE and follow the steps shown on lines 17-19. It doesn't occur if pasted directly into IDE.
Code: Select all
Procedure.f sdCompound_Test(px.f, py.f)
Protected.f a, b
;
ProcedureReturn a
EndProcedure
float blah ( in vec2 p, in vec2 a, in vec2 b, float w )
{
; > Place cursor at end of line 31 & tap the delete key (not the backspace key) - Procedure from line 32 now on line 31.
; > Now press enter to move procedure back to line 32 - auto-indent occurs. Ctrl-Z to undo twice
; Double click on one of the 'vec2's on lines 22 or 23, highlighting now stuck on
; vec2 vec2 vec2 vec2
; vec2 vec2 vec2 vec2
;
;
Return ;
}
Procedure Init_Main()
Protected x
;
;
;
;
;
;
;
;For x = 0 To 10000 : SqrLup.f(x) = Sqr(x / 1000.0) : Next
EndProcedure
Procedure generatePaletteLookup(ColFront,ColBack,ColOutline, OutlineThickness.f = 1.0, dbg_wav.a = #True)
EndProcedure
; IDE Options = PureBasic 6.10 LTS (Windows - x64)
; CursorPosition = 24
; FirstLine = 12
; Folding = 6
; Optimizer
; EnableXP
; DPIAware
; DisableDebugger
; CompileSourceDirectory
; Compiler = PureBasic 6.10 beta 4 - C Backend (Windows - x64)
Re: PB 6.03 - Win X64 - Stuck highlighting.
Can't reproduce on my end. Tried about 10 times.pjay wrote: Thu Jun 26, 2025 7:57 am A reproducable example [Win x64, PB v6+] - this one occurred when porting some C code across - it has been stripped down to bare minimum.
The code needs to be copied & pasted in its entirety into notepad & saved as a .pb file - load the file into the PB IDE and follow the steps shown on lines 17-19. It doesn't occur if pasted directly into IDE.
Code: Select all
Procedure.f sdCompound_Test(px.f, py.f) Protected.f a, b ; ProcedureReturn a EndProcedure float blah ( in vec2 p, in vec2 a, in vec2 b, float w ) { ; > Place cursor at end of line 31 & tap the delete key (not the backspace key) - Procedure from line 32 now on line 31. ; > Now press enter to move procedure back to line 32 - auto-indent occurs. Ctrl-Z to undo twice ; Double click on one of the 'vec2's on lines 22 or 23, highlighting now stuck on ; vec2 vec2 vec2 vec2 ; vec2 vec2 vec2 vec2 ; ; Return ; } Procedure Init_Main() Protected x ; ; ; ; ; ; ; ;For x = 0 To 10000 : SqrLup.f(x) = Sqr(x / 1000.0) : Next EndProcedure Procedure generatePaletteLookup(ColFront,ColBack,ColOutline, OutlineThickness.f = 1.0, dbg_wav.a = #True) EndProcedure ; IDE Options = PureBasic 6.10 LTS (Windows - x64) ; CursorPosition = 24 ; FirstLine = 12 ; Folding = 6 ; Optimizer ; EnableXP ; DPIAware ; DisableDebugger ; CompileSourceDirectory ; Compiler = PureBasic 6.10 beta 4 - C Backend (Windows - x64)
Re: PB 6.03 - Win X64 - Stuck highlighting.
Interesting - What IDE version are you using?
I just tried it using the /portable switch (so a vanilla setup) and it still did it.
I just tried it using the /portable switch (so a vanilla setup) and it still did it.
Re: PB 6.03 - Win X64 - Stuck highlighting.
PB 6.21 Windows x64pjay wrote: Thu Jun 26, 2025 9:05 am Interesting - What IDE version are you using?
I just tried it using the /portable switch (so a vanilla setup) and it still did it.
Re: PB 6.03 - Win X64 - Stuck highlighting.
I also have this problem once a day, but I haven't encountered it for a long time. My current version is compiled from the downloaded sources on 06/16/2025. Restarting the IDE helps, but if you have many new unsaved files open, you'll need to deal with the files to avoid losing them when you restart.
An old problem exists when a part of the text is not highlighted when you paste code or cancel it. This can be fixed by selecting the code.
Could it be because of an old computer that can't handle the callback function?
An old problem exists when a part of the text is not highlighted when you paste code or cancel it. This can be fixed by selecting the code.
Could it be because of an old computer that can't handle the callback function?
Re: PB 6.03 - Win X64 - Stuck highlighting.
Thanks; i'm still using PB 6.21 beta 9 so maybe the newest IDE has resolved it, I'll give it a go.Thorium wrote: PB 6.21 Windows x64
Not in my case, my laptop has a 13900h CPU & main PC an AMD 7700x & it happens on both. Did you try the replication steps above?AZJIO wrote: Thu Jun 26, 2025 12:59 pm Could it be because of an old computer that can't handle the callback function?
Re: PB 6.03 - Win X64 - Stuck highlighting.
Yes, I did it now, and I have a problem. The vec2 text is permanently highlighted.