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

jsonrpc2 handle error #292

Open
jenenliu opened this issue Jul 9, 2018 · 2 comments
Open

jsonrpc2 handle error #292

jenenliu opened this issue Jul 9, 2018 · 2 comments

Comments

@jenenliu
Copy link

jenenliu commented Jul 9, 2018

Hi, I use emacs, and configure company-lsp and lsp-go for go mode, and I've found there is these errors keep annoying me.

jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\n'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\v'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\f'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\f'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\f'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\r'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\x0e'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\x0e'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\a' '\x00'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\a' '\x00'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\x00'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines
jsonrpc2 handler: notification "textDocument/didChange" handling error: received textDocument/didChange for invalid position {'\x06' '\x00'} on "file:///Users/jenenliu/go/src/tcpserver.go": file only has 6 lines

Mac High Sierra
Emacs 26

thanks

@keegancsmith
Copy link
Member

What text encoding is your file? This may be related to #257 and #277

@jenenliu
Copy link
Author

@keegancsmith my Emacs shows encoding is utf-8-unix, and I install go-langserver by go get -u github.com/sourcegraph/go-langserver, it should be the latest version, seems this is a different problem.

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

2 participants