Page 1 of 2

PB 6.03 - Win X64 - Stuck highlighting.

Posted: Fri Oct 20, 2023 7:54 pm
by pjay
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.

Image

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Fri Oct 20, 2023 8:13 pm
by jacdelad
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).

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Fri Oct 20, 2023 9:00 pm
by pjay
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.

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Fri Oct 20, 2023 9:08 pm
by jacdelad
Im even not sure if that fixes it. I kept my one too and restart the IDE from time to time.

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Tue Nov 14, 2023 6:43 pm
by gamparono
Another related Redo bug, follow instruction in comment

Code: Select all

leave_me=1
move_me_up=2 ; MoveLineUp(Ctrl+Shift+Up) > Undo(Ctrl+Z) > Redo(Ctrl+Y)
leave_me=3
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

Image

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Sat Feb 22, 2025 9:17 pm
by Fred
Does it still happens ? I never noticed this here.

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Sun Feb 23, 2025 12:11 am
by pjay
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.

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Tue Apr 15, 2025 9:40 am
by gamparono
Image
please, fix this to

// Edit: fixed broken image link (Kiffi)

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Thu Jun 26, 2025 7:57 am
by pjay
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.

Posted: Thu Jun 26, 2025 8:33 am
by Thorium
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)
Can't reproduce on my end. Tried about 10 times.

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Thu Jun 26, 2025 9:05 am
by pjay
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.

Posted: Thu Jun 26, 2025 10:28 am
by Thorium
pjay 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.
PB 6.21 Windows x64

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Thu Jun 26, 2025 12:59 pm
by AZJIO
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?

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Thu Jun 26, 2025 1:17 pm
by pjay
Thorium wrote: PB 6.21 Windows x64
Thanks; i'm still using PB 6.21 beta 9 so maybe the newest IDE has resolved it, I'll give it a go.
AZJIO wrote: Thu Jun 26, 2025 12:59 pm Could it be because of an old computer that can't handle the callback function?
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?

Re: PB 6.03 - Win X64 - Stuck highlighting.

Posted: Thu Jun 26, 2025 2:20 pm
by AZJIO
pjay wrote: Thu Jun 26, 2025 1:17 pm Did you try the replication steps above?
Yes, I did it now, and I have a problem. The vec2 text is permanently highlighted.