Lint error when working in twig files


#1

When I try to edit a twig file I get this message for every line:

Error:

[RuntimeException]
The “–only-print-errors” option does not exist.

lint [–format [FORMAT]] [–] []
Error:

[RuntimeException]
The “–only-print-errors” option does not exist.

lint [–format [FORMAT]] [–] []
at parameters.exit (/Users/jan/.atom/packages/linter-twig/node_modules/atom-linter/lib/helpers.js:58:20)
at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:215:47)
at ChildProcess. (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:237:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

Does anyone have a solution?


#2

This looks like an error with the linter-twig package. You should probably contact the maintainers of the package. The Atom FAQ has information on how to contact the authors of any Atom community package or theme.


#3

I did.

composer global require “asm89/twig-lint” “@dev

does the trick.