AtomLinter / linter-puppet-lint

Atom linter plugin for Puppet, using puppet-lint
6 stars 3 forks source link

Question: setup puppet-lint from bundler #138

Closed obarcelonap closed 6 years ago

obarcelonap commented 7 years ago

Hi, I am installing the dependencies of the project locally using bundler in a directory called ".bundle". As the project has puppet-lint as dependency, the executable can we found under the following path: "./.bundle/ruby/2.3.0/gems/puppet-lint-2.3.0/bin/puppet-lint" Is it possible to setup the puppet-lint to look at that executable?

mschuchard commented 7 years ago

What happens when you try it?

obarcelonap commented 7 years ago

Sorry, I didn't attached the output. Here it goes:

linter-registry.js [sm]:137 [Linter] Error running Puppet-Lint Error: Failed to spawn command `./.bundle/ruby/2.3.0/gems/puppet-lint-2.3.0/bin/puppet-lint`. Make sure `./.bundle/ruby/2.3.0/gems/puppet-lint-2.3.0/bin/puppet-lint` is installed and on your PATH
    at /home/barcelon/.atom/packages/linter-puppet-lint/node_modules/atom-linter/lib/helpers.js:130
    at process._tickCallback (internal/process/next_tick.js:103)
(anonymous) @ linter-registry.js [sm]:137
mschuchard commented 7 years ago

Try using the absolute path instead of a relative path.