-
Notifications
You must be signed in to change notification settings - Fork 784
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
Content rendering error in MDN (HTML, JS, CSS) docsets #1155
Comments
error same as , the javascript docset |
Same error, using just an initial html docset |
Same error |
Zeal 0.6.0, Ubuntu 18.04
React, Bash and some others working fine |
The following docsets has the error (content rendering error) after installing updates to the docsets:
|
Docsets produced from MDN (HTML, CSS, JS, SVG) are broken because of the new JS functionality. It appears to be fixed by the mdn/kuma#5996. Unfortunately, WebKit (and also Firefox) can't load polyfills over the @dania-prog I cannot reproduce crashes with the Java docsets. Is it possible that you are affected by #868? Perl and RubyMotion docsets didn't have index page set, should be fixed now. Refresh the docset list, and reinstall the docsets. The WordPress docset has incorrect |
I sometimes set the |
I find it can fix temporary by remove the |
Nice fix zjiffun-- here's the same solution turned into a little function you can add to your .bashrc that'll fix all the docs with that problem: zeal-docs-fix() {
pushd "$HOME/.local/share/Zeal/Zeal/docsets" >/dev/null || return
find . -iname 'react-main*.js' -exec rm '{}' \;
popd >/dev/null || exit
} |
@Kapeli what does Dash show in such scenario? |
So Dash simply displays its own home page instead of docset's index page? |
Yes, but only when there's no docset index page. Otherwise, it shows the index page. Future version of Dash will have a "Show index page" option which the user will have to press specifically (something like how it works on Dash for iOS). For docsets without an index page, I won't show that option. |
Unfortunately, serving MDN docset from a local HTTP server doesn't help. I think even with the polyfills Qt WebKit is just too old, while for example Firefox began to render properly. Reported Qt WebKit problem in qtwebkit/qtwebkit#922. Considering the amount of issues with Qt WebKit, at this point it seems like attempting another migration to Qt WebEngine. There is also a pending PR. |
@trollixx: Chrome and Chromium have a command-line flag to enable local file serving, in case that's useful: chrome.exe --allow-file-access-from-files I use this to test HTML Imports locally, for example. |
Is there any view yet on when this might be fixed? We love Zeal and depend on it for serving docsets in a completely offline teaching environment, but since the last docset updates we've lost HTML, CSS, JS etc docsets. Is there any way of getting the old docsets back in the meantime so that we at least have something we can use? |
@swedishpotato if you have access to any Unix-like OS with Shell (GNU/Linux, MacOSX, *BSD), see #1155 (comment) for easy fix of the docsets. If you only have Windows, you can manually clean-up the relevant docsets by deleting the offending JS file from each docset's folder:
The exact JS filename may differ in that |
Much thanks for your tips! Here is my batch version: :: set you own doc path
set DOCPATH=C:\ZealDocs
set CORRUPT_FILE=Contents\Resources\Documents\developer.mozilla.org\static\build\js\react-main.*.js
ren "%DOCPATH%\JavaScript.docset\%CORRUPT_FILE%" *.js.bak
ren "%DOCPATH%\CSS.docset\%CORRUPT_FILE%" *.js.bak
ren "%DOCPATH%\HTML.docset\%CORRUPT_FILE%" *.js.bak
ren "%DOCPATH%\SVG.docset\%CORRUPT_FILE%" *.js.bak
pause |
Only add slash before %CORRUPT_FILE%
|
A small tweak: find ~/.local/share/Zeal/Zeal/docsets -name "react-main.*.js" -exec rm --interactive {} \; |
@anibalsanchez Building on top: If you're on Windows, has Git for Windows, using the default docset storage directory (
Press |
It took a bit of hunting to find where docsets are installed for a Flatpak-installed setup :
Here's an invocation building off of other comments to clean out these problematic JavaScript files within the docsets:
source: https://docs.flatpak.org/en/latest/sandbox-permissions.html |
Now that this issue is resolved, would it be possible to cut a new release? I'm assuming the package maintainers for the assorted Linux distros (and Flatpak) are watching for a new tagged version to be released before packaging and distributing it. |
#1155 (comment) fixed the rendering issue and displays the front page for the JavaScript docset, but whenever I click on any of the other links, I get a The exact error is as follows: This is because the path that was created on my device was I'm using Manjaro Linux KDE, and installed Zeal using pacman. Also, I can confirm this happened only for the JavaScript docset and not the HTML and CSS docsets. |
If you are using Windows, i think this is more straight forward. |
same problem running on Ubuntu 20.04 64bit desktop on rpi4 way the issue is closed if the problem persist? |
Then you will have to do same (delete the react-mainxxxxxx.js files) for both HTML.docset and JavaScript.docset |
Because, as @trollixx commented on May 5, the issue has been fixed by the port to Qt WebEngine. It just has not been released yet and will enter release v0.7.0. Until that is out, you need to either compile Zeal yourself, try the CI builds or apply the workaround. |
On Windows, you can use
to find and eradicate the react-main.js files. |
have the same problem with zeal 0.6.1, I cant see javascript, html, css |
|
Taken from: zealdocs/zeal#1155 (comment) Signed-off-by: Antonio Gutierrez <[email protected]>
After updating to zeal 0.6.1, the content could not be displayed in the Tabs. Pasted below is the display error.
kindly assist to resolve. Thanks
The text was updated successfully, but these errors were encountered: