Coder Social home page Coder Social logo

Comments (11)

ogoffart avatar ogoffart commented on May 23, 2024

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)?

image

from slint.

cwolter97 avatar cwolter97 commented on May 23, 2024

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.

ogoffart avatar ogoffart commented on May 23, 2024

Sadly this doesn't contain the stderror from the slint-lsp. This should be in another tab.

from slint.

cwolter97 avatar cwolter97 commented on May 23, 2024

This is the entirety of the output from OUTPUT -> Slint LSP

image

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.

cwolter97 avatar cwolter97 commented on May 23, 2024

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.

hunger avatar hunger commented on May 23, 2024

This is the binary downloaded from Github? The Linux version will try to use Qt5, so installing that might fix the issue.

from slint.

cwolter97 avatar cwolter97 commented on May 23, 2024

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.

robmwalsh avatar robmwalsh commented on May 23, 2024

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.

cwolter97 avatar cwolter97 commented on May 23, 2024

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.

tronical avatar tronical commented on May 23, 2024

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.

robmwalsh avatar robmwalsh commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.