Comments (11)
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)?
from slint.
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
from slint.
Sadly this doesn't contain the stderror from the slint-lsp. This should be in another tab.
from slint.
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.
from slint.
So, after installing
- libxkbcommon-x11-0
- libinput10
- libgbm-dev
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
from slint.
This is the binary downloaded from Github? The Linux version will try to use Qt5, so installing that might fix the issue.
from slint.
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
from slint.
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?
from slint.
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
from slint.
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).
from slint.
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 :)
from slint.
Related Issues (20)
- × Supplied ELF image of 1231344B is too big, and doesn't fit configured app partition of 1048576B
- Changing the window size during automatic layout will cause font jitter and blur.
- Build failed when the Popup in a Row
- build panic: not a rvalue
- Material theme `ScrollView`: Hover state not cleared properly when panning
- slint compilation error for euclid for pico rp2040 HOT 1
- need to know the buffer configuration to slint ui HOT 6
- slint always opening a console window on app start HOT 2
- slint skia renderer error and crash on win11 HOT 7
- logging to widget example request HOT 1
- Scroll view autoscroll
- Using `clip: true` in mcu does not work
- Selecting live preview in windows snap left/right causes slint LSP to crash (WSL2 ubuntu 22.04 remote from Windows 11) HOT 5
- Building slint apps under Bazel HOT 1
- Simply enlarge the window, and the memory will increase exponentially. HOT 1
- Add step size to `SpinBox`
- OpenGL Underlay in Skia Backend Leads to Font Bugs and Rendering Issues HOT 5
- SlintPad: implement short URL permalinks HOT 1
- Passing values into slint while using mcu variable
- The text in the odd rows is mounted between columns in the StandardTableView HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slint.