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

Problem spawning chktex, though I have it in my PATH (on osx Yosemite) #4

Closed guziy closed 9 years ago

guziy commented 9 years ago

Hi:

I get this error in Atom:

/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:260 Uncaught BufferedProcessError: Failed to spawn command chktex. Make sure chktex is installed and on your PATH

although

which chktex

prints the following

/usr/texbin/chktex

The files are compiled fine... I am not sure how to solve this..

Thanks

nscaife commented 9 years ago

Does it work if you set the chktexExecutable parameter listed in the readme to /usr/texbin?

guziy commented 9 years ago

No it does not:

I tried using folder and executable paths...

Maybe I did something wrong in the cson file...

Below I've copy-pasted the file:

""" "*": "exception-reporting": userId: "7b0f20db-21f5-9e50-efb7-362f642534ce" welcome: showOnStartup: false core: disabledPackages: [ "linter-flake8" "linter-chktex" ] editor: invisibles: {} linter: subtleLinterErrors: [ "flake8" "pylint" ] "linter-pylint": executable: "/Users/san/Python/virtualenvs/py3.4/bin/pylint" "linter-flake8": executableDir: "/Users/san/Python/virtualenvs/py3.4/bin/" ignoreErrorCodes: [ "E501" ] "linter-chktex": chktexExecutable: "/usr/texbin"

"""

Thanks

2015-06-30 8:37 GMT-04:00 Nolen Scaife notifications@github.com:

Does it work if you set the chktexExecutable parameter listed in the readme to /usr/texbin?

— Reply to this email directly or view it on GitHub.

Sasha

nscaife commented 9 years ago

I'm sorry you're having this problem! It doesn't look like you did anything wrong. I don't have a Mac to test on, but I'll check and see if I can get someone else to try to reproduce it. In the meantime, if anyone can reproduce this and debug it, a pull request would be greatly appreciated!

guziy commented 9 years ago

Hi Nolen:

I've changed the

'linter-chktex': chktexExecutable: ....

to

'linter-chktex': chktexExecutablePath: ....

And it seems working OK.. Probably the example from the settings section in the README should be changed?

Cheers

2015-06-30 21:19 GMT-04:00 Nolen Scaife notifications@github.com:

I'm sorry you're having this problem! It doesn't look like you did anything wrong. I don't have a Mac to test on, but I'll check and see if I can get someone else to try to reproduce it. In the meantime, if anyone can reproduce this and debug it, a pull request would be greatly appreciated!

— Reply to this email directly or view it on GitHub https://github.com/nscaife/linter-chktex/issues/4#issuecomment-117385296 .

Sasha

nscaife commented 9 years ago

You're right! Bad documentation on my part :hankey:

I'll fix it, and thanks for reporting back!

JonnyCBB commented 9 years ago

@nscaife just so you are aware the README says

'linter-chktex':
    executablePath: "C:\\texlive\\2014\\bin\\win32"

But this didn't work for me. When I changed the text in the file to

'linter-chktex':
    chktexExecutablePath: "C:\\texlive\\2014\\bin\\win32"

as mentioned above then it worked for me. I believe this should be changed in the README.

Thanks for the package btw. It's awesome :+1:

dragonxlwang commented 8 years ago

Sorry to bring up this questions again, but although explicating setting the exe path works for me, it cannot read from PATH to set it by itself...

ghost commented 8 years ago

Oh thanks, i'll need work in látex all day... Thanks, bro On Nov 17, 2015 18:50, "dragonxlwang" notifications@github.com wrote:

Sorry to bring up this questions again, but although explicating setting the exe path works for me, it cannot read from PATH to set it by itself...

— Reply to this email directly or view it on GitHub https://github.com/nscaife/linter-chktex/issues/4#issuecomment-157502027 .