Recent

Author Topic: White vertical line in IDE after update  (Read 790 times)

Fibonacci

  • Hero Member
  • *****
  • Posts: 647
  • Internal Error Hunter
White vertical line in IDE after update
« on: October 21, 2024, 01:49:52 pm »
I updated my IDE, and this thing you can see in the screenshot(s) is now there - a vertical white line I cannot remove or change its color. So I went back to earlier commit, and that fixed it, but then I noticed there was a nice new function SetCaretPosInActiveEditor - I want that! So I updated to commit 1580d1778ea96d22b0fa9982f299e74402fa850e ("IDE: Improve setting cursor position in new programs. Issue #32089, patch by n7800."), but that white line is there!

Anyone knows how to fix it? I checked everything color-related in the Options, and nothing changes this white line.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8129
Re: White vertical line in IDE after update
« Reply #1 on: October 21, 2024, 02:01:18 pm »
That looks like something to do with the RH gutter that the IDE usually uses to display the position of breakpoints etc. relative to the entire file...

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10687
  • Debugger - SynEdit - and more
    • wiki
Re: White vertical line in IDE after update
« Reply #2 on: October 21, 2024, 02:04:11 pm »
Hard to tell, as I can't map the colors. I think I see a similar spacing, but in a gray color...

Can you try and open 
   ide\sourcesyneditor.pas

Line 2484 (at least if you update to latest main git)
Code: Pascal  [Select][+][-]
  1.       with TSynGutterSeparator.Create(Parts) do
  2.         Name := 'SynGutterSeparatorR2';
  3.  

Line 2497
Code: Pascal  [Select][+][-]
  1.       with TSynGutterSeparator.Create(Parts) do begin
  2.         Name := 'SynGutterSeparatorR3';
  3.         AutoSize := False;
  4.         Width := 1;
  5.         LineWidth := 0;
  6.       end;
  7.  

Remove those 2 blocks of code (ensure that you have the correct block by checking the NAME).

Fibonacci

  • Hero Member
  • *****
  • Posts: 647
  • Internal Error Hunter
Re: White vertical line in IDE after update
« Reply #3 on: October 21, 2024, 02:12:05 pm »
Hell Yeah! Fixed! Thank you :-*

Code: Diff  [Select][+][-]
  1. diff --git a/ide/sourcesyneditor.pas b/ide/sourcesyneditor.pas
  2. index 7f82b002a0..7857d54a9f 100644
  3. --- a/ide/sourcesyneditor.pas
  4. +++ b/ide/sourcesyneditor.pas
  5. @@ -2269,8 +2269,6 @@ begin
  6.        with DebugGutter do
  7.          Name := 'TIDESynGutterDebugHL';
  8.        {$ENDIF}
  9. -      with TSynGutterSeparator.Create(Parts) do
  10. -        Name := 'SynGutterSeparatorR2';
  11.        with TSynGutterLineOverview.Create(Parts) do begin
  12.          Name := 'SynGutterLineOverview1';
  13.          with TIDESynGutterLOvProviderIDEMarks.Create(Providers) do
  14. @@ -2282,12 +2280,6 @@ begin
  15.          with TIDESynGutterLOvProviderPascal.Create(Providers) do
  16.            Priority := 0;
  17.        end;
  18. -      with TSynGutterSeparator.Create(Parts) do begin
  19. -        Name := 'SynGutterSeparatorR3';
  20. -        AutoSize := False;
  21. -        Width := 1;
  22. -        LineWidth := 0;
  23. -      end;
  24.      end;
  25.    finally
  26.      DecChangeLock;

Fibonacci

  • Hero Member
  • *****
  • Posts: 647
  • Internal Error Hunter
Re: White vertical line in IDE after update
« Reply #4 on: October 21, 2024, 02:20:33 pm »
@Martin_fr: While we are at it, do you happen to know why, after I start the IDE, sometimes, not always, I have to reposition/resize this thing you see in the GIF, as it forgets its position/size?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10687
  • Debugger - SynEdit - and more
    • wiki
Re: White vertical line in IDE after update
« Reply #5 on: October 21, 2024, 03:06:12 pm »
Unfortunately no.

n7800

  • Full Member
  • ***
  • Posts: 199
Re: White vertical line in IDE after update
« Reply #6 on: October 21, 2024, 04:52:59 pm »
but then I noticed there was a nice new function SetCaretPosInActiveEditor - I want that! So I updated to commit 1580d1778ea96d22b0fa9982f299e74402fa850e ("IDE: Improve setting cursor position in new programs. Issue #32089, patch by n7800.")

Glad to hear! At first, after reading the message inattentively, I was afraid that my patch had broken something... ))

@Martin_fr: While we are at it, do you happen to know why, after I start the IDE, sometimes, not always, I have to reposition/resize this thing you see in the GIF, as it forgets its position/size?

Do you have the "Automatically adjust IDE main window height" option in the "Environment/Window" options section?

Although, even if not, it should still remember the size...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10687
  • Debugger - SynEdit - and more
    • wiki
Re: White vertical line in IDE after update
« Reply #7 on: October 21, 2024, 05:23:59 pm »
Fixed the white line. Well in the main editor => the preview still has it... (todo)

Fibonacci

  • Hero Member
  • *****
  • Posts: 647
  • Internal Error Hunter
Re: White vertical line in IDE after update
« Reply #8 on: October 21, 2024, 05:50:00 pm »
Cool, thanks @n7800 and @Martin_fr for the patches ;D

When I set the auto-adjust option on, it "feels" like it works - I cant move or resize anything, but theres a horrible side effect...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10687
  • Debugger - SynEdit - and more
    • wiki
Re: White vertical line in IDE after update
« Reply #9 on: October 21, 2024, 08:12:36 pm »
Cool, thanks @n7800 and @Martin_fr for the patches ;D

When I set the auto-adjust option on, it "feels" like it works - I cant move or resize anything, but theres a horrible side effect...

I see, your entire IDE is painted with black background. That can much faster tire you eyes, so you must take more breaks.

;) SCNR

I am a big believer in the light side....

 

TinyPortal © 2005-2018