x/tools/gopls: errors when using with monaco-languageclient
#43420
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, this is the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm trying to use the latest version of
gopls
(0.6.1) to provide a language server for a browser-based instance of the Monaco editor, usingvscode-ws-jsonrpc
andmonaco-languageclient
with a React app. I've got this working withpyls
andbash-language-server
perfectly fine, but when I try it withgopls
I get some errors.Logs
View browser logs
These server logs were generated with the
rpc.trace
option turned on.View server logs
Here's the frontend code I'm using:
And here's my backend code:
I realise this error may have very little to do with
gopls
and could be more related to the other libraries I'm using, but I'm not too sure what's causing it. Thanks for the help, and please let me know if you need any more logs/info.What did you expect to see?
I'm expecting to see all features of Gopls functioning in my frontend Monaco editor.
What did you see instead?
The above JS errors are thrown on the frontend with (seemingly) no error message on the backend. The Monaco editor has no LSP functionality.
The text was updated successfully, but these errors were encountered: