Community
Participate
Working Groups
Some users have reported that on edit of a page, there is an error message in the browser: Error executing command tidy -m -config "D:/My Documents/My EclipseSDK Workspaces/epfproject2/EPFWiki/config/tidy.cfg" "D:/My Documents/My EclipseSDK Workspaces/epfproject2/EPFWiki/public/development_wikis/openup/openup_basic/guidances/concepts/core_principle_balance,_ssG6MMvpEdqukPpotm3DYg.html_EPFWIKI_co.html":
I improved part documentation on Tidy install because a similar problem can occur if Tidy is not installled. In the Development Guide it was part of the step http://wiki.eclipse.org/index.php/EPF_Wiki_Development_Guide#Install_Ruby_and_Ruby_Gems. This is confusing so I have made this a separate step http://wiki.eclipse.org/EPF_Wiki_Development_Guide#Install_HTML_Tidy. In this case it is not the problem. The problem is that the Tidy command reports back that the command failed when there are only warnings? See in method tidy_file in generic.rb. raise "Error executing command #{cmdline}: #{$?}" if !tidy_success. I can run the command from the command line without problems, there are only warnings. A workaround is to remove the raise statement and ignore the Tidy exit status. So in the method tidy_file the last statement, the raise statement can be removed.
Tidy exit status is 0 for success, 1 for warnings and 2 for errors. Changed tidy_file so that it tests that the exit status is not 2.
OK