As seen in that issue^^ description, we panicked whenever the LspServer hit a branch with logging.
The various logging libs use the dependency log. This issue describes how there is no implementation for Instant::now() in wasm. The result is that the use of an lib (consuming log) will error.
Confirmed this in our wasm server, by attempting Instant::now().
~Per recommendation, used web_sys instead. Created a logger out of web_sys (using the log docs on how to do it). init() for the lsp server.~ Used wasm-logger.
Future work:
The wasm is imported and used in the UI, by way of 2 approaches. (1) As an LSP server, where we now init the logger on server creation, and (2) as utils methods. Fix the latter case in a followup PR.
Part of #618
The bug:
log
. This issue describes how there is no implementation for Instant::now() in wasm. The result is that the use of an lib (consuminglog
) will error.Instant::now()
.Solution:
log
docs on how to do it). init() for the lsp server.~ Usedwasm-logger
.Future work:
The wasm is imported and used in the UI, by way of 2 approaches. (1) As an LSP server, where we now init the logger on server creation, and (2) as utils methods. Fix the latter case in a followup PR.