flycheck-posframe icon indicating copy to clipboard operation
flycheck-posframe copied to clipboard

Missing the last char of the error message

Open Yevgnen opened this issue 6 years ago • 2 comments

Thanks for the great package.

There's a bit small thing that may be improved as illustrated in the following image

screen shot 2018-12-21 at 22 17 13

As compared to the pos-tip version, the ] is missing!

Yevgnen avatar Dec 21 '18 14:12 Yevgnen

I can't reproduce this issue locally - can you provide any more details on your setup or more details on how to reproduce it - if I open a python file with too long lines I see the entire error message.

alexmurray avatar Dec 27 '18 10:12 alexmurray

Hi, I just found that (setq flycheck-posframe-prefix "! ") caused the issue. The issue does not happened to every warning or error but some of them. Configs:

(package-initialize)

(require 'flycheck)
(require 'flycheck-posframe)
(setq flycheck-posframe-prefix "! ")
(add-hook 'python-mode-hook 'flycheck-mode)
(add-hook 'flycheck-mode-hook 'flycheck-posframe-mode)

Then open a Python buffer and select python-pylint checker. Then enter

import numpy as np

def fun():
    np = 1

Place the cursor the np of the last line. You should see something like

screen shot 2018-12-29 at 11 10 18

However, the predefined prefix work just fine

screen shot 2018-12-29 at 11 12 39

Yevgnen avatar Dec 29 '18 03:12 Yevgnen