Skip to content
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

certain mlint errors aren't displayed by flycheck #1

Open
dsharoh opened this issue Oct 13, 2015 · 0 comments
Open

certain mlint errors aren't displayed by flycheck #1

dsharoh opened this issue Oct 13, 2015 · 0 comments

Comments

@dsharoh
Copy link

dsharoh commented Oct 13, 2015

First off, thanks for your work on matlab-mode!

It seems that errors with a range of column extents, those with a dash, are not highlighted in matlab buffers with flycheck-mode enabled.
For example a nasty error like this:
<< L 19 (C 9-11): INV(A)_b can be slower and less accurate than A\b. Consider using A\b for INV(A)_b or b/A for b*INV(A). >>

Would not be highlighted in the matlab buffer seemingly due to the << (C 9-11) >> portion.

Errors like this:
<< L 7 (C 6): Terminate statement with semicolon to suppress output (within a script). >>

Would be highlighted as expected.

I was able to fix this problem with this modification to my flycheck-matlab-mlint.el
From line 63:

;; old line
;'((warning line-start "L " line " (C " (1+ digit) "): " (message) line-end))
;; new line
'((warning line-start "L " line (message) line-end))

I don't know if this is a good solution or if there is a better one, but I am at least seeing my errors now.

@dsharoh dsharoh changed the title certian mlint errors aren't displayed by flycheck certain mlint errors aren't displayed by flycheck Oct 13, 2015
JeremyWeed pushed a commit to JeremyWeed/matlab-mode that referenced this issue Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant