Closed bendiksolheim closed 7 months ago
Hey, cool that you're working on this! I'm happy to answer questions here and there (also feel free to hop on our Discord, there are some plugin and SDK developers hanging out there too).
We serialize data structures into protobuffs, true, but we do this into a JSON array of bytes. So eg. "foo" would be serialized to [102, 111, 111]
. I'm guessing this could be the issue here.
EDIT: so, just to be clear, the process should be:
You know what, that was indeed the missing piece! Thanks a lot 😄 I am now prompted to accept permissions, and the permissions are stored across sessions. Next stop: parsing updates. But I believe I have what I need now, so I’ll close this issue. Good point about the Discord, I’ll check it out once I have time, and will probably direct other questions there 😊
Thanks!
Hello!
I am currently playing around with the plugin system in Zellij. Not the built-in Rust library, and not Zelligo, but rather trying to make something work with https://www.assemblyscript.org. I have managed to create a valid wasm build which seems to load correctly (
load
,update
andrender
is called, and output fromrender
is actually rendered), but I am having a hard time making communication work.I am not at all fluent in Rust or Go, but by reading the code (and reading https://zellij.dev/documentation/plugin-upgrade-0.38.0), it seems to me that messages are passed as protocol buffers over stdout/stdin. I have managed to compile the proto files into classes with a library (https://github.com/gravitational/protobuf-as) which I can only assume works correctly, but I have hit a road block with these errors in the log:
Now, I don’t expect you to fix my problems as this is probably kinda far off your roadmap, but if you have any hints to point me in any direction, I would appreciate it a lot! I am out of ideas to try at this point, and the logs don’t really give me any clues other than telling me that my serialization is off. I am using Zellij 0.39.2 btw.
Thanks!