aboutcode-org / aboutcode-org/scancode-toolkit

Virtual Codebase shows `RecursionError: maximum recursion depth exceeded` when full root is used during scanning

Open
#2,019 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

### Description

`Virtual Codebase` is showing `Recursion Error` upon using its Virtual Codebase , for scanning a this following [json file](https://drive.google.com/file/d/1okZlHwP0eziNY2ghQ3iwWwUZm3YUvEh7/view?usp=sharing) **(scanned with scancode toolkit version 2.x)**
The command used for scanning is `scancode --json-pp ../asd.json --from-json new.json`
The following are the exceptions raised:
![Screenshot from 2020-04-26 20-00-17](https://user-images.githubusercontent.com/44219625/80310486-9d5d5480-87f8-11ea-8e68-eb51d5ff5e33.png)

### How To Reproduce
IMO the following error is raised when we are dealing with files where the `path` variable in the json file contains many sub directories. The json file which I attached in the link contains file with the following path `"/Users/sesser/code/nexb/scancode-toolkit/samples/README` .
`Actually I am not cent percent sure weather this is the cause of the following exception or not , but I noticed that this error is caused for such a kind of json files`

### System configuration
OS Ubuntu 18.04 ,Python 3.6

* What OS are you running on? (Windows/MacOS/Linux) linux
* What version of scancode-toolkit was used to generate the scan file? 3.1.2
* What installation method was used to install/run scancode? (pip/source download/other)source download

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.