-
Notifications
You must be signed in to change notification settings - Fork 97
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
Preview is very slow and sometimes fails #927
Comments
You should "Toggle Developer Tools" and make sure that Antora support is disabled.
Indeed that's painfully slow, something is definitely not working as expected 😞 |
Thanks for the fast response! I'm not sure how to do that. Do you mean toggling the chrome dev tools in code? |
Yes, exactly. |
Yep I found that but I don't know how to deactivate Antora 🤔 |
Sorry that was two separate things. You should enable the "Developer Tools" and check if you don't have any error message in the console. And second, you should check that Antora support is disabled in the configuration/settings. Using the command palette "AsciiDoc: Enable/Disable Antora support in this workspace". |
Alright thanks! Sorry for the confusion :D Antora is enabled ✅ I'll check for errors as well and update this issue, thanks |
So, if I open up the whole document ( I do see some errors about unsupported languages we use but we haven't changed that. Does it make a difference to remove them? Here are some errors that appeared:
I tried it again with opening up the preview for a single chapter and I got these errors: Is there something we should change on our side? We did write a book with it with many images so it is not super small. But I also don't think a huge project |
Are you using Antora? Could you try to disable it? (the current implementation can consume a lot of resources).
Would it be possible to share it with me? I cannot see anything wrong... |
Unfortunately, I can't share it but I think I could solve it. I had a monorepo structure where I have both of my books. Antora didn't help (enabled or disabled). Thanks for your help! I'm closing this one now. If I can give you any other information for debugging this issue please let me know. Appreciate the help 🙏🏽 |
@AlessandroVol23 Could you share the tree structure/outline? I can generate lorem ipsum text to try to reproduce.
And there was no reference between the books? That's weird 🤔 |
No at least no intentional reference. I could easily copy out the folder and it worked in another one so I don't think there was any reference. The outline looked like that:
That is basically it |
When I open my asciidoc preview in vs-code the preview takes a long time to open.
It also sometimes fails with the error message:
Error: Webview is disposed
I didn't had this issue when I created the documents initially. I'm opening it again on the same machine and the time the preview needs to open and to update takes very long.
Here is a video which shows the issue:
https://www.loom.com/share/14a5c23183ed41239f1e7797ffd79271
The initial wait time in the video is fine I can live with that. But the update times are really bad IMO.
System Information
Version: 0.44.9
VSCode Version: 1.93.1
Commit: 316e524257c2ea23b755332b0a72c50cf23e1b00
Date: 2024-12-26T21:58:59.149Z (1 wk ago)
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.4.0
I run it in cursor but have the same problems in code.
Any idea how to debug or fix that?
The text was updated successfully, but these errors were encountered: