Zeal: Angular docset showing white screen

Created on 20 Jul 2019  路  39Comments  路  Source: zealdocs/zeal

Hi,

I'am using Zeal version 0.6.1 and every document in the angular (2+) docset is just showing a white page...
Every else docset I downloaded is working properly...

Hope for a fix soon. Greetings!

scopmisdocsets scopuwebview typdefect

Most helpful comment

A quick solution would be to delete the file that starts with "runtime-es5."
which is located in the folder "Angular.docset \ Contents \ Resources \ Documents \ angular.io"
Example: "runtime-es5.dbabbb81d8abd9e65276"

All 39 comments

I'm also seeing this issue, Zeal 0.6.1 on Ubuntu 18.04; Appears to be isolated to the Angular docset

@iqfy-joe Is nobody caring about that? 馃槄 I mean I'm just using Angular, pretty stupid that I'm keeping this tool... Seems like nobody is fixing it...

Hello! Who knows why Angular 2 does not work?

I don't believe it will help, but: Have you tried reinstalling/updating the docset?

Zeal projects doesn't maintain docsets but uses Dash's, you might want to ping @Kapeli about this issue.

No Dash user has reported any issues with the Angular docsets. If anyone is willing to debug and look at what's going wrong, I'm willing to update the docsets to fix it.

One thing to do would be to check if Zeal is using the correct Angular feeds, which are AngularJS.xml (for 1.x) and Angular.xml (for 2.x to 8.x).

It does work when right clicking mouse and open the doc in web browser.

I have tried reinstalling/updating... still not working...

@makzan I cant rightclick and open the docset in the browser... How do you do that? :)

The problem is caused by the webview failing to parse JS (more details in https://github.com/zealdocs/zeal/issues/1127#issuecomment-527287446). Actual browsers have no such issues, so perhaps this will not get addressed until Qt WebKit gets updated to the newer WebKit, or we switch to Qt WebEngine.

I think the root of the issue might be the CORS not working for file:// URLs, hence polyfills not getting loaded. I see related errors in the real browsers as well, but their JS engines do not require the polyfills to work.

I'll see if I can make a quick change to start serving docset content over HTTP, and whether that solves the issue in the first place.

@trollixx a quick fix would be fantastical. I'm on vacation right now and taking my laptop everywhere I go... Sometimes I don't have internet, that's why I would really appreciate a quick solution. Thank you very much! :)

Same problem here on Manjaro.

Same problem, a quick fix would be appreciated.

@trollixx no fix soon?

Looks like Qt webview is using Edge engine, because these pages fail to load in the old Edge(beta chromium edge works fine)

Is there a way to replace engine used without waiting for app update?

no fix coming?

Okay, for the time being I disabled JS for the Angular docset. I don't see a better solution, until we either switch to QWebEngine, or Qt WebKit is rebased on top of a more recent upstream version.

To get the fix please refresh the list of docsets, and then reinstall the docset.

still giving blank screen even after the refresh and update, am I the only one???

I test that later (:

still giving blank screen even after the refresh and update, am I the only one???

Same here.

Please verify that meta.json in the docset folder has isJavaScriptEnabled set to false.

Can verify.

{
    "extra": {
        "isJavaScriptEnabled": false
    },
    "name": "Angular",
    "revision": "0",
    "title": "Angular",
    "version": "8.2.8"
}

same content as @djmbritt
"extra": { "isJavaScriptEnabled": false },

same here... "fix" not working. still showing blank screen.

Same here. Had an older version that was showing fine till I updated yesterday. Till then blank page.

Tried the fix but didn't work :(

image

Same here, it was working fine until a few days ago when I updated the docs. I wish I stayed on 7 now 馃槥.

Any update on the fix?

Please try one of the CI builds. It looks like v0.6.1 didn't have a fix for per docset JS enablement.

Please try one of the CI builds. It looks like v0.6.1 didn't have a fix for per docset JS enablement.

Thanks, the latest build seems to work fine!

Just FYI: I did notice however that all Angular doc pages now have some seemingly random text at the very bottom of every page, but that seems harmless:
image

The text says JS is required for the website to work.

still giving blank screen on version 0.6.1

Will there be a fix planned for 0.6.1?

Both Chromium and Firefox fail to display the HTML pages as well. I think there's something wrong with base path:

ERROR Error: "The selector "aio-shell" did not match any elements"
ERROR Error: "No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document."

It doesn't work when served over HTTP (with #1182) either.

I am not sure how Dash shows the docs, but most likely it puts them under a different internal URL.

If you want to bypass this issue the docset is still valid and accessible via your favorite browser....

Copypasta the following urls in your browser and replace the {drive} and {username} parameters:
-file:///{drive}:/Users/{userName}/AppData/Local/Zeal/Zeal/docsets/Angular.docset/Contents/Resources/Documents/

  • file:///{drive}:/Users/{userName}/AppData/Local/Zeal/Zeal/docsets/Angular.docset/Contents/Resources/Documents/material.angular.io.html

If you want to bypass this issue the docset is still valid and accessible via your favorite browser....

Copypasta the following urls in your browser and replace the {drive} and {username} parameters:
-file:///{drive}:/Users/{userName}/AppData/Local/Zeal/Zeal/docsets/Angular.docset/Contents/Resources/Documents/

  • file:///{drive}:/Users/{userName}/AppData/Local/Zeal/Zeal/docsets/Angular.docset/Contents/Resources/Documents/material.angular.io.html

I can confirm that this trick is working for me.

Basically, we can browse any of the downloaded docsets using any browser of our choice. To see where the downloaded docsets is being stored on the disk = click Edit > Preferences > General tab > Docset storage section > see the path within Directory. Then you can copy the path to your browser.

It seems it's being fixed in the master branch.

A quick solution would be to delete the file that starts with "runtime-es5."
which is located in the folder "Angular.docset \ Contents \ Resources \ Documents \ angular.io"
Example: "runtime-es5.dbabbb81d8abd9e65276"

No reason to delete files anyway can't be loaded by CORS of file:// restrictions

Why this issue is still closed?
Only way I can read something now is 芦right click -> Open Desktop Browser禄

A quick solution would be to delete the file that starts with "runtime-es5."
which is located in the folder "Angular.docset \ Contents \ Resources \ Documents \ angular.io"
Example: "runtime-es5.dbabbb81d8abd9e65276"

this works for me, thanks you so much! :D

not opening angular docs while deleting 'runtine-es'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sheershoff picture sheershoff  路  4Comments

lebies picture lebies  路  8Comments

cccaballero picture cccaballero  路  7Comments

Stunkymonkey picture Stunkymonkey  路  7Comments

beardedeagle picture beardedeagle  路  4Comments