Author Topic: Highlight a symbol then immediately click on another symbol  (Read 199 times)

at5dapa1

  • Senior Community Member
  • Posts: 271
  • Hero Points: 22
Highlight a symbol then immediately click on another symbol
« on: August 30, 2023, 01:19:09 pm »
Example: a simple C project with this single file:
Code: [Select]
#include <stdio.h>

struct s {
    int i1;
    char *p_123;
    double real_val;
    double img_val;
};

int main (int argc, char *argv[])
{
    static struct s s1;
    s1.i1 = 2;
    s1.p_123 = NULL;
    s1.real_val = s1.img_val = 0;
    printf("hello world\n");
    return(0);
}

Click on s1 and wait to  become highlighted, then in less than 2s click on one of the struct members: s1 will remain highlighted and part of the clicked member will get highlighted too only in the clicked location (not everywhere where the member is defined): and also the part which is highlighted depends on the length of the previous highlight (in this example s1 has 2 characters so if I click on p_123 then only 'p' and '_' get highlighted: please see picture for more examples).
However, when I hover the struct member and wait for description tooltip to appear and then I click then the highlight moves to the new selection as expected (the member gets highlighted everywhere and s1 is not anymore).
Hope you can repro and find a cure, thanks!
Daniel

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6582
  • Hero Points: 511
Re: Highlight a symbol then immediately click on another symbol
« Reply #1 on: August 30, 2023, 02:58:31 pm »
Please post your user.cfg.xml

at5dapa1

  • Senior Community Member
  • Posts: 271
  • Hero Points: 22
Re: Highlight a symbol then immediately click on another symbol
« Reply #2 on: August 30, 2023, 07:19:17 pm »
I just uploaded my config (3 parts) onto case "CAS-74257-3KLK": hope they reach destination.
I tried to repro with a clean config, but didn't... till I started adding some compiler tags, then it started to appear, but a bit harder (had to click here and there many times till started to catch it, while in the working config happens easily).

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3910
  • Hero Points: 512
Re: Highlight a symbol then immediately click on another symbol
« Reply #3 on: September 05, 2023, 01:24:36 pm »
I just can not reproduce this, even with your configuration running on Windows.

Are you using remote desktop when this happens?  If so, from what to what using what?

at5dapa1

  • Senior Community Member
  • Posts: 271
  • Hero Points: 22
Re: Highlight a symbol then immediately click on another symbol
« Reply #4 on: September 06, 2023, 01:40:24 pm »
No, no remote files or operation, all local.
When you did try with my config did you let the tags enabled? I think for me happens only when I have those large tag databases, because when I tried with a clean config everything was fine, but when I started to add tags it started to appear in the temp config too...

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3910
  • Hero Points: 512
Re: Highlight a symbol then immediately click on another symbol
« Reply #5 on: September 12, 2023, 05:49:06 pm »
I was finally able to reproduce this.  Next step is to find the problem.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3910
  • Hero Points: 512
Re: Highlight a symbol then immediately click on another symbol
« Reply #6 on: September 12, 2023, 08:37:04 pm »
Found it.  A fix will be in the next beta build.  Thanks for your patience.