8000 Provide a way to disable displaying errors on cursor · Issue #2108 · flycheck/flycheck · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Provide a way to disable displaying errors on cursor #2108

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

1 task done
Martinsos opened this issue Jan 26, 2025 · 3 comments
Open
1 task done

Provide a way to disable displaying errors on cursor #2108

Martinsos opened this issue Jan 26, 2025 · 3 comments

Comments

@Martinsos
Copy link
Martinsos commented Jan 26, 2025

Thank you for taking the time to improve Flycheck.

Checklist

  • I have checked existing issues for potential duplicates before creating this one.

Feature description

I would love to be able to make flycheck not display error information when cursor comes upon the error in the buffer.
Motivation is that I am currently using flycheck-inline and while I love it, I find the behaviour where the error appears whevener I go over the affected piece of code with my cursor, too aggressive, as it the rest of my code jump up and down even when I don't care about the error message. Instead, I would love to be able to display the error under cursor manually, when I need it.

I figured out that probably I can show error manually with flycheck-display-error-at-point, but I failed to find a way to disable automatic showing of errors.

Ideal behaviour would be that I have to manually trigger showing of error under the cursor, but that it dissapears on its own if error is fixed/removed or if I move my cursor away.
For example, this is how a tooltip in lsp-ui behaves like, exactly like this.

I imagine this could be some var we can toggle, and that would provide this behaviour in such case.

Describe alternatives you've considered

I have tried setting flycheck-display-errors-delay to nil or 0 or negative value but that just removes any delay.
I found the issue #1332 that was asking for this same feature, but it was closed, and solutions from it work only half way (at least when I tried them). It had a PR open, but it was taking long time to finish and was abandoned at the end.

Thanks for any help!

@jcs090218
Copy link
Member

Another option is sideline-flycheck.

@Martinsos
Copy link
Author

Another option is sideline-flycheck.

Thanks for mentioning! I am aware of sideline as an option, but I find it problematic when needing to display multi-line errors, and we get a lot of those in Haskell (where I do a lot of my development), they are not aligned well in the sideline and are quite hard to read.

But 7AD7 in general, I don't want something constantly jumping out as I move around the buffer, be it in the sideline or popup or minibuffer, I would leave instead to be able to have that info displayed on demand.

@jcs090218
Copy link
Member

Thanks for mentioning! I am aware of sideline as an option, but I find it problematic when needing to display multi-line errors, and we get a lot of those in Haskell (where I do a lot of my development), they are not aligned well in the sideline and are quite hard to read.

But in general, I don't want something constantly jumping out as I move around the buffer, be it in the sideline or popup or minibuffer, I would leave instead to be able to have that info displayed on demand.

It was recently resolved by introducing a new feature, sideline-truncate. Would you be willing to give that a try?

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

2 participants
0