Skip to content

Fix the bug when build apidoc under windows crygwin environment. - #114

Closed
jiangytcn wants to merge 1 commit into
apache:masterfrom
jiangytcn:apidoc
Closed

jiangytcn wants to merge 1 commit into
apache:masterfrom
jiangytcn:apidoc

Conversation

@jiangytcn

Copy link
Copy Markdown

Currently, when building apidoc under windows error occured caused by python can not understand the directory of gen_toc.py file.
Besides gen_toc.py can not receive large parameter.The commit works fine with 4.4.1 and 4.4.2 should works fine with other branches.

@yadvr

yadvr commented Mar 12, 2015

Copy link
Copy Markdown
Member

@jiangyt thanks for the patch. LGTM but I'll wait for anyone who can confirm this on windows for us. Later, I'll test if it works for *nix environment will merge it.

@Cookie-Wang

Copy link
Copy Markdown

@jiangyt thanks , i resolve my issue by this 。my cygwin is 2.8 and cloudstack is 4.4.2.thanks !

@yadvr

yadvr commented Mar 12, 2015

Copy link
Copy Markdown
Member

@Cookie-Wang have you confirmed that this works for you?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of looping on the found files (argfiles), you can simply give pass it to gen_toc_file?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bhaisaab Argument list too long erro will triger under windows , so i split the argument.
Don't know if it exists under other distros.Can you check it?

@yadvr

yadvr commented Mar 24, 2015

Copy link
Copy Markdown
Member

Hi, this commit breaks for unix environments. So I've created a fix using yours which seems to work for me; can you test it on your cygwin environment?

  • python "$thisdir/gen_toc.py" $(find . -type f)
  • PLATFORM=uname -s
  • if [[ "$PLATFORM" =~ .WIN. ]]
  • then
  • gen_toc_file="`cygpath -w $thisdir`\gen_toc.py"
    
  • argfiles=`find . -type f`
    
  • for file in $argfiles; do
    
  •     echo "Parse file $file";
    
  •     python $gen_toc_file $file;
    
  • done
    
  • else
  • python "$thisdir/gen_toc.py" $(find . -type f)
    
  • fi

@yadvr

yadvr commented Mar 24, 2015

Copy link
Copy Markdown
Member

@jiangyt I'm pushing a fix that I believe should work on Cygwin, please test that using master and let me know here or on dev ML. The fix at least won't break on Linux/Mac environments.

@asfgit asfgit closed this in 52ffccf Mar 24, 2015
@yadvr

yadvr commented Mar 24, 2015

Copy link
Copy Markdown
Member

this is the commit 52ffccf

yadvr added a commit that referenced this pull request Jan 20, 2021
This adds the add cluster form with domain/account dedication option.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Co-authored-by: Rohit Yadav <rohit@apache.org>
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

Successfully merging this pull request may close these issues.

3 participants