-
Notifications
You must be signed in to change notification settings - Fork 22
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 on VScode doesn't work #731
Comments
If this is your first time running the extension, chances are the server hasn't yet generated a preview it can show you - have you tried editing and saving a file in your project? You might have to close and re-open the preview once that first build has finished. It might also be worth setting |
Thanks for your reply! My project is not empty and I can make html to see the result. I tried to close and re-open it, but it didn't work. I also tried your second suggestion. Here's the output. I have no clue how to solve it. Could you please interpret it? 2024-02-15 21:08:08.065 [error] Canceled: Canceled |
You might want to share more about your folder and how you configured it. I left some typical setup options in #733 and I am certain some of them work very well with Esbonio v0.92.1. The clearer people know your specific setup, the easier they can guide you through. Also note that some transient errors can be resolved if you click |
One thing to keep in mind is that the server by default will not see the build output of If you want it to use the same folder as
Unfortunately, that's not the log output I expected to see... you might have found a different |
That's how it worked for me: pip install -U doc8 Extensions:
Visual Studio Code Setting: python must be in the path of the system environment. To check that: Open cmd and enter python. This should find the command. |
I fixed it by setting up a virtual environment. The python path in the "settings.json" is always wrong so I manually changed it to my virtual environment. Everything is good now. Thanks for all your help! |
I have a similar issue where the Preview function doesn't work. I am running the Esbonio pre-release version 0.94.2. The setup is as follows:
I get the following 2 error messages:
I have tried changing Esbonio and Python extensions settings, but so far nothing worked. The configuration mentioned by @oxFilla did not work either. |
I assume then, you've tried using the Python extension's Have you also tried setting the If none of that works, if you can share some of the logs related to |
Yes, that's correct.
Yes, I have tried both I now have set the following settings. I also tested with absolute paths.
And the Esbonio log is:
|
My project is on a |
Unfortunately, in this case I think the subst drive is causing the issue and that you're hitting a variant of #813 The server is being given the
However, when it gets around to spinning up the Sphinx process the server has done the equivalent of calling
If it wasn't for #843, I would have suggested running the project from the C-drive as a work around for now. Side note: I've not come across subst drives before, what would you say the main use case is? Is it "just" a handy shortcut to a location on your drive, or is there more to it? |
Hm, yes, normally I'm not using subst drives; It provides a "handy" shortcut to some other folder. You are correct, a subst drive in most ways indeed acts like a network drive. |
I see, thank you for elaborating! :) |
Closing as I think all issues here have either been resolved or are covered in other threads, let me know if that's not the case! |
It keeps loading without any error notifications. It's Esbonio v0.92.1 (pre-release).
Appreciate it if anyone can help me to solve this problem.
The text was updated successfully, but these errors were encountered: