flycheck-pos-tip icon indicating copy to clipboard operation
flycheck-pos-tip copied to clipboard

On OSX flycheck messages show up on the monitor where the mouse cursor is

Open carloscheddar opened this issue 8 years ago • 9 comments

Using OSX flycheck popup messages for errors and warnings show up on the monitor that has the mouse cursor instead of only displaying on top of the spacemacs window.

You can see more information about this issue here: https://github.com/syl20bnr/spacemacs/issues/4595

carloscheddar avatar Jan 13 '16 16:01 carloscheddar

@carloscheddar I've failed to reproduce this issue, using a regular homebrew build of Emacs 25.1. No matter where my mouse cursor is, the tooltip always appears right below the point (i.e. the Emacs cursor).

Would you tell me your Emacs version and your OS X version?

swsnr avatar Jan 14 '16 10:01 swsnr

I'm running OS X El Capitan and a port of Emacs 24.5.1 https://github.com/railwaycat/homebrew-emacsmacport Also just to be clear this happens when I run it in a GUI.

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.8
  • Spacemacs branch: master (rev. ef5a2ad)
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(emacs-lisp dockerfile git markdown html ruby org javascript syntax-checking yaml)

carloscheddar avatar Jan 15 '16 00:01 carloscheddar

@carloscheddar Could you show me the value of pos-tip-use-relative-coordinates in your Emacs?

swsnr avatar Jan 15 '16 10:01 swsnr

@carloscheddar Being unable to reproduce the issue I'm fishing in muddy waters; I have pushed a change which explicitly passes the coordinates of the frame to pos-tip, based on an uneducated guess of what could probably cause this issue :blush:

I'd appreciate if you could test the next MELPA build of this extension to see whether the problem disappears. I can't promise anything, though :relaxed:

swsnr avatar Jan 15 '16 10:01 swsnr

Were you able to test the fix?

swsnr avatar Jan 18 '16 10:01 swsnr

I updated all packages today and tested the fix but it's still happening. Let me know if I can provide any more information about this.

carloscheddar avatar Jan 19 '16 15:01 carloscheddar

@carloscheddar Could you try to reproduce the issue in normal GNU Emacs?

swsnr avatar Jan 19 '16 15:01 swsnr

I can reproduce this if I use a window manager like slate to move the window. It doesn't happen every time, but occasionally the tooltip will appear in the wrong place after a movement.

edit: every time i switch back to the emacs window from another window the tooltip is in the wrong place. If I resize the window or move it, the next tooltip will appear positioned correctly.

I'm using regular gnu emacs on osx (24.5.1)

aaronjensen avatar Feb 03 '16 19:02 aaronjensen

After being bothered by this for a long time, I forked this package and tried to fix it myself. Despite being able to consistently reproduce this, I can't figure out a fix. I hate recommending other packages on issues, but switching to flycheck-popup-tip works perfectly out of the box on MacOS for me, and claims to work better in TUI as well.

It looks like this is the route taken by Doom as well: doomemacs/doomemacs#318

thornjad avatar Jun 02 '22 20:06 thornjad