These are chat archives for coala/coala-bears

20th
Feb 2018
Ankit Joshi
@MacBox7
Feb 20 2018 09:42
Under which type of bear will this fall coala/coala-bears#1637
Ishan Srivastava
@ishanSrt
Feb 20 2018 11:36
@MacBox7 linter bear
Monsij Biswal
@monsij
Feb 20 2018 13:10
Can somebody tell why this command coala -f src.c -d bears -b HelloWorldBear -L DEBUG --flush-cache isn't working .I have my .c file named src . The error message is:
No bears matching 'HelloWorldBear' were found. Make sure you have coala-bears installed or you have typed the name correctly.
I have my HelloWorldBear.py in the directory E:\gitrepo\coala\coalib\bears
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:22
You are not giving the correct path to your bear
Monsij Biswal
@monsij
Feb 20 2018 13:28
Yup i'm following
Im running from the folder having my .c file
Do I have to run from coala-tutorial repo?
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:30
no
it doesn’t matter where you run from
Monsij Biswal
@monsij
Feb 20 2018 13:31
ok then,Where else i might be going wrong?
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:31
you should just be giving the correct path to your bear
Monsij Biswal
@monsij
Feb 20 2018 13:31
is only bear not sufficient .I have also tried E:\gitrepo\coala\coalib\bears
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:33
not sure on windows paths. You tried front slashes?
Monsij Biswal
@monsij
Feb 20 2018 13:33
yup
Shrikrishna Singh
@sks444
Feb 20 2018 13:34
@monsij , coala -f src.c -d bears -b HelloWorldBear -L DEBUG --flush-cache it is not src.c it is src/*.c
Monsij Biswal
@monsij
Feb 20 2018 13:35
I think that is the command if i want to run on all .c files at src destination.
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:35
@sks444 he said he has a .c file named src
Shrikrishna Singh
@sks444
Feb 20 2018 13:35
@ishanSrt , oh that's confusing :smile:
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:36
and i think coala gives you correct error if the file name is inappropriate
Monsij Biswal
@monsij
Feb 20 2018 13:36
maybe a screenshot might help
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:37
can you try placing the bear in pwd and giving ./ or .\ whatever works for you to the -d tag?
if it works then there’s something wrong with your paths
Monsij Biswal
@monsij
Feb 20 2018 13:39
this is my current directory : https://ibb.co/ephmyH
this is my result after I run coala: https://ibb.co/ig2asc
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:47
@monsij as i said you just have to give the correct path to -d
like ../../coala/coalib/bears or absolute path :point_up: February 20, 2018 7:01 PM. Either one should work fine, if you give it in the correct format for windows.
Monsij Biswal
@monsij
Feb 20 2018 13:50
Still the same error
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:51
I am not sure whether you use / or \ or \\ as file delimiters. Or use something like cygwin or any other bash terminal emulator. Can’t make out what you are using from the screens
Monsij Biswal
@monsij
Feb 20 2018 13:52
okay!
Yup that helped
Thanks a lot for bearing with it :smile:
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:53
What helped you?
Monsij Biswal
@monsij
Feb 20 2018 13:53
/ in the absolute path for the bear
Ishan Srivastava
@ishanSrt
Feb 20 2018 13:54
Great!
Monsij Biswal
@monsij
Feb 20 2018 13:54
Thanks again!