aboutcode-org / aboutcode-org/scancode-toolkit

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

Đang mở
#2,019 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.