Open cwolter97 opened 7 months ago
Thanks for filling a bug.
Looks like the slint-lsp process fails to start. or somehow crash. Is there perhaps some error in the "Slint LSP" section of the "Output" tab in the bottom (see screenshot)?
Hello -
[Error - 12:28:52 PM] Client Slint LSP: connection to server is erroring. Shutting down server.
[Error - 12:28:52 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at LanguageClient.shutdown (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:914:19)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:885:21)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/node/main.js:150:22)
at LanguageClient.handleConnectionError (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:1146:18)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 12:28:52 PM] Server initialization failed.
Message: write EPIPE
Code: -32099
[Error - 12:28:52 PM] Slint LSP client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
[Info - 12:28:52 PM] Connection to server got closed. Server will restart.
true
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory
[Error - 12:28:52 PM] Server initialization failed.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 12:28:52 PM] Slint LSP client: couldn't create connection to server.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 12:28:52 PM] Restarting server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Info - 12:28:52 PM] Connection to server got closed. Server will restart.
true
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory
[Error - 12:28:52 PM] Client Slint LSP: connection to server is erroring. Shutting down server.
[Error - 12:28:52 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at LanguageClient.shutdown (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:914:19)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:885:21)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/node/main.js:150:22)
at LanguageClient.handleConnectionError (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:1146:18)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 12:28:52 PM] Server initialization failed.
Message: write EPIPE
Code: -32099
[Error - 12:28:52 PM] Slint LSP client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
[Error - 12:28:52 PM] Restarting server failed
Message: write EPIPE
Code: -32099
[Info - 12:28:52 PM] Connection to server got closed. Server will restart.
true
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory
[Error - 12:28:52 PM] Server initialization failed.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 12:28:52 PM] Slint LSP client: couldn't create connection to server.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 12:28:52 PM] Restarting server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Info - 12:28:52 PM] Connection to server got closed. Server will restart.
true
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory
[Error - 12:28:52 PM] Client Slint LSP: connection to server is erroring. Shutting down server.
[Error - 12:28:52 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at LanguageClient.shutdown (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:914:19)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:885:21)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/node/main.js:150:22)
at LanguageClient.handleConnectionError (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:1146:18)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 12:28:52 PM] Server initialization failed.
Message: write EPIPE
Code: -32099
[Error - 12:28:52 PM] Slint LSP client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
[Error - 12:28:52 PM] Restarting server failed
Message: write EPIPE
Code: -32099
[Error - 12:28:52 PM] The Slint LSP server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory
Seems I was able to resolve the above by installing libxkbcommon via sudo apt install libxkbcommon-x11-0
Now I am getting:
[Error - 12:33:03 PM] Client Slint LSP: connection to server is erroring. Shutting down server.
[Error - 12:33:03 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at LanguageClient.shutdown (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:914:19)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:885:21)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/node/main.js:150:22)
at LanguageClient.handleConnectionError (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:1146:18)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 12:33:03 PM] Server initialization failed.
Message: write EPIPE
Code: -32099
[Error - 12:33:03 PM] Slint LSP client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
[Info - 12:33:03 PM] Connection to server got closed. Server will restart.
true
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libinput.so.10: cannot open shared object file: No such file or directory
[Error - 12:33:03 PM] Server initialization failed.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 12:33:03 PM] Slint LSP client: couldn't create connection to server.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 12:33:03 PM] Restarting server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Info - 12:33:03 PM] Connection to server got closed. Server will restart.
true
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libinput.so.10: cannot open shared object file: No such file or directory
[Error - 12:33:03 PM] Client Slint LSP: connection to server is erroring. Shutting down server.
[Error - 12:33:03 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at LanguageClient.shutdown (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:914:19)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:885:21)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/node/main.js:150:22)
at LanguageClient.handleConnectionError (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:1146:18)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 12:33:03 PM] Server initialization failed.
Message: write EPIPE
Code: -32099
[Error - 12:33:03 PM] Slint LSP client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
[Error - 12:33:03 PM] Restarting server failed
Message: write EPIPE
Code: -32099
[Info - 12:33:03 PM] Connection to server got closed. Server will restart.
true
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libinput.so.10: cannot open shared object file: No such file or directory
[Error - 12:33:03 PM] Server initialization failed.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 12:33:03 PM] Slint LSP client: couldn't create connection to server.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 12:33:03 PM] Restarting server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Info - 12:33:03 PM] Connection to server got closed. Server will restart.
true
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libinput.so.10: cannot open shared object file: No such file or directory
[Error - 12:33:03 PM] Client Slint LSP: connection to server is erroring. Shutting down server.
[Error - 12:33:03 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: starting
at LanguageClient.shutdown (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:914:19)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:885:21)
at LanguageClient.stop (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/node/main.js:150:22)
at LanguageClient.handleConnectionError (/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/node_modules/vscode-languageclient/lib/common/client.js:1146:18)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[Error - 12:33:03 PM] Server initialization failed.
Message: write EPIPE
Code: -32099
[Error - 12:33:03 PM] Slint LSP client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
[Error - 12:33:03 PM] Restarting server failed
Message: write EPIPE
Code: -32099
[Error - 12:33:03 PM] The Slint LSP server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
/home/yiggy/.vscode-server/extensions/slint.slint-1.5.1/bin/slint-lsp-x86_64-unknown-linux-gnu: error while loading shared libraries: libinput.so.10: cannot open shared object file: No such file or directory
Sadly this doesn't contain the stderror from the slint-lsp. This should be in another tab.
This is the entirety of the output from OUTPUT
-> Slint LSP
Currently reviewing the missing shared libraries it keeps complaining about and installing what seems to be missing. Strange that no other extension fails due to these.
So, after installing
I am finally getting something new: **Note; this is on preview. Which may be expected. The above installs at least give me the auto-complete and syntax functionality of the extension.
thread 'main' panicked at /home/runner/work/slint/slint/target/x86_64-unknown-linux-gnu/release/build/slint-lsp-48cf121149beeaeb/out/main.rs:21603:49:
called `Result::unwrap()` on an `Err` value: Other("Error opening device: Permission denied (os error 13)")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info - 12:47:43 PM] Connection to server got closed. Server will restart.
true
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
The Slint Language Server crashed. This is a bug.
Please open an issue on https://github.com/slint-ui/slint/issues
This is the binary downloaded from Github? The Linux version will try to use Qt5, so installing that might fix the issue.
This is the binary downloaded from Github? The Linux version will try to use Qt5, so installing that might fix the issue.
This is the slint extension for VSCode
I got the slint preview working in ubuntu with using WSL by installing libinput-tools
and libgbm-dev
, perhaps libinput-tools
has something else you need?
As stated above, I was able to get the extension to work with exception of the preview feature. Still annoying that there was several dependencies I needed to install separate from the extension
You’re right. I think it might be time to build a variant of the lsp binary specifically for wsl. With Wayland disabled for the time being, as well as linuxkms (causing the dependencies issues).
As stated above, I was able to get the extension to work with exception of the preview feature. Still annoying that there was several dependencies I needed to install separate from the extension
I'm suggesting that if you install libinput-tools
the preview feature may also work :)
I am not sure if this is related, but I came across the current issue trying to solve problems with the lsp in neovim en wsl2 (opensuse tumbleweed). I installed slint_lsp through mason, as by the documentation. On my personal laptop running opensuse natively it works fine, but the exact same config in wsl2 did not. I installed the dependencies listed above to no avail.
What works for me is
$ sudo rm -r /tmp/.X11-unix
$ ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix
https://github.com/microsoft/wslg/wiki/Diagnosing-%22cannot-open-display%22-type-issues-with-WSLg
Reproduction Steps:
Extension Host (Remote) Output: