-
Enator18
hey, I just found this editor and it looks really nice. One issue I have run into is that there are heavy performance issues in very large zig files. If I try to open vk.zig which is the generated zig vulkan bindings, and is about 65k lines, it starts to chug really hard. I tried opening some really really big c files: miniaudio.h (96k lines) and flecs.c (125k lines) and it was perfectly smooth with them. Is this a solvable issue or just a fundamental limitation?
-
krig
Hmm, that’s weird. I guess it’s the zig LSP that is slowing down perhaps. But it could also be the tree-sitter grammar..
-
Enator18
yeah I don't think it is the lsp because I am able to open the file in other ides with zls running and it is fine, so I guess it would be the tree-sitter grammar, but I don't really know how that works
-
bro
I am having trouble installing the Vue extension in Gram. I followed the instructions here: https://codeberg.org/GramEditor/gram/issues/446#issuecomment-21365801 and installed rust through homebrew which resolved the first error. I get an error stating the building/compiling of the extension failed. When clicking 'learn more' it shows `extensions/installing-extensions` page. How can I solve this issue, sorry if this is the wrong place to ask, I was not sure where to ask. It regards the Vue extension which people in the linked issue also had issues with
-
bro
Installing `rust-wasm` from brew, retained the same error btw
-
bro
From `rustup` I installed `rust`, and additionally I installed `rust` from brew manually. Maybe that causes issues? I am not sure
-
krig
yeah I think the homebrew rust has issues compiling wasm unfortunately, it can’t find the WASI SDK or some issue like that, I don’t remember exactly.. it works best if you use rustup only
-
krig
installing rustup from brew also causes trouble by the way 😅 so best is to use their own installer
-
bro
I also had issues with the dnf package. I will try installing it from the website and see how that goes :/
-
krig
OK, let me know. If it doesn’t work you should see logs using the gram: open logs command from the command palette
-
bro
After a restart it did detect `rustc` and installed. But I get a new error: ``` Language server vue-language-server: error while executing at wasm backtrace: 0: 0x4fb5e - <unknown>!<wasm function 3> 1: 0x1da8b - zed_vue.wasm!zed_extension_api[121966fa69ba5858]::wit::zed::extension::nodejs::npm_install_package 2: 0x5a62 - zed_vue.wasm!<zed_vue[980f5669f9d5eaa5]::VueExtension as zed_extension_api[121966fa69ba5858]::Extension>::language_server_command 3: 0x12f95 - zed_vue.wasm!zed_extension_api[121966fa69ba5858]::wit::_export_language_server_command_cabi::<zed_extension_api[121966fa69ba5858]::Component> 4: 0x1a387 - zed_vue.wasm!language-server-command: binary download not allowed for @vue/language-server ```
-
bro
Ah, that meant I had to enable downloading the binary which worked
-
bro
Then I had a can't enter compont error, but a restart of Gram fixed that again. Thanks for the help!
-
krig
great! Yeah it’s a pain, hoping to improve things soon
-
bro
That would be nice, is that something Gram can do or does it require changes from rustup's side. I read something about rewriting extensions in Lua, would such a solution solve it?
-
krig
yeah one thing is use lua extensions would simplify requirements, and the other is better permissions that is less confusing to get right
-
bro
Makes sense, thanks for your work!
❤️ 1