SlickEdit Community

Archived Beta Discussions => SlickEdit 202x Beta Discussions => SlickEdit 2020 v25 Beta Discussion => Topic started by: photometer on August 21, 2020, 03:49:56 PM

Title: Cursor position changes on Window Focus Loss
Post by: photometer on August 21, 2020, 03:49:56 PM
This happens on Windows V25.2 (have not checked it on Linux).
Symptom-1:
I am editing a file somewhere in the middle of the file. I have a dual monitor. So, I select an app on the second monitor, thus the SE window loses focus. I can see that SE is still showing the line that I am working on, in the SE window. If I click back on the SE window to resume my coding, the cursor will jump to top of the file.
Symptom-2:
SE moves the cursor to top of the file as soon as the SE window loses focus.

Reproducibility:
Around once a week. I generally restart SE and the issue goes away. However today even after restarting three times, I see this issue.
Title: Re: Cursor position changes on Window Focus Loss
Post by: photometer on August 21, 2020, 04:39:41 PM
I rebooted my computer and still see this issue. It is very annoying. I am using the retrace macro to get back to the current cursor position. Btw, I see this issue even if the retrace macro is not running.
Title: Re: Cursor position changes on Window Focus Loss
Post by: Clark on August 21, 2020, 11:23:15 PM
Please post your user.cfg.xml. Maybe there's an option that makes this happen.
Title: Re: Cursor position changes on Window Focus Loss
Post by: photometer on August 25, 2020, 01:55:26 AM
I have opened a case CAS-72614-7WPM and uploaded my user.cfg.xml

Additional piece of information: My source code is on NFS and has high latency. My tag files are on the local file-system. I am wondering if this issue happens when Background tagging is working.
Title: Re: Cursor position changes on Window Focus Loss
Post by: photometer on August 25, 2020, 10:12:35 PM
Another information:
If the SE loses focus, the SE icon on the bottom windows bar will be flashing as shown in the attachment. Also, I see the green clock icon on the bottom of SE and it would be saying Updating workspace tag file

Title: Re: Cursor position changes on Window Focus Loss
Post by: photometer on August 26, 2020, 06:32:33 PM
I can confirm this issue persists on v25 Beta3
Title: Re: Cursor position changes on Window Focus Loss
Post by: Dennis on August 26, 2020, 07:01:24 PM
Check [config]/logs/stack.log to verify that you are not encountering a Slick-C problem.

What programming language are you working in when this happens?
Title: Re: Cursor position changes on Window Focus Loss
Post by: SlickEdit Support on August 26, 2020, 07:21:13 PM
Hi photometer,

Did you save and load the macro we sent you this morning?

Best,
SlickEdit Support
Title: Re: Cursor position changes on Window Focus Loss
Post by: SlickEdit Support on August 26, 2020, 08:48:34 PM
Apologies photometer!

We sent you the wrong instructions.

With the macro file saved to your local machine, in SlickEdit you will need to load this file via Macro-->Load Module, navigating to the file to load it.  The editor should then display "Module(s) Loaded" on the status bar.

Regards,
SlickEdit Support
Title: Re: Cursor position changes on Window Focus Loss
Post by: photometer on August 27, 2020, 05:00:06 PM
I have downloaded and loaded the macro. Am I supposed to see some kind of popup when the cursor jumps to top? Do I need to load the macro every time I start the SE application?
Title: Re: Cursor position changes on Window Focus Loss
Post by: Clark on August 27, 2020, 05:22:02 PM
This macro will remain loaded unless you delete vslick.sta, change your config directory, or update to beta 4 (not available).

If this macro detects a line number change during a timer feature, it will display a pop up debug window with the function name.