Skip to content
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

Unable to render under live share #836

Open
Dr-TSNG opened this issue Nov 16, 2024 · 1 comment
Open

Unable to render under live share #836

Dr-TSNG opened this issue Nov 16, 2024 · 1 comment
Labels
editor-integration Features about editor integrations enhancement New feature or request

Comments

@Dr-TSNG
Copy link

Dr-TSNG commented Nov 16, 2024

Describe the bug
When connect to live share as a client, tinymist failed to render.
Error on Windows: failed to launch preview: Error: entry file must be absolute path
Error on Linux: no message, just blank page.

Package/Software version:

VSCode version(Help -> About):

Version: 1.95.3 (system setup)
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631

tinymist extension version: v0.11.0. Get it by tinymist --version in terminal.

tinymist
Build Timestamp:     2024-11-15T13:45:41.347906200Z
Build Git Describe:  v0.12.2
Commit SHA:          434f22285547148ce1df1e8a925a1a6e8b54104b
Commit Date:         None
Commit Branch:       None
Cargo Target Triple: x86_64-pc-windows-msvc
Typst Version:       0.12.0

Logs:

tinymist server log(Output Panel -> tinymist):

[2024-11-16T18:26:25Z INFO  sync_lsp] handling workspace/executeCommand - (12) at Instant { t: 1238.05s }
[2024-11-16T18:26:25Z INFO  sync_lsp] handled  workspace/executeCommand - (12) in 25.10µs
[2024-11-16T18:26:25Z INFO  sync_lsp] handling workspace/executeCommand - (13) at Instant { t: 1238.06s }
[2024-11-16T18:26:25Z INFO  sync_lsp] handled  workspace/executeCommand - (13) in 38.00µs
[2024-11-16T18:26:28Z INFO  sync_lsp] handling workspace/executeCommand - (14) at Instant { t: 1241.43s }
[2024-11-16T18:26:28Z INFO  sync_lsp] handled  workspace/executeCommand - (14) in 23.30µs
[2024-11-16T18:26:28Z INFO  sync_lsp] handling workspace/executeCommand - (15) at Instant { t: 1241.43s }
[2024-11-16T18:26:28Z INFO  sync_lsp] handled  workspace/executeCommand - (15) in 32.50µs
[2024-11-16T18:26:30Z INFO  sync_lsp] handling workspace/executeCommand - (16) at Instant { t: 1243.71s }
[2024-11-16T18:26:30Z INFO  sync_lsp] handled  workspace/executeCommand - (16) in 46.30µs
[2024-11-16T18:26:32Z INFO  sync_lsp] handling workspace/executeCommand - (17) at Instant { t: 1245.65s }
[2024-11-16T18:26:32Z INFO  sync_lsp] handled  workspace/executeCommand - (17) in 160.10µs
[2024-11-16T18:26:34Z INFO  sync_lsp] handling workspace/executeCommand - (18) at Instant { t: 1247.16s }
[2024-11-16T18:26:34Z INFO  sync_lsp] handled  workspace/executeCommand - (18) in 25.30µs
[2024-11-16T18:26:41Z INFO  sync_lsp] handling workspace/executeCommand - (19) at Instant { t: 1254.52s }
[2024-11-16T18:26:41Z INFO  sync_lsp] handled  workspace/executeCommand - (19) in 33.90µs

tinymist client log(Help -> Toggle Developer Tools -> Console):

console.ts:137 [Extension Host] Preview Command \docs\answer.typ
notificationsAlerts.ts:42 failed to launch preview: Error: entry file must be absolute path
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1243
C @ event.ts:1254
fire @ event.ts:1278
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1243
fire @ event.ts:1274
fire @ ipc.net.ts:652
l.onmessage @ localProcessExtensionHost.ts:378
@Myriad-Dreamin
Copy link
Owner

The live-sharing session is run over a virtual file system provided vscode. We haven't handled it correctly.

@Myriad-Dreamin Myriad-Dreamin added enhancement New feature or request editor-integration Features about editor integrations labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-integration Features about editor integrations enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants