Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carloscheddar opened this issue Jan 13, 2016 · 9 comments

Comments

@carloscheddar
Copy link

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: syl20bnr/spacemacs#4595

@swsnr
Copy link
Contributor

swsnr commented Jan 14, 2016

@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?

@carloscheddar
Copy link
Author

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)

@swsnr
Copy link
Contributor

swsnr commented Jan 15, 2016

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

swsnr added a commit that referenced this issue Jan 15, 2016
In an attempt to work around GH-15
swsnr added a commit that referenced this issue Jan 15, 2016
In an attempt to work around GH-15
@swsnr
Copy link
Contributor

swsnr commented Jan 15, 2016

@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 😊

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 ☺️

@swsnr
Copy link
Contributor

swsnr commented Jan 18, 2016

Were you able to test the fix?

@carloscheddar
Copy link
Author

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.

@swsnr
Copy link
Contributor

swsnr commented Jan 19, 2016

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

@aaronjensen
Copy link
Member

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)

@thornjad
Copy link

thornjad commented Jun 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants