Re: [Htmlvalidator-help] tidy FreeBSD
Brought to you by:
mgueury
From: Marc G. <mg...@sk...> - 2006-06-08 16:17:46
|
Hi Dominic, I added the 'BSD' check and reuploaded a new version of the source here: (08 june 2006) http://users.skynet.be/mgueury/mozilla/preview_080.html It contains several change to make the extension work better on Unix system. > Like not trying to load the .so library since it does not exist anyway. > And do not try to write in the firefox program directory Currently, it works fine on Linux, I still need to update the web site to put the 1rst linux version there. and some explanations of the things I would like to get fixed before to make a prod version of the 0.8x. Marc [LoN]Kamikaze wrote: > Marc Gueury wrote: > >> Hi Dominic, >> >> I think that what happens is that the detection of the OS does not work >> for freeBSD. >> There is a code in the tidyInstall.js that detect the OS. >> >> function tidyInstallGetPlatform() >> { >> var platform = navigator.platform.toLowerCase(); >> if (platform.indexOf('linux') != -1) >> { >> return 'linux'; >> } >> if (platform.indexOf('mac') != -1) >> { >> return 'mac'; >> } >> return 'windows'; >> } >> >> Based on this, the extension tries to detect the OS and file extension. >> I think that it will not work for FreeBSD ? >> Just I do not know how to do it in a better way. If you could correct >> this, I will include the fix in the next beta version >> that I finally succeeded to compile and run on Linux. >> >> Marc >> >> > > It should be enought to add: > > if (platform.indexOf('bsd') != -1) > { > return 'bsd'; > } > > > Your tidyInstallGetPlatformName() falls back to lib{name}.so so that it returns the right file name. > > Adding this I now get the following error message: > > Html Validator-002: Failed autoRegistering renamed platform specific libnstidy.so > > > Upon the next start of Firefox I get the usual library not found page. The JavaScript console holds the following messages: > > Warning: reference to undefined property Components.classes['@mozilla.org/tidy;1'] > Source File: chrome://tidy/content/tidyUtil.js > Line: 119 > > Error: Components.classes['@mozilla.org/tidy;1'] has no properties > Source File: chrome://tidy/content/tidyUtil.js > Line: 119 > > Warning: anonymous function does not always return a value > Source File: chrome://dta/content/dta/addingFunctions.js > Line: 90, Column: 1 > Source Code: > }, > > Error: oTidyUtil.tidy has no properties > Source File: chrome://tidy/content/tidyBrowser.js > Line: 1194 > > Error: oTidyUtil.tidy has no properties > Source File: chrome://tidy/content/tidyBrowser.js > Line: 1194 > > Error: oTidyUtil.tidy has no properties > Source File: chrome://tidy/content/tidyBrowser.js > Line: 188 > > Error: oTidyUtil.tidy has no properties > Source File: chrome://tidy/content/tidyBrowser.js > Line: 1194 > > Error: oTidyUtil.tidy has no properties > Source File: chrome://tidy/content/tidyBrowser.js > Line: 1194 > > Error: oTidyUtil.tidy has no properties > Source File: chrome://tidy/content/tidyBrowser.js > Line: 1194 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Htmlvalidator-help mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlvalidator-help > |