Automatic generation of the binary protocol handler in GUI #9658
Labels
-gui
d-hard
Difficulty: significant prior knowledge required
p-low
Low priority
s-research-needed
Status: the task will require heavy research to complete
x-refactor
Changes that should not be visible to the end-user
GUI and Language Server use FLatBuffers for binary communication. The protocol is defined by the schema file, which can be compiled with
flatc
to generate the necessary code in any supported language.However, the GUI does not use the generated code directly. Instead, its protocol client is based on the generated TypeScript code, which was later modified by hand to improve type safety, usability and performance. This however makes it impossible to automatically update the generated code, in case the protocol changes.
This problem should be addressed but the exact solution is not clear. Perhaps a different protocol library should be used (or even our own parser's binary protocol) — but this needs to be decided between the teams.
The text was updated successfully, but these errors were encountered: