alexmurray / flycheck-posframe

Show flycheck errors via posframe.el
60 stars 9 forks source link

Missing the last char of the error message #10

Open Yevgnen opened 5 years ago

Yevgnen commented 5 years ago

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!

alexmurray commented 5 years ago

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.

Yevgnen commented 5 years ago

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