Open natsumi opened 7 years ago
@natsumi Please check whether the issue also occurs in emacs -Q, to rule out that it's a Spacemacs problem.
I also have this problem using Emacs for OS X. I've found that the problem happens when I use ShiftIt and don't subsequently reposition the Emacs window by clicking and dragging it.
General Pattern
It seems that manually dragging the window updates flycheck-pos-tip.
The painful part is that my Emacs config uses M-x toggle-frame-maximized
to fullscreen Emacs. This similarly "magic" repositioning of the window causes the same problem. So I have to barely click and barely drag the window a tiny bit, then the problem is fixed.
It seems that flycheck-pos-tip isn't tuned into macOS "window changed position" callback as good as it could be. Manually repositioning the window updates the tooltip position, but when using keyboard shortcuts or toggle-frame-maximized to reposition Emacs, flycheck-pos-tip doesn't get the updated position, forcing you to manually reposition the window.
Emacs for Mac OS X 25.3 macOS 10.13.5 flycheck-pos-tip 20180610.915 pos-tip 20150318.813
It looks like this uses the pos-tip package... maybe it's a bug in there? More comments here: https://www.emacswiki.org/emacs/PosTip
Oooo I upgraded to Emacs for Mac OS X 26.1 and now it all works as expected! Yay magical bug fix in Emacs 👏
Image illustrates the problem:
The tool tip never appears where the cursor is and instead appears outside of the emacs window at the edge of my monitor screen.
System Info :computer: