Recent

Author Topic: Lazarus Release 2.2.0 - macOS lost cursor  (Read 1804 times)

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 286
Lazarus Release 2.2.0 - macOS lost cursor
« on: February 09, 2022, 10:36:54 am »
Hiya,

Just started using the new version - thank you for releasing it.

I tried to raise a bug on bug tracker about the disappearing cursor on macOS - but I'm not sure if it got added. It seems that this bug has got worse with the latest version.

Before 2.2, I wouldn't have a cursor after certain events (e.g. dialogue boxes popping up produced by the program, then quitting back to the IDE) - I never really got to the bottom of this as the issue wasn't a big one. I could get the cursor back by switching to another unit tab then back again. However, as of 2.2, it seems I lose the cursor more frequently.

I've noticed that it goes if I paste a block of copied text, or save the file, using the keyboard shortcuts the cursor goes (although I can still carry on editing). In fact, I've just found out if I select a block of text the delete it, by pressing delete, I lose the cursor there too. This makes using it on macOS difficult, which is a shame as it is my main OS for writing applications now.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2032
  • Former Delphi 1-7, 10.2 user
Re: Lazarus Release 2.2.0 - macOS lost cursor
« Reply #1 on: February 09, 2022, 10:47:23 am »
I occasionally lose the cursor on macOS, but it is not consistent and has not become worse with the latest release. In my case, I lose it when using Safari to lookup Apple documentation or use a search engine, but not always. I can get it back by going to Project > Project Options and cancelling.

Quote
In fact, I've just found out if I select a block of text the delete it, by pressing delete, I lose the cursor there too.

I tried this three times and the cursor never disappeared... it's annoyingly inconsistent.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12170
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.2.0 - macOS lost cursor
« Reply #2 on: February 09, 2022, 12:49:26 pm »
If it comes back, after switching windows, then this may be a focus related issue....

Depending on that, there are possible workarounds...

- Focus: Tools > Options > Editor > General : "Visible Caret in unfocused editor"
- Something else: Tools >  Options > Editor > Display > Color : Set a custom color for the "Caret" (In the section "Text" underneath "Bracket Highlight")


When looking for "causes" of the issue, look out for
- focus changes
- scrolling

Getting debug info
Compile the IDE with -dVerboseFocus -dSynCaretDebug -dSYNSCROLLDEBUG -dVerboseKeys
Run with a log --debug-log=file.
When the caret has gone, enter something easy to identify, e.g. press "a" 5 times. (That can be found in the log).
Edit the log. Cut off all but the last maybe 100 lines (before the focus loss). Remove any sensitive logged key-strokes (everything you typed is in the log)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12170
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.2.0 - macOS lost cursor
« Reply #3 on: February 09, 2022, 12:54:56 pm »
I tried to raise a bug on bug tracker about the disappearing cursor on macOS - but I'm not sure if it got added.

I couldn't find any report https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 286
Re: Lazarus Release 2.2.0 - macOS lost cursor
« Reply #4 on: February 09, 2022, 06:35:35 pm »
Cheers Martin - I'll give those options a go. If I still have issues I'll try and raise a bug report, again.

Incidentally, on macOS, it's Lazarus->Preferences, not Tools->Options...just in case anyone thought they were going blind like me :D

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 286
Re: Lazarus Release 2.2.0 - macOS lost cursor
« Reply #5 on: February 09, 2022, 06:36:37 pm »
I tried this three times and the cursor never disappeared... it's annoyingly inconsistent.

Yep - since I posted this I've been using Lazarus and sometimes it does go, while others it doesn't.

 

TinyPortal © 2005-2018