Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: multiple root documents #293

Closed
EzraIsReal opened this issue Apr 27, 2018 · 6 comments
Closed

Error: multiple root documents #293

EzraIsReal opened this issue Apr 27, 2018 · 6 comments

Comments

@EzraIsReal
Copy link

EzraIsReal commented Apr 27, 2018

Hi I've been trying to figure doorstop out for the past couple of days, but the documentation doesn't cover the problems I've encountered, so I just need help figuring this issue out: it seems that I cannot execute any commands because of multiple root documents, how do I go about fixing that?

@jacebrowning
Copy link
Member

When running $ doorstop create <prefix> the second time, it needs to be passed the --parent <prefix> option to link the two documents.

You can also manually add parent: <prefix> to one of the .doorstop.yml files.

Can you share the out of running $ doorstop -v?

@nikhilsharma5
Copy link

nikhilsharma5 commented May 23, 2018

I am facing same problem @jacebrowning. For me, it happens when I tried adding more requirements after a couple of days and it just starts throwing "multiple root documents".

Resolved: Ran "mvn clean" command and was able to create reqs/tests.

@jacebrowning
Copy link
Member

What is mvn?

I'm not sure how to help without more information. What was the output of $ doorstop -v?

@nikhilsharma5
Copy link

nikhilsharma5 commented Jun 1, 2018

@jacebrowning this issue was resolved after running mvn clean. Thank you for quick reply tho 👍
mvn is maven command. I have my doorstop files inside my maven project.

@jacebrowning
Copy link
Member

Good to know.

@manojmsrit
Copy link

Getting error "Multiple Root documents"

Below is the output for the "doorstop -v" command.

(base) MANOJs-MacBook-Air:doorstop manojdeshpande$ doorstop -v
looking for documents in /Users/manojdeshpande...
found document: SRD
found document: SRD
found document: HLTC.txt
found document: HLTC
found document: REQ
found document: TUT
found document: LLT
found document: HLT
found document: SRD
found document: TST
building tree...
root of the tree: SRD
root of the tree: SRD
ERROR: multiple root documents

How to delete the documents and re create new one's

(base) MANOJs-MacBook-Air:doorstop manojdeshpande$ doorstop create MNQ --parent SRD .
building tree...
ERROR: multiple root documents

(base) MANOJs-MacBook-Air:doorstop manojdeshpande$ doorstop delete SRD
building tree...
ERROR: multiple root documents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants