Closed MrDwarf7 closed 8 months ago
Step 2 (Optional). Cry a little bit because there's not a simpler way to get Slint support in Neovim via Arch.
Not a neovim user myself, but did you try the steps explained here: https://github.com/slint-ui/slint/tree/master/editors#neovim
LibraryOpenError(OpenError { kind: Library, detail: "opening library failed (libXcursor.so.1: cannot open shared object file: No such file or directory); opening library failed (libXcursor.so: cannot open shared object file: No such file or directory)" })
This is a panic in winit (the library Slint uses to handle windows) and it says it can't open a required shared library. Arguably, winit should try to report the user better than panicking. But the fix here is to install the libXcursor library.
Similar to https://github.com/slint-ui/slint/issues/4185, the panic should be fixed in winit now, and if it remains a panic in Slint, it is #204
Yes, you're welcome, thank you. 🦀
Step 1. Create Slint project from rust-slint-template
Step 2 (Optional). Cry a little bit because there's not a simpler way to get Slint support in Neovim via Arch.
Step 3. Use VsCode due to native extension support, open Ui folder and observe the beauty of correct syntactical highlighting.
Step 4. Compile a binary using cargo build --release --target "x86_64-pc-windows-gnu" Open compiled Windows 11 64bit .exe from within the WSL distro (Crossing the Windows/WSL barrier). Close compiled.
Step 5. Realize the text is tiny on your giant Samsung Neo G9 monitor and head over to the Ui file to add a font-size with 20.
Step 6. Get an error because you're a newbie to Rust language and haven't yet read the Slint document because you're too eager to play around and consider that Ui can't be that hard if you've spent the last 10 months choking on JavaScript.
Step 7. Using the Vs-Code Neovim plugin, and a hand-crafted variety of highly personalized key bindings unique to only my experience - Hit Ctrl+K to attempt to replicate hovering with a mouse and see what the error is. (Silently hoping it's not "Can't define null on undefined").
Step 8. Not profit. Slint crashes and prompts me to open an issue, which I do.
Step 9. Begin having an existential crisis as I've caught up to the story in real time, and I paste in the crash log from my terminal in VsCode, the inferior editor. It reads:
Step 10. Complete the convoluted and (hopefully amusing) re-count of my tragic experience leading up to a Rust-related LSP crash.
Observe! I present the offending code block. The stock slint rust template with a slightly syntactically incorrect piece of code.
Using AUR package, Named: mingw-w64-rust
Remaining details from
Repository : aur Name : mingw-w64-rust Version : 1.75.0-1 Description : Systems programming language focused on safety, speed and concurrency (mingw-w64) URL : https://www.rust-lang.org Licenses : Apache custom MIT Groups : None Provides : None Depends On : gcc-libs curl libgit2 mingw-w64-gcc>=10.1.0 Optional Deps : mingw-w64-wine Make Deps : gdb ninja libffi perl python nodejs procps-ng cmake Check Deps : None Conflicts With : None Replaces : None AUR URL : https://aur.archlinux.org/packages/mingw-w64-rust First Submitted : Wed 14 Feb 2018 03:00:51 AM AEDT Keywords : mingw-w64 rust Last Modified : Mon 01 Jan 2024 03:06:08 PM AEDT Maintainer : pingplug Popularity : 0.000000 Votes : 3 Out-of-date : No