These are chat archives for coala/coala-bears

20th
Dec 2018
Boxuan Li
@li-boxuan
Dec 20 2018 03:10
@sladyn98 Ask someone else who knows about corobo
Abhinav Kaushlya
@abhishalya
Dec 20 2018 03:46
@Akhelesh Install coala-bears
Abhinav Kaushlya
@abhishalya
Dec 20 2018 03:52
@gutsytechster I haven't read the comments on the PR but I used it like this
@sladyn98 You should post questions related to corobo in its own room. For the issue, I think you should try out the solution yourselves and then if everything works fine, you can create a PR. I don't think anyone else is working on the issue, so don't worry about the assignment.
Sladyn
@sladyn98
Dec 20 2018 04:07
Oh I thought according to coala policies, I needed an assignment so I came here to get an assignment, Thanks @li-boxaun and @abhishalya
Abhinav Kaushlya
@abhishalya
Dec 20 2018 04:12
Yeah, you should because it may happen that multiple people work on the same issue and someone's work wouldn't be counted at last. So to avoid this, assignment of a member is required. But till then it is fine to check your solution and see if everything works. Since you have also added comment first of all, the issue should be yours.
Btw, you mentioned the wrong person ^
Sladyn
@sladyn98
Dec 20 2018 04:14
@abhishalya He would be more than happy to get a free thanx :)
Naveen Naidu
@Naveenaidu
Dec 20 2018 04:34

@abhishalya He would be more than happy to get a free thanx :)

:stuck_out_tongue_closed_eyes:

Abhinav Kaushlya
@abhishalya
Dec 20 2018 04:47
@naveentvelu Please post the complete error you get on running pytest.
Naveen T
@naveentvelu
Dec 20 2018 04:50

`> raise AssertionError(messages)
E AssertionError: {'default': <coalib.results.Diff.Diff object at 0x7fd4b655ff60>} != {'default': <coalib.results.Diff.Diff object at 0x7fd4b2e01f28>}
E - {'default': <coalib.results.Diff.Diff object at 0x7fd4b655ff60>}
E ? ^^^ ^^^
E
E + {'default': <coalib.results.Diff.Diff object at 0x7fd4b2e01f28>}
E ? ^^^^ ^^
E : diffs mismatch.

../coalabear/lib/python3.6/site-packages/coalib/testing/LocalBearTestHelper.py:141: AssertionError
`

Abhinav Kaushlya
@abhishalya
Dec 20 2018 04:54
@naveentvelu And the test file also please... You can create a gist for that
Naveen T
@naveentvelu
Dec 20 2018 04:57
Never created a gist before..
test_file5 = """{
"a": 5
}"""
correct_test_file5 = """{
"a": 5
}"""
diff = Diff.from_string_arrays(test_file5.split('\n'), correct_test_file5.split('\n'))
This is the expected diff .
This diff is passed using the diffs attribute of result class.
diffs={'default': diff}
And this attribute is being compared directly.
Abhinav Kaushlya
@abhishalya
Dec 20 2018 05:03
For creating gist -> go to github -> click on + sign -> new gist
I just need the code for your check_results
Naveen T
@naveentvelu
Dec 20 2018 05:04
Thanks.
The code for check_results in in LocalBearTestHelper.py in coalib
Abhinav Kaushlya
@abhishalya
Dec 20 2018 05:06
I meant your code to test the exception/error message for which you used check_results
Just create a gist for the test file please
Was doing that.. :)
Abhinav Kaushlya
@abhishalya
Dec 20 2018 05:08
Thanks :)
Akhelesh
@Akhelesh
Dec 20 2018 06:21
@abhishalya I have installed coala-bears coala and coala-utils too not sure why it isn't able to find coal
coalalib
Abhinav Kaushlya
@abhishalya
Dec 20 2018 13:27
@Akhelesh Install the requirements freshly with a new virtualenv. That should do the job I guess.
Akhelesh
@Akhelesh
Dec 20 2018 13:29
@abhishalya I have created new virtualenv and installed everything from scratch almost 5 to 10 times but it's giving same results.... followed the coala documentation too but none is helping
How do the bears normally find the coalalib library
Abhinav Kaushlya
@abhishalya
Dec 20 2018 13:29
Can you give the result of your pip freeze
Akhelesh
@Akhelesh
Dec 20 2018 13:30
Because though it's installed they are unable to find it
Yeah
(coala) akhelesh@Hubble:/media/Vol-B/Projects/coala-bears$ pip3 freeze
aenum==2.0.10
ansicolor==0.2.6
apertium-lint==0.29
apipkg==1.5
appdirs==1.4.3
argcomplete==1.9.4
args==0.1.0
astroid==2.1.0
atomicwrites==1.2.1
attrs==18.2.0
autoflake==0.7
autopep8==1.4.3
Babel==2.6.0
backcall==0.1.0
bandit==1.5.1
bashate==0.5.1
bitstring==3.1.5
brotlipy==0.7.0
cached-property==1.4.3
certifi==2018.11.29
cffi==1.11.5
chardet==3.0.4
cli-helpers==1.0.2
click==6.6
clint==0.5.1
cmakelint==1.3.4.1
coala==0.11.0
-e git+https://github.com/Akhelesh/coala-bears.git@7c5e4c83469ba00ca2494c4c86adb2f53bf96816#egg=coala_bears
coala-utils==0.6.7
codecov==2.0.15
colorama==0.3.9
colorlog==2.10.0
coverage==4.4.1
coverage-config-reload-plugin==0.2.0
coverage-env-plugin==0.1
cppclean==0.12
cpplint==1.3.0
crayons==0.1.2
decorator==4.3.0
defusedxml==0.5.0
dennis==0.9
dependency-management==0.4.0
docopt==0.6.2
docutils==0.14
docutils-ast-writer==0.1.2
dominate==2.3.5
dparse==0.4.1
eradicate==0.1.6
execnet==1.5.0
freezegun==0.3.11
future==0.17.1
git-url-parse==1.1.0
gitdb2==2.0.5
GitPython==2.1.11
gprof2dot==2017.9.19
guess-language-spirit==0.5.3
html-linter==0.4.0
HTTPolice==0.5.2
idna==2.8
ipdb==0.11
ipython==7.2.0
ipython-genutils==0.2.0
isort==4.3.4
jedi==0.13.1
Jinja2==2.10
jsonschema==3.0.0a3
jupyter-core==4.4.0
language-check==1.1
lazy-object-proxy==1.3.1
libclang-py3==3.4.0
lml==0.0.3
lxml==4.2.5
mando==0.3.3
MarkupSafe==1.1.0
mccabe==0.6.1
memento-client==0.6.1
moban==0.2.4
more-itertools==4.3.0
munkres3==1.0.5.5
mypy==0.590
mypy-lang==0.4.6
nbformat==4.4.0
nltk==3.4
numpy==1.15.4
packaging==16.8
pandas==0.23.4
parso==0.3.1
pathspec==0.5.9
pbr==5.1.1
pexpect==4.6.0
pickleshare==0.7.5
pip-api==0.0.4
pkginfo==1.4.2
pluggy==0.7.1
polib==1.1.0
prompt-toolkit==2.0.7
proselint==0.7.0
ptyprocess==0.6.0
py==1.7.0
pycodestyle==2.4.0
pycparser==2.19
pydocstyle==2.1.1
pyflakes==2.0.0
Pygments==2.3.0
pylint==2.2.2
pyparsing==2.3.0
PyPrint==0.2.6
pyroma==2.2
pyrsistent==0.14.7
pytest==3.6.4
pytest-cov==2.6.0
pytest-env==0.6.2
pytest-error-for-skips==1.0.0
pytest-forked==0.2
pytest-instafail==0.3.0
pytest-mock==1.10.0
pytest-profiling==1.3.0
pytest-pythonpath==0.7.3
pytest-reorder==0.1.1
pytest-reqs==0.2.0
pytest-timeout==1.3.3
pytest-travis-fold==1.3.0
pytest-xdist==1.25.0
python-dateutil==2.7.5
pytz==2018.7
PyYAML==3.13
radon==1.4.0
requests==2.21.0
requests-mock==1.5.2
requests-toolbelt==0.8.0
restructuredtext-lint==1.0.1
rstcheck==3.3.1
ruamel.yaml==0.15.81
safety==1.8.4
sarge==0.1.5.post0
scspell3k==2.1
singledispatch==3.4.0.3
six==1.12.0
smmap2==2.0.5
snowballstemmer==1.2.1
sqlparse==0.2.4
stevedore==1.30.0
tabulate==0.8.2
template-remover==0.1.9
termcolor==1.1.0
terminaltables==3.1.0
testfixtures==5.3.1
traitlets==4.3.2
twine==1.7.4
typed-ast==1.1.0
unidiff==0.5.5
urllib3==1.24.1
vim-vint==0.3.18
virtualenv-clone==0.3.0
vulture==0.25
wcwidth==0.1.7
wrapt==1.10.11
yamllint==1.12.1
yapf==0.21.0
Naveen Naidu
@Naveenaidu
Dec 20 2018 13:34
@Akhelesh Please use pastebin.com in future if you paste codes. It would be easier for people to view it.
Akhelesh
@Akhelesh
Dec 20 2018 13:35
yes
Abhinav Kaushlya
@abhishalya
Dec 20 2018 13:35
@Akhelesh Try this now pip install --upgrade git+https://github.com/coala/coala#egg=coala
Akhelesh
@Akhelesh
Dec 20 2018 13:35
I will now to see if works
Prashant Sharma
@gutsytechster
Dec 20 2018 13:45
Thanks @abhishalya :P
Akhelesh
@Akhelesh
Dec 20 2018 16:27
@abhishalya that worked I am no more getting the coalib not found error. Could you please explain what was the issue here? And now that I am not getting this error, another error popped in https://pastebin.com/ZnZ9kmMS . Could please look into it
AbhiSid
@asrdav
Dec 20 2018 18:54
Can anyone help me in finding a django project in coala?