OpenGenus / cosmos-search

:seedling: The next generation unbiased real-time privacy and user focused code search engine for everyone; Join us at https://discourse.opengenus.org/
http://search.opengenus.org
GNU General Public License v3.0
150 stars 75 forks source link

Incorrect metadata generated due to inconsistent folder structure #54

Open ankan17 opened 6 years ago

ankan17 commented 6 years ago

I'm submitting a ... (check one with "x")

Description:

Metadata is not generated correctly because of inconsistent folder structure and the code is not able to handle that situation.

Expected Behavior:

Correct metadata should be generated, if possible, irrespective of the folder structure. There may be a strict folder structure for the cosmos project.

Actual Behavior:

Folder structure --

cosmos/code/ operating_system/src
|-- scheduling
|    |-- round_robin_scheduling
|         |   round_robin_scheduling.cpp
|         |   round_robin_scheduling.java
|         |-- round_robin_c
|              |  README.md
|              |  queue.h
|              |  queue.c
|              |  round_robin.c

Metadata generated: "operating_system/src/scheduling/round_robin_scheduling/round_robin_c": ["README.md", "queue.h", "round_robin.c", "queue.c"]

Steps to Reproduce:

See the metadata.json file

Would you like to work on this issue?

AneriMehta commented 6 years ago

@Pl4gue I have changed the metadata.json file. What should I do next?

smehta2205 commented 6 years ago

Hey @Pl4gue this issue has been solved by me and my teammate. What can we do now @AdiChat ? Should we create a pull request?

flxwu commented 6 years ago

Restructuring the metadata.json isn't a proper solution for this as we are generating the metadata regularly. The problem stated by the author is the folder structure. But you may submit a PR anyway :)

AneriMehta commented 6 years ago

Thanks @Pl4gue, We are thinking of solving the problem of folder structure and then submitting a PR.