Closed aalexanderr closed 3 years ago
@abhaykatheria do you want to take a look at this?
Oh ok cool.
@aalexanderr @rnjudge I ran tern on the given image using same commands(BOTH OF THEM) and it ran well. Here's the report I got. report.html
And these are the logs
tern report -x scancode -f html -o report.html -d Dockerfile
log-1
tern.log
docker build -t onappython - < Dockerfile && tern report -x scancode -f html -o report.html -i onappython:latest
log-2
tern.log
@aalexanderr I would recommend updating tern and scancode-toolkit.
@abhaykatheria What version of tern did you use? The html report links to this commit: https://github.com/tern-tools/tern/commit/c8f336a7137e0f34d7cb7a55ee4fcb9cf104b7b4 but it shows me 404.
I've checked your fork but the only active branch I see (master) is the same as here.
Both tern and scancode I used are latest releases. Same with python- latest release of 3.6.
$ scancode --version
ScanCode version 3.2.3
Tern version:
$ tern --version
Tern version 2.3.0
python version = 3.6.12 (default, Aug 17 2020, 23:45:20)
(before submitting I have verifed it on 2 different host machines with different vagrant versions and two different versions of generic/ubuntu2004 versions (latest and a bit older one).
I installed it manually from the source code (Instructions are in contribution.md). I didn't made any commits I checked the git logs. its strange the commit hash in report is pointing to nowhere. @rnjudge can you take a look at this ..?
I did everything as in linked contributing, then pip3 install scancode-toolkit[full]
and went with steps to reproduce.
It resulted in the same error as initially reported.
BTW the unknown hash is the last commit from the onap-python repo :)\
Additionally, the report you've linked has no licenses listed :(
Bumping the priority on this. Will work on a fix in the next week or two. @abhaykatheria if you have time, would be lovely for you to take a look also ;) We have two users reporting issues with the html format when using scancode.
@aalexanderr Sincere apologies for the delay on this fix. Should work now.
Describe the bug Can't generate html output when running tern with scancode:
To Reproduce Steps to reproduce the behavior:
Error in terminal
Expected behavior Get a html report
Environment you are running Tern on Enter all that apply
Please attach files if they exist