Skip to content

The LS crashed the underlying CLI process #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kittaakos opened this issue Oct 8, 2019 · 0 comments · Fixed by #13
Closed

The LS crashed the underlying CLI process #6

kittaakos opened this issue Oct 8, 2019 · 0 comments · Fixed by #13
Labels
type: imperfection Perceived defect in any part of project

Comments

@kittaakos
Copy link
Contributor

root ERROR Arduino: panic: runtime error: slice bounds out of range

goroutine 22 [running]:

root ERROR Arduino: github.com/bcmi-labs/arduino-language-server/handler.applyTextChange(0xc000240000, 0x7e, 0x7, 0x2e, 0x8, 0x0, 0x0, 0x0, 0x10114e9, 0xc0001b0000)
        /Users/vsts/agent/2.155.1/work/1/s/handler/sourcemap.go:120 +0x2e5
github.com/bcmi-labs/arduino-language-server/handler.(*InoHandler).updateFileData(0xc0000b8000, 0xc0000dc320, 0xc00023c180, 0x6a, 0xc0000d31a0)
        /Users/vsts/agent/2.155.1/work/1/s/handler/handler.go:323 +0x562
github.com/bcmi-labs/arduino-language-server/handler.(*InoHandler).ino2cppDidChangeTextDocumentParams(0xc0000b8000, 0xc0000784b0, 0x16, 0x1)
        /Users/vsts/agent/2.155.1/work/1/s/handler/handler.go:435 +0x109
github.com/bcmi-labs/arduino-language-server/handler.(*InoHandler).transformParamsToClangd(0xc0000b8000, 0x11a0620, 0xc0000a0000, 0xc0001babe0, 0x16, 0x1131000, 0xc0000784b0, 0x0, 0x0, 0x0, ...)
        /Users/vsts/agent/2.155.1/work/1/s/handler/handler.go:219 +0x497
github.com/bcmi-labs/arduino-language-server/handler.(*InoHandler).FromStdio(0xc0000b8000, 0x11a0620, 0xc0000a0000, 0xc0000f4080, 0xc0001c60f0, 0x0, 0x0, 0x0, 0x0)
        /Users/vsts/agent/2.155.1/work/1/s/handler/handler.go:119 +0x595
github.com/sourcegraph/jsonrpc2.(*HandlerWithErrorConfigurer).Handle(0xc0000c2060, 0x11a0620, 0xc0000a0000, 0xc0000f4080, 0xc0001c60f0)
        /Users/vsts/go/pkg/mod/github.com/sourcegraph/[email protected]/handler_with_error.go:21 +0x73
created by github.com/sourcegraph/jsonrpc2.asyncHandler.Handle
        /Users/vsts/go/pkg/mod/github.com/sourcegraph/[email protected]/async.go:16 +0x6b


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants