These are chat archives for coala/coala-bears

25th
Oct 2017
John Vandenberg
@jayvdb
Oct 25 2017 09:26
corobo file issue coala-bears Create linter for gindent
http://gindent.cvs.sourceforge.net/viewvc/gindent/
corobo
@co-robo
Oct 25 2017 09:26
Here you go: coala/coala-bears#2079
Surya Widi
@blazeu
Oct 25 2017 14:22

http://docs.coala.io/en/latest/Users/Install.html#js-dependencies states that you run npm install -g, however that only installs the coala-bears globally (which is useless) not the dependency stated in package.json (e.g. eslint)

I'm a little bit confused.

So I must install npm dependency manually (e.g. npm install -g eslint to run ESLintBear)
John Vandenberg
@jayvdb
Oct 25 2017 14:36
coala/documentation@20238d1
coala/documentation#14
@blazeu , you want to create the issue to fix that ?
Surya Widi
@blazeu
Oct 25 2017 14:42
yeah
Surya Widi
@blazeu
Oct 25 2017 14:50
But I haven't found a solution for installing all dependencies in package.json globally.
I think a better solution would be to install dependencies interactively
e.g. when coala is missing something, ask the user to install it
John Vandenberg
@jayvdb
Oct 25 2017 14:59
ya, I found it isnt easy, especially if trying to install the correct versions found in package.json.
but ... you dont need to give the answer when creating the issue .
Surya Widi
@blazeu
Oct 25 2017 14:59
Yes, I'm currently making one right now
John Vandenberg
@jayvdb
Oct 25 2017 15:00
One sure fire solution is to install them locally , and then add the directory to NODE_PATH (https://github.com/coala/docker-coala-base/blob/master/Dockerfile#L11)
Surya Widi
@blazeu
Oct 25 2017 15:04
This symlink is created when running npm install -g
.npm-packages/lib/node_modules/coala-bears
John Vandenberg
@jayvdb
Oct 25 2017 15:12
ya, npm install -g is useless
Surya Widi
@blazeu
Oct 25 2017 15:15
coala/documentation#471