PB 6.03 - Win X64 - Stuck highlighting.

Post bugs related to the IDE here
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

PB 6.03 - Win X64 - Stuck highlighting.

Post 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
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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).
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
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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.
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post by jacdelad »

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
gamparono
New User
New User
Posts: 5
Joined: Tue Nov 14, 2023 6:33 pm

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post by Fred »

Does it still happens ? I never noticed this here.
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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.
gamparono
New User
New User
Posts: 5
Joined: Tue Nov 14, 2023 6:33 pm

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post by gamparono »

Image
please, fix this to

// Edit: fixed broken image link (Kiffi)
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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)
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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.
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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.
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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?
pjay
Enthusiast
Enthusiast
Posts: 251
Joined: Thu Mar 30, 2006 11:14 am

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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?
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: PB 6.03 - Win X64 - Stuck highlighting.

Post 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.
Post Reply