-
Notifications
You must be signed in to change notification settings - Fork 45
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
Typst Preview fails on VSCode web and others. #382
Comments
In browser environment, you should use the official app, https://typst.app. Regard to this, we may not develop this feature very actively. |
Noted. Anyhow thanks for the great lsp and extension. I will use it. However, would you mind to review and accept pull request if I could write it in the near future? |
Glad that you have feeling to contribute this project. I'll review it for sure. 😃 |
I have investigated this problem and found it to be difficult to solve. I share my conclusions with future colleagues with the same problem. The obstacle is that WebSockets are not supported when port forwarding is being used here. This is a problem on the VSCode side. To bypass this, it is necessary to use HTTP Polling or similar instead of WebSocket. However, I have not found a way to bypass this in the RXJS WebSocket client. I will continue to investigate and share any findings. |
Describe the bug
Typst Preview uses the address of the local host to communicate with the server for preview, so VSCode used from a web browser, such as Gitpod, VSCode web or Coder, will cause address mismatch and the preview will fail.
Package/Software version:
VSCode version(Help -> About):
tinymist extension version:
v0.11.0
. Get it bytinymist --version
in terminal.Additional context
https://github.com/Enter-tainer/typst-preview/blob/971dbc7f63ba12af4497204e7c433e0ed62d89a4/addons/frontend/src/main.js#L40
Enter-tainer/typst-preview#292
The text was updated successfully, but these errors were encountered: