PB 6.03 - Win X64 - Stuck highlighting.
Posted: Fri Oct 20, 2023 7:54 pm
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.


http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
leave_me=1
move_me_up=2 ; MoveLineUp(Ctrl+Shift+Up) > Undo(Ctrl+Z) > Redo(Ctrl+Y)
leave_me=3
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)
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)
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.
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?
Yes, I did it now, and I have a problem. The vec2 text is permanently highlighted.