Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Integrating go-langserver with monaco-editor single instance for intellisense #390

Open
nasir-rabbani opened this issue Aug 10, 2020 · 2 comments

Comments

@nasir-rabbani
Copy link

nasir-rabbani commented Aug 10, 2020

I am trying to create a web based editor using Monaco Editor. I was able to make the go-langserver and monaco-language-client talk to each other but on typing or hitting CTRL + SPACE i am getting the below error from go-langserver

go Server: 2020/08/06 16:53:51 jsonrpc2 handler: notification "textDocument/didChange" handling error: Open inmemory://model/1: unable to read out-of-workspace resource from virtual file system

Anyone who has successfully managed to achieve this please share your approach.

@keegancsmith @chrismwendt @slimsag

@keegancsmith
Copy link
Member

I am assuming your web based editor created the URI inmemory://model/1. Rather pass in filenames that look like file paths. Go-langserver is likely choking on that. I believe in vscode they have a concept around translating paths for consumption in LSP.

@pawansingh00
Copy link

Hi,

@nasir-rabbani I know its very old, but were you able to solve it?
At least can you give me a pointer on what to change in monaco-language-client to get started?

Thanks,
Pawan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants