flycheck / flycheck-popup-tip Goto Github PK
View Code? Open in Web Editor NEWDisplay Flycheck error messages using popup.el
License: GNU General Public License v3.0
Display Flycheck error messages using popup.el
License: GNU General Public License v3.0
Bug
Write a .cs
script with an error:
|XvoidX Foo() {
^
\___ Cursor is |. Wait until flycheck-popup-tip shows up indicating an error
and press C-space then C-e to highlight line
The end result is that the cursor moves to the end of the line (due to C-e
), but doesn't mark. Disabling flycheck-popup-tip
fixes this problem.
Edit
C-space
twice at the original position (in the diagram) "fixes" the issue.C-e
) "fixes" the issue.Hi, thanks for this package!
Just thought I'd mention your init.el
installation instructions did not work for me. I had to manually enable flycheck-popup-tip-mode
in every new buffer.
I am using Emacs 26.1, without x.
I managed to get it to work by using:
(with-eval-after-load 'flycheck
(flycheck-popup-tip-mode))
instead of
(with-eval-after-load 'flycheck
'(add-hook 'flycheck-mode-hook 'flycheck-popup-tip-mode))
When selecting text in emacs by holding the SHIFT key and moving my cursor around with the ARROW keys, if I step on a word highlighted by flycheck, it will open the popup with the error message, clearing my selection at the same time.
This is particularly infuriating when trying to fix errors reported by flycheck when refactoring code, since selecting the offending piece of code, usually results in stepping on a flycheck error which clears the whole thing.
Steps to reproduce the behavior:
I would expect that, when selecting code, the popup should not open, or if it must, it should not clear the selection.
@cpitclaudel, I'll like to bring this package in Melpa. flycheck-pos-tip
doesn't work for me, I'm using Emacs mostly from TTY. Does it make sense to place to place it under Flycheck org? For me is the same, I'll support it anyway.
When in evil visual mode, moving on a symbol marked as warning/error will trigger the popup but return in normal mode, making impossible to select things with errors/warning
I sometimes open emacsclient -nw
after starting emacs daemon with the GUI, in which case the tip about (if (display-graphic-p)โฆ
doesn't help, since it's only evaluated on daemon startup. This however seems to work:
(setq flycheck-pos-tip-display-errors-tty-function #'flycheck-popup-tip-show-popup)
(flycheck-pos-tip-mode)
Hello,
I thought I would add this comment here after (finally) figuring out why Emacs would sometimes soft-hang at 100% CPU when hovering over /some/ flycheck errors-hints in a terminal:
This only happens towards the end of the buffer, e.g., if there is an error on the last line and you hover over it, Emacs will freeze.
This is due to some conflict with displaying TUI tooltips when both lsp-ui
and flycheck-popup-tip
wants to display something.
I haven't really had time to dig into /why/ this happens, and eventually I just concluded that lsp-ui essentially supersedes flycheck-popup-tip
anyways so I will just be using that. But, if this occurs to you, now you might now why and have an inkling of how to proceed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.