Closed NathanJang closed 8 years ago
I am seeing the same errors with this same issue. Definitely a strange one, I see identical line number references.
Yeah I see the same NaN errors in the column numbers. Not sure how to resolve them except to turn off user warnings.
Does this happen on every document? I'm not able to reproduce it. Can you provide a minimal .tex example so I can try to figure out what is going on?
@nscaife, the NaN errors come from using the float table environment. A somewhat minimal code that reproduces the errors is:
\documentclass{article}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|c|}
\hline
Test \\
\hline
\end{tabular}
\end{table}
\end{document}
The warnings that chktex generates are:
@edwinksl Thanks for sending the sample! It looks like this problem was caused by an error in my regex for parsing the chktex output. I've published a patch, can you test it and verify that it solves your issue?
@nscaife It no longer shows NaN on @edwinksl's minimal sample. Can anyone else confirm?
@nscaife @NathanJang I can confirm the NaN errors are gone. Thanks!
Great! Sorry it took so long to fix!
Thanks @nscaife!
When editing my
ia.tex
document and using linter-chktex, I saw some strange behaviour in the issues panel at the bottom of the window (if that's what you call it). The indicator showed multiple issues, but only displayed them when I clicked on the "Project" button, but the issues pointed to the file I was editing, but displayed NaN for column numbers.After that, I toggled the linter from the command palette and toggled it back on again. This is when I saw this error.
Some empty tabs also appeared to be opened in the background with a similar name (
ia.tex:163:1
as the tab name).Please advise whether this should be reported to the linter package itself.
In the meantime, I'm suppressing user warnings (
-n44
in the package setting's args).Thanks for maintaining this package nonetheless :blush:
chktex
outputAtom Version: 1.1.0 System: Mac OS X 10.11.1 Thrown From: linter package, v1.10.0
Stack Trace
Uncaught TypeError: Invalid Point: (25, NaN)
Commands
Config
Installed Packages