nscaife / linter-chktex

An Atom Linter plugin for LaTeX, using chktex
https://atom.io/packages/linter-chktex
MIT License
14 stars 10 forks source link

executablePath not honored until some other shell command is issued #32

Open lsfinn opened 8 years ago

lsfinn commented 8 years ago

Platform: Mac OSX 10.11.6 Atom v1.9.9 linter-check 1.3.0 Other installed packages: git-plus v5.16.2 grammar-token-limit 0.1.1 language-latex 0.6.1 latextools v0.8.2 linter 1.11.16

Have added to config.cson 'linter-chktex': executablePath: "/Library/TeX/texbin/chktex"

I start the atom application and edit a latex file. When I go to save the file I get two alert boxes: 1) Failed to spawn command chktex. Make sure chktex is installed and on your PATH 2) Error: spawn chktex ENOENT at exports._errnoException (util.js:890:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32) at onErrorNT (internal/child_process.js:348:16) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickCallback (internal/process/next_tick.js:98:9)

If I build the latex file using latextools:build, modify the file and save again the linter-chktex package behaves as expected.